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

use "youtube-dl -f .." with more complexe rule sets #23584

Closed
PatrickJRed opened this issue Dec 31, 2019 · 2 comments
Closed

use "youtube-dl -f .." with more complexe rule sets #23584

PatrickJRed opened this issue Dec 31, 2019 · 2 comments
Labels

Comments

@PatrickJRed
Copy link

@PatrickJRed PatrickJRed commented Dec 31, 2019

Checklist

  • I'm asking a question
  • I've looked through the README and FAQ for similar questions
  • I've searched the bugtracker for similar questions including closed ones

Question

currently i manually check for the final file-sizes of
webm : "youtube-dl -f 248/247/...+251/250 -o video.webm 'URL'"
mp4 : "youtube-dl -f 137/136/...+140 -o video.mp4 'URL'"
and then keep the smaller file.

for downloading muliple (from playlist or file) videos this is not efficient since it would require to first download both and then manually check+delete the less good file.
doing such is more time and storage consuming, and therefore not ideal

is there a way to directly tell youtube-dl to compare the (approx.) filesizes of the video-only formats (always comparing with same resolution) between the 'mp4'- and 'webm'-format ? (and compare merged size)

FG Patrickjred

@PatrickJRed
Copy link
Author

@PatrickJRed PatrickJRed commented Dec 31, 2019

and similiar rules (e.g. for resolution : low->high , high->low) ...

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Dec 31, 2019

Parse JSON output and write whatever script you need.

@dstftw dstftw closed this Dec 31, 2019
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.