ytdl-org / youtube-dl

Command-line program to download videos from YouTube.com and other video sites
http://ytdl-org.github.io/youtube-dl/
The Unlicense
132.44k stars 10.04k forks source link

Wrong bitrate on youtube #6241

Closed mikhaelkh closed 9 years ago

mikhaelkh commented 9 years ago

Format 248 is significantly smaller but has higher bitrate than 137, and bestvideo should be 137, not 248.

[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'https://www.youtube.com/watch?v=ij_0p_6qTss', u'-v', u'-F']
[debug] Encodings: locale cp1251, fs mbcs, out None, pref cp1251
[debug] youtube-dl version 2015.07.07
[debug] Python version 2.7.8 - Windows-7-6.1.7601-SP1
[debug] exe versions: ffmpeg 2.7, ffprobe 2.7
[debug] Proxy map: {}
[youtube] ij_0p_6qTss: Downloading webpage
[youtube] ij_0p_6qTss: Downloading video info webpage
[youtube] ij_0p_6qTss: Extracting video information
[youtube] {22} signature length 41.42, html5 player en_US-vflVsMRd_
[youtube] {43} signature length 41.42, html5 player en_US-vflVsMRd_
[youtube] {18} signature length 41.42, html5 player en_US-vflVsMRd_
[youtube] {5} signature length 41.42, html5 player en_US-vflVsMRd_
[youtube] {36} signature length 41.42, html5 player en_US-vflVsMRd_
[youtube] {17} signature length 41.42, html5 player en_US-vflVsMRd_
[youtube] {137} signature length 41.42, html5 player en_US-vflVsMRd_
[youtube] {248} signature length 41.42, html5 player en_US-vflVsMRd_
[youtube] {136} signature length 41.42, html5 player en_US-vflVsMRd_
[youtube] {247} signature length 41.42, html5 player en_US-vflVsMRd_
[youtube] {135} signature length 41.42, html5 player en_US-vflVsMRd_
[youtube] {244} signature length 41.42, html5 player en_US-vflVsMRd_
[youtube] {134} signature length 41.42, html5 player en_US-vflVsMRd_
[youtube] {243} signature length 41.42, html5 player en_US-vflVsMRd_
[youtube] {133} signature length 41.42, html5 player en_US-vflVsMRd_
[youtube] {242} signature length 41.42, html5 player en_US-vflVsMRd_
[youtube] {160} signature length 41.42, html5 player en_US-vflVsMRd_
[youtube] {278} signature length 41.42, html5 player en_US-vflVsMRd_
[youtube] {140} signature length 41.42, html5 player en_US-vflVsMRd_
[youtube] {171} signature length 41.42, html5 player en_US-vflVsMRd_
[youtube] {249} signature length 41.42, html5 player en_US-vflVsMRd_
[youtube] {250} signature length 41.42, html5 player en_US-vflVsMRd_
[youtube] {251} signature length 41.42, html5 player en_US-vflVsMRd_
[youtube] ij_0p_6qTss: Downloading DASH manifest
[youtube] ij_0p_6qTss: Downloading DASH manifest
WARNING: [youtube] ij_0p_6qTss: Skipping DASH manifest: ExtractorError(u'Could not download DASH manifest: HTTP Error 403: Forbidden (caused by HTTPError()); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.',)
[info] Available formats for ij_0p_6qTss:
format code  extension  resolution note
249          webm       audio only DASH audio , opus @ 50k
250          webm       audio only DASH audio , opus @ 70k
251          webm       audio only DASH audio , opus @160k
171          webm       audio only DASH audio  127k , vorbis@128k (44100Hz), 3.66MiB
140          m4a        audio only DASH audio  129k , m4a_dash container, aac  @128k (44100Hz), 4.21MiB
141          m4a        audio only DASH audio  255k , m4a_dash container, aac  @256k (44100Hz), 8.37MiB
160          mp4        256x144    DASH video  112k , avc1.42c00c, 12fps, video only, 3.52MiB
278          webm       256x144    DASH video  137k , webm container, VP9, 12fps, video only, 2.49MiB
242          webm       426x240    DASH video  192k , vp9, 24fps, video only, 2.91MiB
133          mp4        426x240    DASH video  252k , avc1.4d4015, 24fps, video only, 7.90MiB
243          webm       640x360    DASH video  424k , vp9, 24fps, video only, 5.55MiB
134          mp4        640x360    DASH video  604k , avc1.4d401e, 24fps, video only, 10.21MiB
135          mp4        854x480    DASH video 1105k , avc1.4d401e, 24fps, video only, 22.16MiB
244          webm       854x480    DASH video 1158k , vp9, 24fps, video only, 10.49MiB
136          mp4        1280x720   DASH video 2205k , avc1.4d401f, 24fps, video only, 44.98MiB
247          webm       1280x720   DASH video 2598k , vp9, 24fps, video only, 22.36MiB
137          mp4        1920x1080  DASH video 4239k , avc1.640028, 24fps, video only, 107.65MiB
248          webm       1920x1080  DASH video 4264k , vp9, 24fps, video only, 48.27MiB
17           3gp        176x144    
36           3gp        320x240    
5            flv        400x240    
43           webm       640x360    
18           mp4        640x360    
22           mp4        1280x720   (best)
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'https://www.youtube.com/watch?v=ij_0p_6qTss', u'-v']
[debug] Encodings: locale cp1251, fs mbcs, out None, pref cp1251
[debug] youtube-dl version 2015.07.07
[debug] Python version 2.7.8 - Windows-7-6.1.7601-SP1
[debug] exe versions: ffmpeg 2.7, ffprobe 2.7
[debug] Proxy map: {}
[youtube] ij_0p_6qTss: Downloading webpage
[youtube] ij_0p_6qTss: Downloading video info webpage
[youtube] ij_0p_6qTss: Extracting video information
[youtube] {22} signature length 41.42, html5 player en_US-vflVsMRd_
[youtube] {43} signature length 41.42, html5 player en_US-vflVsMRd_
[youtube] {18} signature length 41.42, html5 player en_US-vflVsMRd_
[youtube] {5} signature length 41.42, html5 player en_US-vflVsMRd_
[youtube] {36} signature length 41.42, html5 player en_US-vflVsMRd_
[youtube] {17} signature length 41.42, html5 player en_US-vflVsMRd_
[youtube] {137} signature length 41.42, html5 player en_US-vflVsMRd_
[youtube] {248} signature length 41.42, html5 player en_US-vflVsMRd_
[youtube] {136} signature length 41.42, html5 player en_US-vflVsMRd_
[youtube] {247} signature length 41.42, html5 player en_US-vflVsMRd_
[youtube] {135} signature length 41.42, html5 player en_US-vflVsMRd_
[youtube] {244} signature length 41.42, html5 player en_US-vflVsMRd_
[youtube] {134} signature length 41.42, html5 player en_US-vflVsMRd_
[youtube] {243} signature length 41.42, html5 player en_US-vflVsMRd_
[youtube] {133} signature length 41.42, html5 player en_US-vflVsMRd_
[youtube] {242} signature length 41.42, html5 player en_US-vflVsMRd_
[youtube] {160} signature length 41.42, html5 player en_US-vflVsMRd_
[youtube] {278} signature length 41.42, html5 player en_US-vflVsMRd_
[youtube] {140} signature length 41.42, html5 player en_US-vflVsMRd_
[youtube] {171} signature length 41.42, html5 player en_US-vflVsMRd_
[youtube] {249} signature length 41.42, html5 player en_US-vflVsMRd_
[youtube] {250} signature length 39.42, html5 player en_US-vflVsMRd_
[youtube] {251} signature length 41.42, html5 player en_US-vflVsMRd_
[youtube] ij_0p_6qTss: Downloading DASH manifest
[youtube] ij_0p_6qTss: Downloading player https://s.ytimg.com/yts/jsbin/html5player-en_US-vflVsMRd_/html5player.js
[youtube] ij_0p_6qTss: Downloading DASH manifest
WARNING: [youtube] ij_0p_6qTss: Skipping DASH manifest: ExtractorError(u'Could not download DASH manifest: HTTP Error 403: Forbidden (caused by HTTPError()); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.',)
WARNING: Requested formats are incompatible for merge and will be merged into mkv.
[debug] Invoking downloader on 'https://r3---sn-n8t51nxg8pjx-2xne.googlevideo.com/videoplayback?id=8a3ff4a7feaa4ecb&itag=248&source=youtube&requiressl=yes&gcr=ru&pl=19&mv=m&ms=au&pcm2cms=yes&mm=31&mn=sn-n8t51nxg8pjx-2xne&ratebypass=yes&mime=video/webm&gir=yes&clen=50619990&lmt=1415363354216850&dur=275.150&key=dg_yt0&signature=223DCB0087651F66A6FC0945D5412787932AF933.48EF7E38DF8FF8A7BF1637464E38DB9B5A9D4477&mt=1436958923&fexp=901816,936118,937432,9406174,9407701,9407992,9408093,9408142,9408420,9408710,9413141,9415091,9415875,9416126,9416200,9416227,9416313,9416910,9417175&sver=3&upn=rICpGr2duRI&ip=212.109.6.214&ipbits=0&expire=1436980550&sparams=ip,ipbits,expire,id,itag,source,requiressl,gcr,pl,mv,ms,pcm2cms,mm,mn,ratebypass,mime,gir,clen,lmt,dur'
[download] Destination: Selena Gomez - The Heart Wants What It Wants (Official Video)-ij_0p_6qTss.f248.webm

