Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to increase buffer size #12460

Closed
fjjhdsvjhsdjj opened this issue Mar 15, 2017 · 1 comment
Closed

how to increase buffer size #12460

fjjhdsvjhsdjj opened this issue Mar 15, 2017 · 1 comment

Comments

@fjjhdsvjhsdjj
Copy link

@fjjhdsvjhsdjj fjjhdsvjhsdjj commented Mar 15, 2017

Please follow the guide below

  • You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
  • Put an x into all the boxes [ ] relevant to your issue (like that [x])
  • Use Preview tab to see how your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2017.03.15. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.

  • I've verified and I assure that I'm running youtube-dl 2017.03.15

Before submitting an issue make sure you have:

  • At least skimmed through README and most notably FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

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?

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Mar 16, 2017

--buffer-size is used in HTTP operations rather than disk operations.

I am looking at a way to reduce the number of writes to the SD card.

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 --exec.

@yan12125 yan12125 closed this Mar 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.