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 set youtube-dl to not download more than 1mb of file size #11557

Closed
sant527 opened this issue Dec 30, 2016 · 2 comments
Closed

How to set youtube-dl to not download more than 1mb of file size #11557

sant527 opened this issue Dec 30, 2016 · 2 comments

Comments

@sant527
Copy link

@sant527 sant527 commented Dec 30, 2016

How to tell youtube-dl to stop after it reaches a file size of 1mb

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Dec 30, 2016

Currently there's no direct support in youtube-dl. A workaround can be:

youtube-dl -v URL -o - | head -c 1000000 > output.mp4

What is your use case? Just curious.

@dstftw dstftw closed this Jan 3, 2017
@sant527
Copy link
Author

@sant527 sant527 commented Jan 4, 2017

Can i make use of %{title} etc in the output.mp4

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
3 participants
You can’t perform that action at this time.