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

Downloaded YouTube video doesn't match advertised bitrate #25302

Closed
Hawpe opened this issue May 17, 2020 · 3 comments
Closed

Downloaded YouTube video doesn't match advertised bitrate #25302

Hawpe opened this issue May 17, 2020 · 3 comments
Labels

Comments

@Hawpe
Copy link

@Hawpe Hawpe commented May 17, 2020

Checklist

  • I'm reporting a broken site support
  • I've verified that I'm running youtube-dl version 2020.05.08
  • 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 -F https://youtu.be/A7p4pJ_mPe8
[youtube] A7p4pJ_mPe8: Downloading webpage
[info] Available formats for A7p4pJ_mPe8:
format code  extension  resolution note
249          webm       audio only tiny   57k , opus @ 50k (48000Hz), 5.63MiB
250          webm       audio only tiny   77k , opus @ 70k (48000Hz), 7.47MiB
140          m4a        audio only tiny  131k , m4a_dash container, mp4a.40.2@128k (44100Hz), 16.14MiB
251          webm       audio only tiny  162k , opus @160k (48000Hz), 15.25MiB
278          webm       256x144    144p   97k , webm container, vp9, 30fps, video only, 11.78MiB
160          mp4        256x144    144p  112k , avc1.4d400c, 30fps, video only, 10.85MiB
242          webm       426x240    240p  223k , vp9, 30fps, video only, 24.59MiB
133          mp4        426x240    240p  302k , avc1.4d4015, 30fps, video only, 24.44MiB
243          webm       640x360    360p  412k , vp9, 30fps, video only, 46.04MiB
134          mp4        640x360    360p  619k , avc1.4d401e, 30fps, video only, 50.45MiB
244          webm       854x480    480p  759k , vp9, 30fps, video only, 76.00MiB
135          mp4        854x480    480p  904k , avc1.4d401f, 30fps, video only, 78.75MiB
247          webm       1280x720   720p 1515k , vp9, 30fps, video only, 136.40MiB
136          mp4        1280x720   720p 1535k , avc1.4d401f, 30fps, video only, 113.41MiB
248          webm       1920x1080  1080p 2670k , vp9, 30fps, video only, 320.56MiB
137          mp4        1920x1080  1080p 4503k , avc1.640028, 30fps, video only, 400.26MiB
18           mp4        640x360    360p  726k , avc1.42001E, 30fps, mp4a.40.2@ 96k (44100Hz), 90.55MiB
22           mp4        1280x720   720p 1038k , avc1.64001F, 30fps, mp4a.40.2@192k (44100Hz) (best)
youtube-dl -v https://youtu.be/A7p4pJ_mPe8
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'https://youtu.be/A7p4pJ_mPe8']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2020.05.08
[debug] Python version 2.7.15+ (CPython) - Linux-4.4.0-18362-Microsoft-x86_64-with-Ubuntu-18.04-bionic
[debug] exe versions: ffmpeg 3.4.6, ffprobe 3.4.6, phantomjs 2.1.1, rtmpdump 2.4
[debug] Proxy map: {}
[youtube] A7p4pJ_mPe8: Downloading webpage
[debug] Default format spec: bestvideo+bestaudio/best
WARNING: Requested formats are incompatible for merge and will be merged into mkv.
[debug] Invoking downloader on u'https://r4---sn-4gxx-hgnz.googlevideo.com/videoplayback?expire=1589724260&ei=BPDAXo6dDdfH1wbRt7yQBQ&ip=37.166.220.250&id=o-AJp54YGoR_Xjnx1i_DMa6Kou_QiIqdvpIoR7zYN0JSbK&itag=137&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278&source=youtube&requiressl=yes&mh=7M&mm=31%2C29&mn=sn-4gxx-hgnz%2Csn-25ge7nsd&ms=au%2Crdu&mv=m&mvi=3&pl=14&initcwndbps=585000&vprv=1&mime=video%2Fmp4&gir=yes&clen=419700809&dur=1045.844&lmt=1586623707739236&mt=1589702615&fvip=4&keepalive=yes&fexp=23882514&c=WEB&txp=5535432&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRAIgQIT8ZiSC1n_AljBuV2m_dwyoQcSBqx_aAQNfFbT95IACIBY8T0-W1g01YBmt_3kXmWPR0qnTOOnJbOZs2-xuNmh4&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRQIgOEO4FAFaoBRPNMtgHV0xM3BFT0oZQjWwUY-avtg-ddsCIQCuyIbP_FBu3PhfiMB6f96atRSZB2Fcg0JOpxAOwUhgyA%3D%3D&ratebypass=yes'
[download] Destination: ASMR From My Backyard 🌞 (Relaxing Personal Attention)-A7p4pJ_mPe8.f137.mp4
[download] 100% of 400.26MiB in 00:45
[debug] Invoking downloader on u'https://r4---sn-4gxx-hgnz.googlevideo.com/videoplayback?expire=1589724260&ei=BPDAXo6dDdfH1wbRt7yQBQ&ip=37.166.220.250&id=o-AJp54YGoR_Xjnx1i_DMa6Kou_QiIqdvpIoR7zYN0JSbK&itag=251&source=youtube&requiressl=yes&mh=7M&mm=31%2C29&mn=sn-4gxx-hgnz%2Csn-25ge7nsd&ms=au%2Crdu&mv=m&mvi=3&pl=14&initcwndbps=585000&vprv=1&mime=audio%2Fwebm&gir=yes&clen=15995764&dur=1045.881&lmt=1586560166892588&mt=1589702615&fvip=4&keepalive=yes&fexp=23882514&c=WEB&txp=5511222&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRQIhAO31tS4Gp7tKG5AN_CBQQTRZJtThy623dzV2TDQ3U_z1AiBB3K4fOIt2Jo5oZzLpBK5fXhsx_XXsf2ENiH1XjaVlRA%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRQIgOEO4FAFaoBRPNMtgHV0xM3BFT0oZQjWwUY-avtg-ddsCIQCuyIbP_FBu3PhfiMB6f96atRSZB2Fcg0JOpxAOwUhgyA%3D%3D&ratebypass=yes'
[download] Destination: ASMR From My Backyard 🌞 (Relaxing Personal Attention)-A7p4pJ_mPe8.f251.webm
[download] 100% of 15.25MiB in 00:02
[ffmpeg] Merging formats into "ASMR From My Backyard 🌞 (Relaxing Personal Attention)-A7p4pJ_mPe8.mkv"
[debug] ffmpeg command line: ffmpeg -y -loglevel 'repeat+info' -i 'file:ASMR From My Backyard 🌞 (Relaxing Personal Attention)-A7p4pJ_mPe8.f137.mp4' -i 'file:ASMR From My Backyard 🌞 (Relaxing Personal Attention)-A7p4pJ_mPe8.f251.webm' -c copy -map '0:v:0' -map '1:a:0' 'file:ASMR From My Backyard 🌞 (Relaxing Personal Attention)-A7p4pJ_mPe8.temp.mkv'
Deleting original file ASMR From My Backyard 🌞 (Relaxing Personal Attention)-A7p4pJ_mPe8.f137.mp4 (pass -k to keep)
Deleting original file ASMR From My Backyard 🌞 (Relaxing Personal Attention)-A7p4pJ_mPe8.f251.webm (pass -k to keep)

