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
Is it normal that b[height<=480] gives me a better quality video than b[filesize<25M] ? #7341
Comments
you are getting format
|
So what should I use instead ? Something like b[filesize~24M] ? |
the easiest solution would be to use format sorting instead of format selection filtering, like |
Thank you ! |
I would just do |
ydl_opts = {
'format': 'b[ext=mp4]',
'format_sort' : 'size:25M',
'outtmpl': f'{folderPath}{mp4_title}.mp4',
'ffmpeg_location': './ffmpeg-N-103380-ge41bd075dd-win64-gpl/bin/ffmpeg.exe',
'noplaylist': True,
'progress_hooks': [self.my_hook],
'cachedir': False,
'cookiefile' : cookiePath
} ERROR: Invalid format sort string ":" given by extractor how should I write it ? |
use this to convert CLI to API https://github.com/yt-dlp/yt-dlp/blob/master/devscripts/cli_to_api.py |
Can you explain please ? |
|
and if you want to heed gamer191's advice, additionally I would suggest not using a |
Ok thanks, the only problem is that it seems that the |
@ThurstyWonk the audio is usually pretty small (3.41MiB in your example video), but yes, that is a known limitation (see #4846). If that's a problem, you'll need to add back |
DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE
Checklist
Please make sure the question is worded well enough to be understood
I'm downloading this video : https://www.youtube.com/watch?v=SjgMmo6_DH0
The b[filesize<25M] setting give me a 2Mb mp4 with really low quality audio and the video is only the first frame. It's also quite slow when downloading.
But b[height<=480] gives me a decent 480p 8Mb mp4 file with good audio
Edit : b[height<=720] gives me a 21.73MiB file so I don't understand why b[filesize<25M] does not give me a similar result
Provide verbose output that clearly demonstrates the problem
yt-dlp -vU <your command line>
)'verbose': True
toYoutubeDL
params instead[debug] Command-line config
) and insert it belowComplete Verbose Output
No response
The text was updated successfully, but these errors were encountered: