Skip to content
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

yt-dlg video codec #153

Open
6 of 9 tasks
IoanPaleru opened this issue Oct 28, 2023 · 3 comments
Open
6 of 9 tasks

yt-dlg video codec #153

IoanPaleru opened this issue Oct 28, 2023 · 3 comments
Labels
documentation Improvements or additions to documentation question Further information is requested

Comments

@IoanPaleru
Copy link

IoanPaleru commented Oct 28, 2023

Please follow the guide below

  • You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
  • Put an x into all the boxes [ ] relevant to your issue (like that [x])
  • Use Preview tab to see how your issue will actually look like

WARNING

All invalid issues will be rejected!!


Before going further

  • If your problem is a bug with youtube-dl or a request for new site support please report it here

  • Make sure you are using the latest yt-dlg version (Click the Settings icon and then About to view the current version)

  • Make sure you are using the latest youtube-dl version (Click the Settings icon and then Update to update to the latest youtube-dl version)

  • Make sure you searched the bugtracker for similar issues including closed ones

  • Make sure to read the FAQs file

    • I think my problem is NOT with youtube-dl
    • I've verified and i assure that I'm running yt-dlg 1.X.Y
    • I assure that i am using the latest version of youtube-dl
    • Searched bugtracker
    • I've read the FAQs file

What is the purpose of your issue?

  • Bug report
  • Feature request (request for a new functionality)
  • Question
  • Other

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
Copy link
Owner

oleksis commented Oct 29, 2023

@oleksis oleksis added the question Further information is requested label Oct 29, 2023
@IoanPaleru
Copy link
Author

IoanPaleru commented Oct 29, 2023

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 oleksis added the documentation Improvements or additions to documentation label Oct 29, 2023
@oleksis
Copy link
Owner

oleksis commented Oct 29, 2023

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants