Download best VO audio #26760

Closed
opened 2026-02-21 13:20:10 -05:00 by deekerman · 4 comments
Owner

Originally created by @RPDJF on GitHub (Oct 31, 2023).

Checklist

  • I'm asking a question
  • I've looked through the README and FAQ for similar questions
  • I've searched the bugtracker for similar questions including closed ones

Question

How to download the best audio while keeping the original language ?

I'm making a powershell script that tracks and downloads videos from playlists
I want the script to download the best quality, so I came up with this format : 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/bestvideo+bestaudio

The problem with this line, is that when an alternative language audio have better quality than the original one, it would download the alternate one (in my case, I had spanish on my playlist)

I saw that we can specify language on the README, but I want it to be automatic and just select the original language (so if it was in italian for instance, I want to keep it italian and not in english)

My actual usage:

youtube-dl --add-header 'Cookie:' -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/bestvideo+bestaudio' --merge-output-format mp4 --add-metadata --ignore-errors --yes-playlist --all-subs -o `"$($downloadFolder)\%(title)s.%(ext)s`" $playlistUrl

Best regards,

Originally created by @RPDJF on GitHub (Oct 31, 2023). <!-- ###################################################################### WARNING! IGNORING THE FOLLOWING TEMPLATE WILL RESULT IN ISSUE CLOSED AS INCOMPLETE ###################################################################### --> ## Checklist <!-- Carefully read and work through this check list in order to prevent the most common mistakes and misuse of youtube-dl: - Look through the README (http://yt-dl.org/readme) and FAQ (http://yt-dl.org/faq) for similar questions - Search the bugtracker for similar questions: http://yt-dl.org/search-issues - Finally, put x into all relevant boxes (like this [x]) --> - [x] I'm asking a question - [x] I've looked through the README and FAQ for similar questions - [x] I've searched the bugtracker for similar questions including closed ones ## Question <!-- Ask your question in an arbitrary form. Please make sure it's worded well enough to be understood, see https://github.com/ytdl-org/youtube-dl#is-the-description-of-the-issue-itself-sufficient. --> ## How to download the best audio while keeping the original language ? I'm making a powershell script that tracks and downloads videos from playlists I want the script to download the best quality, so I came up with this format : `'bestvideo[ext=mp4]+bestaudio[ext=m4a]/bestvideo+bestaudio` The problem with this line, is that when an alternative language audio have better quality than the original one, it would download the alternate one (in my case, I had spanish on my playlist) I saw that we can specify language on the README, but I want it to be automatic and just select the original language (so if it was in italian for instance, I want to keep it italian and not in english) My actual usage: ```powershell youtube-dl --add-header 'Cookie:' -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/bestvideo+bestaudio' --merge-output-format mp4 --add-metadata --ignore-errors --yes-playlist --all-subs -o `"$($downloadFolder)\%(title)s.%(ext)s`" $playlistUrl ``` Best regards,
deekerman 2026-02-21 13:20:10 -05:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@dirkf commented on GitHub (Oct 31, 2023):

Many extractors don't extract the language_preference metadata that you need. In fact it's mentioned by about 0.5% of extractor modules. In fact, even language is only mentioned by about 5%.

If you are interested in a particular site, there may be some other way to achieve what you want, or the site extractor could be taught to tell you more about languages.

@dirkf commented on GitHub (Oct 31, 2023): Many extractors don't extract the `language_preference` metadata that you need. In fact it's mentioned by about 0.5% of extractor modules. In fact, even `language` is only mentioned by about 5%. If you are interested in a particular site, there may be some other way to achieve what you want, or the site extractor could be taught to tell you more about languages.
Author
Owner

@RPDJF commented on GitHub (Oct 31, 2023):

Many extractors don't extract the language_preference metadata that you need. In fact it's mentioned by about 0.5% of extractor modules. In fact, even language is only mentioned by about 5%.

If you are interested in a particular site, there may be some other way to achieve what you want, or the site extractor could be taught to tell you more about languages.

So.. there is no way to actually download a video on the best quality without getting random language audio ???
I just want to download my videos at 1440p when available instead of the standard 480p..

@RPDJF commented on GitHub (Oct 31, 2023): > Many extractors don't extract the `language_preference` metadata that you need. In fact it's mentioned by about 0.5% of extractor modules. In fact, even `language` is only mentioned by about 5%. > > If you are interested in a particular site, there may be some other way to achieve what you want, or the site extractor could be taught to tell you more about languages. So.. there is no way to actually download a video on the best quality without getting random language audio ??? I just want to download my videos at 1440p when available instead of the standard 480p..
Author
Owner

@dirkf commented on GitHub (Nov 1, 2023):

As above, it depends on where the videos are hosted.

@dirkf commented on GitHub (Nov 1, 2023): As above, it depends on where the videos are hosted.
Author
Owner

@dirkf commented on GitHub (Nov 29, 2023):

If someone has a concrete example of this, unlike here, please feel free to open a new issue following #30839.

@dirkf commented on GitHub (Nov 29, 2023): If someone has a concrete example of this, unlike here, please feel free to open a new issue following #30839.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/youtube-dl#26760
No description provided.