[download]   0.0% of 48.27MiB at 333.33KiB/s ETA 02:28
[download]   0.0% of 48.27MiB at 750.01KiB/s ETA 01:05
[download]   0.0% of 48.27MiB at  1.71MiB/s ETA 00:28 
[download]   0.0% of 48.27MiB at  2.93MiB/s ETA 00:16 
[download]   0.1% of 48.27MiB at  5.05MiB/s ETA 00:09 
[download]   0.1% of 48.27MiB at  7.69MiB/s ETA 00:06 
[download]   0.3% of 48.27MiB at 10.34MiB/s ETA 00:04 
[download]   0.5% of 48.27MiB at 10.83MiB/s ETA 00:04 
[download]   1.0% of 48.27MiB at 11.09MiB/s ETA 00:04 
[download]   2.1% of 48.27MiB at 12.81MiB/s ETA 00:03 
[download]   4.1% of 48.27MiB at 11.04MiB/s ETA 00:04 
[download]   8.3% of 48.27MiB at 11.39MiB/s ETA 00:03 
[download]  16.6% of 48.27MiB at 11.03MiB/s ETA 00:03 
[download]  24.9% of 48.27MiB at 11.16MiB/s ETA 00:03 
[download]  33.1% of 48.27MiB at 11.06MiB/s ETA 00:02 
[download]  41.4% of 48.27MiB at 11.10MiB/s ETA 00:02 
[download]  49.7% of 48.27MiB at 11.16MiB/s ETA 00:02 
[download]  58.0% of 48.27MiB at 11.18MiB/s ETA 00:01 
[download]  66.3% of 48.27MiB at 11.13MiB/s ETA 00:01 
[download]  74.6% of 48.27MiB at 11.14MiB/s ETA 00:01 
[download]  82.9% of 48.27MiB at 11.15MiB/s ETA 00:00 
[download]  91.1% of 48.27MiB at 11.14MiB/s ETA 00:00 
[download]  99.4% of 48.27MiB at 11.16MiB/s ETA 00:00 
[download] 100.0% of 48.27MiB at 11.18MiB/s ETA 00:00 
[download] 100% of 48.27MiB in 00:04                  
[debug] Invoking downloader on 'https://r3---sn-n8t51nxg8pjx-2xne.googlevideo.com/videoplayback?id=8a3ff4a7feaa4ecb&itag=141&source=youtube&requiressl=yes&gcr=ru&pl=19&mv=m&ms=au&pcm2cms=yes&mm=31&mn=sn-n8t51nxg8pjx-2xne&ratebypass=yes&mime=audio/mp4&gir=yes&clen=8776176&lmt=1415229533771983&dur=275.249&key=dg_yt0&signature=50447929DA9B82B0F727A312EFCD4AFC9E9022A7.0AF15A9880ACCAA6D4F870030D55B71BDE4BAC20&mt=1436958923&fexp=901816,936118,937432,9406174,9407701,9407992,9408093,9408142,9408420,9408710,9413141,9415091,9415875,9416126,9416200,9416227,9416313,9416910,9417175&sver=3&upn=rICpGr2duRI&ip=212.109.6.214&ipbits=0&expire=1436980550&sparams=ip,ipbits,expire,id,itag,source,requiressl,gcr,pl,mv,ms,pcm2cms,mm,mn,ratebypass,mime,gir,clen,lmt,dur'
[download] Destination: Selena Gomez - The Heart Wants What It Wants (Official Video)-ij_0p_6qTss.f141.m4a

