Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
how to increase buffer size #12460
how to increase buffer size #12460
Comments
|
I believe modern operating systems have buffering. That is, files written to the disk are buffered in the kernel and then written to the actual media later. Increasing in the file size does not indicate that the contents are already written to the SD card. If the OS on Pi does not implement buffering, an alternative is downloading files to tmpfs and move it to the SD card with |
Please follow the guide below
xinto all the boxes [ ] relevant to your issue (like that [x])Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2017.03.15. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.Before submitting an issue make sure you have:
What is the purpose of your issue?
I download youtube videos on my raspberrypi 24/7
I am looking at a way to reduce the number of writes to the SD card.
I know the option --buffer-size SIZE (1024 or 16K). But that does not reduce the number of writes to the SD card even when I give the parameter 1024k.
I see the file size increase every second.
Is there any option to buffer the downloaded bytes (up to 10MB or 50MB) and then write to disk/card?