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-dl isn't downloading max available resolution/quality for YouTube #27988

Closed
5 tasks done
parasiteoflife opened this issue Jan 28, 2021 · 2 comments
Closed
5 tasks done

Comments

@parasiteoflife
Copy link

Checklist

  • I'm reporting a broken site support
  • I've verified that I'm running youtube-dl version 2021.01.24.1
  • I've checked that all provided URLs are alive and playable in a browser
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • I've searched the bugtracker for similar issues including closed ones

Verbose log

youtube-dl.exe --newline -R 15 -i -o "X:\video\%(title)s (%(id)s) [%(height)sp].%(ext)s" -v --hls-prefer-native --cookies Z:\quarentine\cookies.txt --mark-watched --fixup detect_or_warn "https://www.youtube.com/watch?v=N5di3IroHnY"
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--newline', '-R', '15', '-i', '-o', 'X:\\video\\%(title)s (%(id)s) [%(height)sp].%(ext)s', '-v', '--hls-prefer-native', '--cookies', 'Z:\\quarentine\\cookies.txt', '--mark-watched', '--fixup', 'detect_or_warn', 'https://www.youtube.com/watch?v=N5di3IroHnY']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2021.01.24.1
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.19041
[debug] exe versions: ffmpeg 2021-01-12-git-ca21cb1e36-full_build-www.gyan.dev, ffprobe 2021-01-12-git-ca21cb1e36-full_build-www.gyan.dev
[debug] Proxy map: {}
[youtube] N5di3IroHnY: Downloading webpage
[youtube] N5di3IroHnY: Marking watched
[debug] Default format spec: bestvideo+bestaudio/best
WARNING: Requested formats are incompatible for merge and will be merged into mkv.
[debug] Invoking downloader on 'https://r5---sn-hp57kn7s.googlevideo.com/videoplayback?expire=1611827639&ei=VjUSYL3HN4K18gOPmanQBA&ip=45.169.93.101&id=o-ADP7oaiLv1cicVo7_CZzyqHwcJpnzwiZPLSxbVNGOECv&itag=136&aitags=133%2C134%2C135%2C136%2C160%2C242%2C243%2C244%2C247%2C278%2C298%2C299%2C302%2C303%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=Rw&mm=31%2C26&mn=sn-hp57kn7s%2Csn-hp57ynel&ms=au%2Conr&mv=m&mvi=5&pl=24&initcwndbps=1572500&vprv=1&mime=video%2Fmp4&ns=M_1mEvTV6aSuK7lvkcT7e-EF&gir=yes&clen=409537952&dur=814.547&lmt=1604547725182481&mt=1611805749&fvip=5&keepalive=yes&c=WEB&txp=5535434&n=gHBhyfWSsP9dx8afSN3K&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRgIhALqrfqgEObHhNoz1POPzuYftqbtsIvwfib2p-PqeE0n-AiEA6jmBV2JeSnJwQ_rSutZelBn0o8p2YZ72srLXVjNZ9HU%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRQIgPyAI4Zcjw7xeacCLeNqVBWH9_RTww4i19h09mNgMLKECIQDbZiN80wsKkIQuHtPUH5qgeRJKtEakWnOo5pUXDh2_CQ%3D%3D&ratebypass=yes'
[download] Destination: X:\video\AS PARAGUAIAS BUGARAM A PRAIA DE GUARUJA (N5di3IroHnY) [720p].f136.mp4
[download] 100% of 11.56MiB in 00:03
[ffmpeg] Merging formats into "X:\video\AS PARAGUAIAS BUGARAM A PRAIA DE GUARUJA (N5di3IroHnY) [720p].mkv"
[debug] ffmpeg command line: ffmpeg -y -loglevel "repeat+info" -i "file:X:\video\AS PARAGUAIAS BUGARAM A PRAIA DE GUARUJA (N5di3IroHnY) [720p].f136.mp4" -i "file:X:\video\AS PARAGUAIAS BUGARAM A PRAIA DE GUARUJA (N5di3IroHnY) [NAp].f251.webm" -c copy -map "0:v:0" -map "1:a:0" "file:X:\video\AS PARAGUAIAS BUGARAM A PRAIA DE GUARUJA (N5di3IroHnY) [720p].temp.mkv"
Deleting original file X:\video\AS PARAGUAIAS BUGARAM A PRAIA DE GUARUJA (N5di3IroHnY) [720p].f136.mp4 (pass -k to keep)
Deleting original file X:\video\AS PARAGUAIAS BUGARAM A PRAIA DE GUARUJA (N5di3IroHnY) [NAp].f251.webm (pass -k to keep)