[download]   0.0% of 8.37MiB at 333.33KiB/s ETA 00:25
[download]   0.0% of 8.37MiB at 999.99KiB/s ETA 00:08
[download]   0.1% of 8.37MiB at  2.28MiB/s ETA 00:03 
[download]   0.2% of 8.37MiB at  4.88MiB/s ETA 00:01 
[download]   0.4% of 8.37MiB at  7.57MiB/s ETA 00:01 
[download]   0.7% of 8.37MiB at  8.79MiB/s ETA 00:00 
[download]   1.5% of 8.37MiB at  9.54MiB/s ETA 00:00 
[download]   3.0% of 8.37MiB at 10.38MiB/s ETA 00:00 
[download]   6.0% of 8.37MiB at 11.09MiB/s ETA 00:00 
[download]  11.9% of 8.37MiB at 10.86MiB/s ETA 00:00 
[download]  23.9% of 8.37MiB at 10.98MiB/s ETA 00:00 
[download]  47.8% of 8.37MiB at 11.05MiB/s ETA 00:00 
[download]  95.6% of 8.37MiB at 10.81MiB/s ETA 00:00 
[download] 100.0% of 8.37MiB at 10.97MiB/s ETA 00:00 
[download] 100% of 8.37MiB in 00:00                  
[ffmpeg] Merging formats into "Selena Gomez - The Heart Wants What It Wants (Official Video)-ij_0p_6qTss.mkv"
[debug] ffmpeg command line: ffmpeg -y -i 'Selena Gomez - The Heart Wants What It Wants (Official Video)-ij_0p_6qTss.f248.webm' -i 'Selena Gomez - The Heart Wants What It Wants (Official Video)-ij_0p_6qTss.f141.m4a' -c copy -map 0:v:0 -map 1:a:0 'Selena Gomez - The Heart Wants What It Wants (Official Video)-ij_0p_6qTss.temp.mkv'
Deleting original file Selena Gomez - The Heart Wants What It Wants (Official Video)-ij_0p_6qTss.f248.webm (pass -k to keep)
Deleting original file Selena Gomez - The Heart Wants What It Wants (Official Video)-ij_0p_6qTss.f141.m4a (pass -k to keep)
jaimeMF commented 9 years ago

The bitrate is reported by YouTube, it's not our fault if it's wrong. About prefering the webm file: see https://github.com/rg3/youtube-dl/issues/6018#issuecomment-114008839, if you are only interested in mp4 files you can use -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best'.