oleksis / youtube-dl-gui

A cross platform front-end GUI of the popular youtube-dl written in wxPython.
https://oleksis.github.io/youtube-dl-gui/
The Unlicense
1.67k stars 108 forks source link

yt-dlg video codec #153

Open IoanPaleru opened 10 months ago

IoanPaleru commented 10 months ago

Please follow the guide below

WARNING

All invalid issues will be rejected!!


Before going further


What is the purpose of your issue?

Please remove any sections between (---) if they are not related to your issue

What operating system do you use ?

Windows 10 64 bit


When downloading videos from youtube with yt-dlg using the -f "bestvideo[height<=720][ext=mp4]+bestaudio[ext=m4a]/bestvideo+bestaudio" command line option, yt-dlg downloads .mp4 videos with the vp09 (lavcodec vp9 dxva2) codec, instead of the avc1 (h.264/mpeg-4 avc) codec.

Is there a way to download those videos with the avc1 (h.264/mpeg-4 avc) codec, using a similar command line option to specify downloading the video with 720p for the video quality?

oleksis commented 10 months ago

Can check the yt-dlp Wiki:

IoanPaleru commented 10 months ago

Thanks for those links, especially https://www.reddit.com/r/youtubedl/s/GlAwPHQRyN, which contained a link to https://www.reddit.com/r/youtubedl/wiki/h264/.

It seems that after adding [vcodec^=avc] after the [ext=mp4] part of -f "bestvideo[height<=720][ext=mp4]+bestaudio[ext=m4a]/bestvideo+bestaudio", yt-dlg downloads the .mp4 video with the proper avc1 (h.264/mpeg-4 avc) codec, instead of the vp09 (lavcodec vp9 dxva2) codec.

It would be great if you could put that information in an easier to find way in yt-dlg's documentation, or just include simple format and codec selection options in yt-dlg's gui to be able to choose to download files with different formats and codecs (like avc and vp9), which will change the command line options automatically for people who aren't very familiar with command line options.

oleksis commented 10 months ago

Welcome šŸ™šŸ¾ and glad the yt-dlp wiki help you. The format selection for video and audio is on features request in nexts releases. If this issue was resolved please comment your solution (command line options you use in the Extra tab in yt-dlg) and close the issue. Thanks for your comments!