Description

The following video: https://www.youtube.com/watch?v=N5di3IroHnY is available in at least 1080p60 but yt-dl is downloading it only at 720p. This isn't happening with all videos but this is the only one I have noticed it has happened, I would have to check all the videos I've downloaded, which are a whole lot, to see if it has happened again.

@parasiteoflife parasiteoflife changed the title yt-dl isn't downloading max available resolution/quality yt-dl isn't downloading max available resolution/quality for YouTube Jan 28, 2021
@parasiteoflife
Copy link
Author

@remitamine can you please tell me which issue is this duplicate of? I can't find one regarding YT, is #27980 the one?

@pukkandan
Copy link
Contributor

youtube-dl downloads the video with largest bitrate by default. But youtube often reports wrong bitrate for the videos. that's why it is downloading the 720p version. Use -F to see all the formats and -f to download a specific format; -f 303 for example

[youtube] N5di3IroHnY: Downloading webpage
[info] Available formats for N5di3IroHnY:
format code  extension  resolution note
249          webm       audio only tiny   52k , opus @ 50k (48000Hz), 4.59MiB
250          webm       audio only tiny   69k , opus @ 70k (48000Hz), 5.21MiB
140          m4a        audio only tiny  131k , m4a_dash container, mp4a.40.2@128k (44100Hz), 12.57MiB
251          webm       audio only tiny  138k , opus @160k (48000Hz), 11.56MiB
394          mp4        256x144    144p   83k , av01.0.00M.08, 30fps, video only, 6.96MiB
278          webm       256x144    144p  100k , webm container, vp9, 30fps, video only, 9.18MiB
160          mp4        256x144    144p  126k , avc1.4d400c, 30fps, video only, 8.97MiB
395          mp4        426x240    240p  182k , av01.0.00M.08, 30fps, video only, 14.66MiB
242          webm       426x240    240p  235k , vp9, 30fps, video only, 20.73MiB
133          mp4        426x240    240p  362k , avc1.4d4015, 30fps, video only, 20.80MiB
396          mp4        640x360    360p  398k , av01.0.01M.08, 30fps, video only, 31.07MiB
243          webm       640x360    360p  493k , vp9, 30fps, video only, 38.43MiB
134          mp4        640x360    360p  704k , avc1.4d401e, 30fps, video only, 46.12MiB
397          mp4        854x480    480p  720k , av01.0.04M.08, 30fps, video only, 56.97MiB
244          webm       854x480    480p  823k , vp9, 30fps, video only, 70.29MiB
135          mp4        854x480    480p 1040k , avc1.4d401f, 30fps, video only, 74.37MiB
247          webm       1280x720   720p 1524k , vp9, 30fps, video only, 141.43MiB
398          mp4        1280x720   720p60 2042k , av01.0.08M.08, 60fps, video only, 164.20MiB
302          webm       1280x720   720p60 2767k , vp9, 60fps, video only, 246.95MiB
298          mp4        1280x720   720p60 2891k , avc1.4d4020, 60fps, video only, 157.78MiB
399          mp4        1920x1080  1080p60 3964k , av01.0.09M.08, 60fps, video only, 313.94MiB
303          webm       1920x1080  1080p60 4808k , vp9, 60fps, video only, 417.66MiB
299          mp4        1920x1080  1080p60 6213k , avc1.64002a, 60fps, video only, 524.01MiB
136          mp4        1280x720   720p 8338k , avc1.4d401f, 30fps, video only, 390.57MiB
18           mp4        640x360    360p  728k , avc1.42001E, 30fps, mp4a.40.2@ 96k (44100Hz), 70.76MiB
22           mp4        1280x720   720p 4155k , avc1.64001F, 30fps, mp4a.40.2@192k (44100Hz) (best)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants