ytdl-org / youtube-dl

Command-line program to download videos from YouTube.com and other video sites
http://ytdl-org.github.io/youtube-dl/
The Unlicense
131.97k stars 10.01k forks source link

Combining the highest available quality video with the highest quality sound track available locally. #26741

Open suryabranwal opened 4 years ago

suryabranwal commented 4 years ago

Checklist

Description

WRITE DESCRIPTION HERE

After using -F option we can see all the available formats. Since, the best quality(video+audio) is limited to 720p only. By user's choice, downloading highest quality video and highest quality audio separately and then with the use of "ffmpeg" we can combine the two to get the best quality videos with the package itself as an option. Reference for ffmpeg usage: https://superuser.com/questions/277642/how-to-merge-audio-and-video-file-in-ffmpeg#277667

vovavvk commented 4 years ago

you can use this: -f bestvideo+bestaudio --merge-output mkv You can also try merging to mp4, but if best quality is webp or ogg it won't merge, because merge is only coping the stream as is, and not converting. Good luck. If this helps, close the issue.