Kaydol

Flood göndermek, insanların floodlarını okumak ve diğer insanlarla bağlantı kurmak için sosyal Floodlar ve Flood Yanıtları Motorumuza kaydolun.

Oturum aç

Flood göndermek, insanların floodlarını okumak ve diğer insanlarla bağlantı kurmak için sosyal Floodlar ve Flood Yanıtları Motorumuza giriş yapın.

Şifremi hatırlamıyorum

Şifreni mi unuttun? Lütfen e-mail adresinizi giriniz. Bir bağlantı alacaksınız ve e-posta yoluyla yeni bir şifre oluşturacaksınız.

3 ve kadim dostu 1 olan sj'yi rakamla giriniz. ( 31 )

Üzgünüz, Flood yazma yetkiniz yok, Flood girmek için giriş yapmalısınız.

Lütfen bu Floodun neden bildirilmesi gerektiğini düşündüğünüzü kısaca açıklayın.

Lütfen bu cevabın neden bildirilmesi gerektiğini kısaca açıklayın.

Please briefly explain why you feel this user should be reported.

The ultimate youtube-dl config to always get the best version

Hello fellow DataHoarders. I have seen a lot of youtube-dl configs posted in this subreddit but I always found instances where they wont download the best available version. So I am posting my own config here.

-f (bestvideo[height>2160][vcodec^=av01]/bestvideo[height>2160][vcodec^=vp9]/bestvideo[height>1440][vcodec^=av01]/bestvideo[height>1440][vcodec^=vp9][fps>30]/bestvideo[height>1440][vcodec^=vp9]/bestvideo[height>1080][vcodec^=av01]/bestvideo[height>1080][vcodec^=vp9][fps>30]/bestvideo[height>1080][vcodec^=vp9]/bestvideo[height>720][vcodec^=av01]/bestvideo[height>720][vcodec^=vp9][fps>30]/bestvideo[height>720][vcodec^=vp9]/bestvideo[height>240][vcodec^=av01]/bestvideo[vcodec^=vp9][fps>30]/bestvideo[height>240][vcodec^=vp9]/best[height>240]/bestvideo[vcodec^=av01]/bestvideo[vcodec^=vp9]/bestvideo)+(bestaudio[asr=48000]/bestaudio)/bestaudio[ext=opus]/best

–write-sub

–sub-lang en,en-US,en-CA,en-GB,en-IE,enUS

–merge-output-format mkv

–embed-subs

–no-warnings

–add-metadata

–external-downloader aria2c

–user-agent “Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)”

-o %(title)s.%(ext)s

aria2 config

console-log-level=warn
summary-interval=0
file-allocation=none
max-concurrent-downloads=16
split=16
max-connection-per-server=16
min-split-size=5M

1.This will always get the available higher framerate version(60/50 fps) or hdr(if available) of the highest resolution at av1 if available otherwise go for vp9. It supports all available English subtitle formats of YouTube(I also added the enUS for Crunchyroll).

2. bestaudio[asr=48000] is used so that it will download 5.1 audio or ambisonic audio if available, otherwise go for opus. bestaudio[ext=opus] is for Soundcloud, otherwise it will go for mp3 .

[https://www.youtube.com/watch?v=mEtUkIDqbog](https://www.youtube.com/watch?v=mEtUkIDqbog)

3. best[height>240] is in the config for certain videos whose “best” version is better than the 240p version played in the web player. This is also the only case it will chose avc1.

[https://www.youtube.com/watch?v=PrreUUhP6Nw](https://www.youtube.com/watch?v=PrreUUhP6Nw)

4. Height specifiers like bestvideo[height>720] are used instead of bestvideo[height=1080] to account for arbitrary resolution of certain videos.

5. User agent is for some videos where it gives this error

❯ youtube-dl https://www.youtube.com/watch?v=oVkSZXPklQ4
[youtube] oVkSZXPklQ4: Downloading webpage ERROR: oVkSZXPklQ4: YouTube said: Unable to extract video data

PS : If you want to exclude the dash segments from some videos

-f ((bestvideo[height>2160][vcodec^=av01]/bestvideo[height>2160][vcodec^=vp9]/bestvideo[height>1440][vcodec^=av01]/bestvideo[height>1440][vcodec^=vp9][fps>30]/bestvideo[height>1440][vcodec^=vp9]/bestvideo[height>1080][vcodec^=av01]/bestvideo[height>1080][vcodec^=vp9][fps>30]/bestvideo[height>1080][vcodec^=vp9]/bestvideo[height>720][vcodec^=av01]/bestvideo[height>720][vcodec^=vp9][fps>30]/bestvideo[height>720][vcodec^=vp9]/bestvideo[height>240][vcodec^=av01]/bestvideo[vcodec^=vp9][fps>30]/bestvideo[height>240][vcodec^=vp9]/best[height>240]/bestvideo[vcodec^=av01]/bestvideo[vcodec^=vp9]/bestvideo)[protocol!=http_dash_segments])+((bestaudio[asr=48000]/bestaudio)[protocol!=http_dash_segments])/bestaudio[ext=opus]/best

Benzer Yazılar

Yorum eklemek için giriş yapmalısınız.

21 Yorumları

  1. can someone tell me how to change some code in one of the extractor files

    i’ve seen some people do that on github.i only downloaded the .exe file

  2. is there a way to just download every single video format and audio file associated with a specific youtube video?

  3. > 2. bestaudio[asr=48000] is used so that it will download 5.1 audio or ambisonic audio if available, otherwise go for opus. bestaudio[ext=opus] is for Soundcloud, otherwise it will go for mp3 .

    Correct me if I am wrong, but I thought that the format only affects output?
    Like, it can only download the source, and Youtube compresses it on their side too, so you always only get one format type, but can convert it?

    >5. User agent is for some videos where it gives this error

    That assumes it is due to cookies though.
    If the video has been set to private etc. it will give the same error iirc.

  4. Sorry for the stupid question but what do you use to run that script?

  5. My problem has always been truncated meta data. Specifically, only a small amount of the description is included. Anyway to remedy that?

  6. Why are you getting specific subs instead of all of them?

  7. Anyone know a decent CLI abstraction for YouTube-dl? I love the expandability and huge featureset, but everything is a bit too archaic for quick, one-off practical use.

  8. I have youtube-dl and aria2. How do i enable this stuff? Im sort of a noob with this

  9. I once downloaded soundcloud audio in opus format and it had a weird static sound on it, so i’m not sure if i want to use that format for youtube as well.

  10. i use IDM internet download manager, no idea how to use the info u just posted

  11. Twice, interesting. I see I found a fellow man of culture.

  12. I’d replace all of the –sub-lang with –all-subs

  13. I’m about to start downloading a few channels for offline viewing (mostly ones that a few folks actively back up in maximum quality). I’ve noticed that h.264 1080p videos seem to be a bit large for how poor they look. Of the codecs and bitrates YouTube transcodes to, which one is the most efficient for downloads at 1080p and 720p without having needlessly huge files?

  14. I believe [TheFrenchGhosty’s YouTube-DL Archivist Scripts](https://github.com/TheFrenchGhosty/TheFrenchGhostys-YouTube-DL-Archivist-Scripts) is the gold standard.

    What does yours do that theirs doesn’t?

  15. How is re-encoding already lossy audio from the video, then into Opus or MP3 a second time, considered the best?