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 resolution, and audio frequency and bitrate #19

Open
6 of 9 tasks
IoanPaleru opened this issue Jul 21, 2023 · 1 comment
Open
6 of 9 tasks

yt-dlg video resolution, and audio frequency and bitrate #19

IoanPaleru opened this issue Jul 21, 2023 · 1 comment
Labels
documentation Improvements or additions to documentation question Further information is requested

Comments

@IoanPaleru
Copy link

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

What operating system do you use ?

Microsoft Windows 10

How do you specify a video resolution (720p), and audio frequency (44,100 hz) and bitrate (128 kbps) to use when downloading an mp4 file? Is there a tutorial available for that anwhere?

@oleksis oleksis added the question Further information is requested label Jul 21, 2023
@oleksis
Copy link
Contributor

oleksis commented Jul 21, 2023

You can use the --audio-quality option to specify the audio quality in yt-dlp. For example, to specify an audio bitrate of 128 kbps, you can use --audio-quality 128K³. To set the audio frequency, you can use the --postprocessor-args option with the -ar argument for ffmpeg. For example, to set the audio frequency to 44,100 Hz, you can use --postprocessor-args "-ar 44100"⁴.

As for the video resolution, you can use the -F option to list the available formats and then use the -f option followed by the format code to download the desired resolution². For example, to download a video in 720p resolution, you can first list the available formats using yt-dlp -F [video-url], find the format code for 720p resolution in the output, and then use yt-dlp -f [format-code] [video-url] to download the video in 720p resolution.

To download a video using yt-dlp with the specified video resolution, audio frequency, and audio bitrate, you can use the following command:

yt-dlp --audio-quality 128K --postprocessor-args "-ar 44100" -f [format-code] [video-url]

Make sure to replace [format-code] with the format code for the desired video resolution and [video-url] with the URL of the video you want to download. You can find the format code for the desired video resolution by first listing the available formats using yt-dlp -F [video-url].

You can check Video selection for yt-dlp

Using yt-dlg yourou can also use the options in the Extra tab to specify a custom format string, similar to how you would do it with youtube-dl or yt-dlp.

(1) Can't use YouTube-dl to download specified bitrate [closed]
(2) windows - youtube-dl set sample rate on mp3? - Super User.
(3) How to select video quality from youtube-dl? - Ask Ubuntu.
(4) GitHub - yt-dlp/yt-dlp: A youtube-dl fork with additional features
(5) Choose live encoder settings, bitrates, and resolutions.

Frequently Asked Questions

@oleksis oleksis added the documentation Improvements or additions to documentation label Jul 21, 2023
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