ffprobe on video from a month ago

Input #0, matroska,webm, from 'ASMR From My Backyard (Relaxing Personal Attention).mkv':
  Metadata:
    COMPATIBLE_BRANDS: iso6avc1mp41
    MAJOR_BRAND     : dash
    MINOR_VERSION   : 0
    ENCODER         : Lavf57.83.100
  Duration: 00:17:25.86, start: -0.007000, bitrate: 4320 kb/s

ffprobe on video downloaded today

Input #0, matroska,webm, from 'ASMR From My Backyard 🌞 (Relaxing Personal Attention)-A7p4pJ_mPe8.mkv':
  Metadata:
    COMPATIBLE_BRANDS: iso6avc1mp41
    MAJOR_BRAND     : dash
    MINOR_VERSION   : 0
    ENCODER         : Lavf57.83.100
  Duration: 00:17:25.88, start: -0.007000, bitrate: 3331 kb/s

Description

Downloading the highest quality available results in a lower bitrate than the one given in the formats list. Expected bitrate is around 4500k, actual bitrate is 3300k. The same video downloaded a month ago has the correct bitrate.

I am aware of issue #15180, though it is closed and is 2 years old, and since I managed to get the correct bitrate video a month ago I figured it might be a different problem.
Downloading the webm version as proposed would not work as the highest bitrate is the f137 one. Is there any other workaround?

@dstftw
Copy link
Collaborator

@dstftw dstftw commented May 17, 2020

Blame Youtube for reporting incorrect bitrate.

@dstftw dstftw closed this May 17, 2020
@dstftw dstftw added the invalid label May 17, 2020
@Hawpe
Copy link
Author

@Hawpe Hawpe commented May 17, 2020

This is not an incorrect bitrate, a month ago the download had the indicated bitrate - which I put in the issue.

@Hawpe
Copy link
Author

@Hawpe Hawpe commented May 18, 2020

@dstftw did you even read the end of the issue?

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.