Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Inconsistent quality behavior? #10065
Comments
|
Read format selection. It explains everything or use search. |
|
Do you honestly think I didn't read that about 100 times before posting this? Nothing in there explains what I'm asking. Kind of ironic since you obviously didn't take the time to actually read my questions. |
|
Well, the format selection guide is correct. But results depend on the site/extractor. You can list the available formats for any chosen video with |
|
It's a limitation of youtube-dl: sometimes the actual quality is unknown until the file is downloaded. In this example,
And
As both formats have the same dimension, the only factor is their bitrates. Unfortunately, YouTube does not provide the bitrate information for format 22 of this video. In most cases, |
|
I see, thank you so much for explaining yan12125! That's the information I was looking for. Until a solution is found I guess it's going to be a bit trial-and-error to find the highest quality in some cases, I'm just happy to know why it happens though, thanks again. Edit: One thing I can think of is perhaps looking at the file size(if possible?), as I understand it bigger is usually better, correct me if I'm wrong. |
|
Downloading portions of the video to test the bit rates doesn't seem like such a bad solution to this and a few additional megabytes is rather tame. I think having it as an option would be great. |
Not always true. Comparing bitrates among different codecs is meaningless. See #6018 (comment) and https://en.wikipedia.org/wiki/Video_quality. You need some mathematical metrics, such as SSIM, PSNR, etc. |
Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2016.07.11. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.Before submitting an issue make sure you have:
What is the purpose of your issue?
Hello, I have a little question about what seems to be inconsistent behavior regarding format/quality selection. Or perhaps my expectations about said options are inaccurate? I hope someone can help clarify if that is the case.
I'll explain/show my actions and results below.
Video used as example: https://www.youtube.com/watch?v=f25R9Gl6FWc
Download without any parameters(for reference):
http://imgur.com/GS4fSku
Media info:
http://imgur.com/kT0uW9R
Now for the interesting part, download with parameters taken from the "Format selection examples" section. (https://github.com/rg3/youtube-dl#format-selection-examples)
http://imgur.com/VOrVs9N
Media info:
http://imgur.com/LnjUqHl
Now for the final result using -f best
http://imgur.com/LVQP4QI
Media info:
http://imgur.com/BDuaDNx
Note the significantly larger file size and higher bit rates for both audio and video.
Why does "# Download best mp4 format available or any other best if no mp4 available" not actually return the best quality mp4 available but -f best does? Am I misunderstanding things? Am I doing something wrong? Are my expectations off?
Please explain if you can, thanks in advance.