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.
Question: best quality, regardless of merged or not? #21010
Comments
|
|
I created a script for selecting the highest resolution automatically. It solves my first problem.
I invoke it like this: |
Above I have the format output for two different videos. I want to automatically download the best quality for both of them, without manually picking format.
For 5p8wTOr8AbU the best quality is a merged file,
43, 360pFor Menq6J02XCU the best quality is from two separate files,
137+171, 1080p.Running
youtube-dlwithout any options will download low quality separate files (240p) for 5p8wTOr8AbU but high quality separate files (1080p) for Menq6J02XCU.Running
youtube-dl -f bestvideo+bestaudiowill do the same.Running
youtube-dl -f bestwill download high quality merged files (360p) for 5p8wTOr8AbU but low quality merged files for Menq6J02XCU (720p).Is there any combination of options that make sure that I get the best quality, regardless of whether the source is merged or not?
If the best audio is in a merged file, but the best video is in a separate file, can that combination be merged for the best result?
For example, in Menq6J02XCU the merged file
22contains 720p video and 192k mp4a audio.Running bestvideo+bestaudio will download file
137for 1080p video and file171for 128k vorbis.Ideally I'd like to merge the 1080p video
137with the 192k mp4 audio from22, is that possible?