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

Support partially downloading videos #26756

Open
bodqhrohro opened this issue Sep 30, 2020 · 1 comment
Open

Support partially downloading videos #26756

bodqhrohro opened this issue Sep 30, 2020 · 1 comment
Labels

Comments

@bodqhrohro
Copy link

@bodqhrohro bodqhrohro commented Sep 30, 2020

Checklist

  • I'm reporting a feature request
  • I've verified that I'm running youtube-dl version 2020.09.20
  • I've searched the bugtracker for similar feature requests including closed ones

Description

I often need to download the whole video only to extract from it a short clip later, with ffmpeg's -ss and -t keys. Thus downloading the rest of the video is redundant, and consumes lots of traffic and disk space.

For HLS videos, which are present on lots of supported sites including YouTube, only certain chunks
may be fetched if their timing is known. Thus the time range may be specified via CLI parameters, either the start point and the duration, or the start and end points. youtube-dl should automatically pick the smallest number of chunks that fit the specified range; optionally it also may pass the parameters to ffmpeg after downloading, so it trims the unnecessary parts from the edge chunks. If the video is not chunked, youtube-dl may fall back to downloading the whole video, or trigger an error.

@bodqhrohro bodqhrohro added the request label Sep 30, 2020
@antgiant
Copy link

@antgiant antgiant commented Oct 11, 2020

Please see #622.

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.