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

Reported bitrate is not true #12841

Closed
DavidBarishev opened this issue Apr 25, 2017 · 1 comment
Closed

Reported bitrate is not true #12841

DavidBarishev opened this issue Apr 25, 2017 · 1 comment
Labels

Comments

@DavidBarishev
Copy link

@DavidBarishev DavidBarishev commented Apr 25, 2017

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

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2017.04.26. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.

  • I've verified and I assure that I'm running youtube-dl 2017.04.26

Before submitting an issue make sure you have:

  • At least skimmed through README and most notably FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

Description of your issue, suggested solution and other information

Bitrate report is not true.

Steps to reproduce:

  1. Get video's format report
C:\Users\david\Downloads\test>youtube-dl.exe -F -v https://www.youtube.com/watch?v=papuvlVeZg8
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-F', '-v', 'https://www.youtube.com/watch?v=papuvlVeZg8']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2017.04.26
[debug] Python version 3.4.4 - Windows-10-10.0.14393
[debug] exe versions: ffmpeg 3.2.4, ffprobe 3.2.4
[debug] Proxy map: {}
[youtube] papuvlVeZg8: Downloading webpage
[youtube] papuvlVeZg8: Downloading video info webpage
[youtube] papuvlVeZg8: Extracting video information
[youtube] {22} signature length 40.40, html5 player en_US-vflNZnmd3
[youtube] {43} signature length 40.40, html5 player en_US-vflNZnmd3
[youtube] {18} signature length 40.40, html5 player en_US-vflNZnmd3
[youtube] {36} signature length 40.40, html5 player en_US-vflNZnmd3
[youtube] {17} signature length 40.40, html5 player en_US-vflNZnmd3
[youtube] {137} signature length 40.40, html5 player en_US-vflNZnmd3
[youtube] {248} signature length 40.40, html5 player en_US-vflNZnmd3
[youtube] {136} signature length 40.40, html5 player en_US-vflNZnmd3
[youtube] {247} signature length 40.40, html5 player en_US-vflNZnmd3
[youtube] {135} signature length 40.40, html5 player en_US-vflNZnmd3
[youtube] {244} signature length 40.40, html5 player en_US-vflNZnmd3
[youtube] {134} signature length 40.40, html5 player en_US-vflNZnmd3
[youtube] {243} signature length 40.40, html5 player en_US-vflNZnmd3
[youtube] {133} signature length 40.40, html5 player en_US-vflNZnmd3
[youtube] {242} signature length 40.38, html5 player en_US-vflNZnmd3
[youtube] {160} signature length 40.40, html5 player en_US-vflNZnmd3
[youtube] {278} signature length 40.40, html5 player en_US-vflNZnmd3
[youtube] {140} signature length 40.40, html5 player en_US-vflNZnmd3
[youtube] {171} signature length 40.40, html5 player en_US-vflNZnmd3
[youtube] {249} signature length 40.40, html5 player en_US-vflNZnmd3
[youtube] {250} signature length 40.40, html5 player en_US-vflNZnmd3
[youtube] {251} signature length 40.40, html5 player en_US-vflNZnmd3
[info] Available formats for papuvlVeZg8:
format code  extension  resolution note
249          webm       audio only DASH audio   57k , opus @ 50k, 1.63MiB
250          webm       audio only DASH audio   82k , opus @ 70k, 2.26MiB
140          m4a        audio only DASH audio  127k , m4a_dash container, mp4a.40.2@128k, 3.85MiB
171          webm       audio only DASH audio  137k , vorbis@128k, 3.86MiB
251          webm       audio only DASH audio  157k , opus @160k, 4.34MiB
160          mp4        256x144    144p  106k , avc1.4d400c, 25fps, video only, 3.10MiB
278          webm       256x144    144p  115k , webm container, vp9, 25fps, video only, 2.97MiB
133          mp4        426x240    240p  239k , avc1.4d4015, 25fps, video only, 6.92MiB
242          webm       426x240    240p  254k , vp9, 25fps, video only, 5.12MiB
134          mp4        640x360    360p  481k , avc1.4d401e, 25fps, video only, 8.38MiB
243          webm       640x360    360p  482k , vp9, 25fps, video only, 9.21MiB
244          webm       854x480    480p  838k , vp9, 25fps, video only, 14.75MiB
135          mp4        854x480    480p  994k , avc1.4d401e, 25fps, video only, 16.94MiB
247          webm       1280x720   720p 1629k , vp9, 25fps, video only, 28.28MiB
136          mp4        1280x720   720p 1787k , avc1.4d401f, 25fps, video only, 32.29MiB
248          webm       1920x1080  1080p 2954k , vp9, 25fps, video only, 50.04MiB
137          mp4        1920x1080  1080p 3108k , avc1.640028, 25fps, video only, 59.42MiB
17           3gp        176x144    small , mp4v.20.3, mp4a.40.2@ 24k
36           3gp        320x180    small , mp4v.20.3, mp4a.40.2
43           webm       640x360    medium , vp8.0, vorbis@128k
18           mp4        640x360    medium , avc1.42001E, mp4a.40.2@ 96k
22           mp4        1280x720   hd720 , avc1.64001F, mp4a.40.2@192k (best)

