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

[API] Possible to perform chunked downloads? #11322

Closed
xrisk opened this issue Nov 29, 2016 · 3 comments
Closed

[API] Possible to perform chunked downloads? #11322

xrisk opened this issue Nov 29, 2016 · 3 comments

Comments

@xrisk
Copy link

@xrisk xrisk commented Nov 29, 2016

I am trying to use youtube-dl where there is limited disk space. However, I can process chunks of the file separately.

I am wondering if it is possible to instruct youtube-dl to download a certain range of bytes of the video? I can then process that range, delete the resulting file, and so on.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Nov 29, 2016

There is no explicit interface for downloading range of bytes. Moreover it does not make much sense in some cases. For example, some videos are already delivered as chunks (hls, hds, dash, ism). Some are streamed via protocols youtube-dl utilizes 3rdparty tools for. Even in case of plain HTTP download remote server may not support partial downloads and just ignore Range header.

@dstftw dstftw closed this Nov 29, 2016
@xrisk
Copy link
Author

@xrisk xrisk commented Nov 29, 2016

Thank you for your response. I think my best bet right now is to make a fork and modify the http downloader since I am looking to download only from Youtube.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Nov 29, 2016

Youtube streams in DASH as well bot only in plain HTTP. And in HLS for live streams also.

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.