2.Notice 251 is 157k bitrate ? Get download link for that format

C:\Users\david\Downloads\test>youtube-dl.exe -f 251 -g -v https://www.youtube.com/watch?v=papuvlVeZg8
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-f', '251', '-g', '-v', 'https://www.youtube.com/watch?v=papuvlVeZg8']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2017.04.26
[debug] Python version 3.4.4 - Windows-10-10.0.14393
[debug] exe versions: ffmpeg 3.2.4, ffprobe 3.2.4
[debug] Proxy map: {}
https://r5---sn-ivuoxu-ua8e.googlevideo.com/videoplayback?source=youtube&mime=audio%2Fwebm&requiressl=yes&ip=5.29.246.6&initcwndbps=2128750&ipbits=0&dur=253.881&lmt=1477045657433627&key=yt6&sparams=clen%2Cdur%2Cei%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Ckeepalive%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Crequiressl%2Csource%2Cupn%2Cexpire&gir=yes&id=o-AElb0CFtr4OIygdpJOFajEYqpOTKO7QCbf3wWK9kAvcf&keepalive=yes&mm=31&mn=sn-ivuoxu-ua8e&expire=1493174147&upn=ebGybngr48M&ei=I7P_WODRAsvQW4GMorAL&clen=4550275&ms=au&itag=251&mt=1493152472&pl=24&mv=m&signature=0C79A8FDCC0C24EACD1380DA2AEBC7CCE95F424B.10EF2CB8C6276B3B83737E865516E25F43C62E3D&ratebypass=yes
  1. Use ffprobe to measure bitrate
C:\Users\david\Downloads\test>ffprobe.exe -i "https://r5---sn-ivuoxu-ua8e.googlevideo.com/videoplayback?source=youtube&mime=audio%2Fwebm&requiressl=yes&ip=5.29.246.6&initcwndbps=2128750&ipbits=0&dur=253.881&lmt=1477045657433627&key=yt6&sparams=clen%2Cdur%2Cei%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Ckeepalive%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Crequiressl%2Csource%2Cupn%2Cexpire&gir=yes&id=o-AElb0CFtr4OIygdpJOFajEYqpOTKO7QCbf3wWK9kAvcf&keepalive=yes&mm=31&mn=sn-ivuoxu-ua8e&expire=1493174147&upn=ebGybngr48M&ei=I7P_WODRAsvQW4GMorAL&clen=4550275&ms=au&itag=251&mt=1493152472&pl=24&mv=m&signature=0C79A8FDCC0C24EACD1380DA2AEBC7CCE95F424B.10EF2CB8C6276B3B83737E865516E25F43C62E3D&ratebypass=yes"
ffprobe version 3.2.4 Copyright (c) 2007-2017 the FFmpeg developers
  built with gcc 6.3.0 (GCC)
  configuration: --enable-gpl --enable-version3 --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-zlib
  libavutil      55. 34.101 / 55. 34.101
  libavcodec     57. 64.101 / 57. 64.101
  libavformat    57. 56.101 / 57. 56.101
  libavdevice    57.  1.100 / 57.  1.100
  libavfilter     6. 65.100 /  6. 65.100
  libswscale      4.  2.100 /  4.  2.100
  libswresample   2.  3.100 /  2.  3.100
  libpostproc    54.  1.100 / 54.  1.100
Input #0, matroska,webm, from 'https://r5---sn-ivuoxu-ua8e.googlevideo.com/videoplayback?source=youtube&mime=audio%2Fwebm&requiressl=yes&ip=5.29.246.6&initcwndbps=2128750&ipbits=0&dur=253.881&lmt=1477045657433627&key=yt6&sparams=clen%2Cdur%2Cei%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Ckeepalive%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Crequiressl%2Csource%2Cupn%2Cexpire&gir=yes&id=o-AElb0CFtr4OIygdpJOFajEYqpOTKO7QCbf3wWK9kAvcf&keepalive=yes&mm=31&mn=sn-ivuoxu-ua8e&expire=1493174147&upn=ebGybngr48M&ei=I7P_WODRAsvQW4GMorAL&clen=4550275&ms=au&itag=251&mt=1493152472&pl=24&mv=m&signature=0C79A8FDCC0C24EACD1380DA2AEBC7CCE95F424B.10EF2CB8C6276B3B83737E865516E25F43C62E3D&ratebypass=yes':
  Metadata:
    encoder         : google
  Duration: 00:04:13.88, start: -0.007000, bitrate: 143 kb/s
    Stream #0:0(eng): Audio: opus, 48000 Hz, stereo, fltp (default)

Notice ffprobe says 143 kb/s while youtube dl 157 kb/s.
It was present on every video that i tested, in almost all audio only formats.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Apr 25, 2017

Bitrate metadata is provided by YouTube.

@dstftw dstftw closed this Apr 25, 2017
@dstftw dstftw added the invalid label Apr 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.