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

High quality AAC [format code 141] not available from music.youtube.com URLs #25263

Closed
edenist opened this issue May 13, 2020 · 1 comment
Closed

Comments

@edenist
Copy link

@edenist edenist commented May 13, 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 --cookies=cookies.txt -F "https://music.youtube.com/watch?v=7_pTSalmH-E" -v
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--cookies=cookies.txt', '-F', 'https://music.youtube.com/watch?v=7_pTSalmH-E', '-v']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2020.05.08
[debug] Python version 3.7.6 (CPython) - Linux-5.5.11-151.current-x86_64-with-glibc2.2.5
[debug] exe versions: ffmpeg 4.2.2, ffprobe 4.2.2, rtmpdump 2.3
[debug] Proxy map: {}
[youtube] 7_pTSalmH-E: Downloading webpage
[youtube] {18} signature length 107, html5 player 376e3c34
[youtube] {137} signature length 103, html5 player 376e3c34
[youtube] {248} signature length 107, html5 player 376e3c34
[youtube] {136} signature length 103, html5 player 376e3c34
[youtube] {247} signature length 107, html5 player 376e3c34
[youtube] {135} signature length 107, html5 player 376e3c34
[youtube] {244} signature length 103, html5 player 376e3c34
[youtube] {134} signature length 103, html5 player 376e3c34
[youtube] {243} signature length 107, html5 player 376e3c34
[youtube] {133} signature length 107, html5 player 376e3c34
[youtube] {242} signature length 107, html5 player 376e3c34
[youtube] {160} signature length 103, html5 player 376e3c34
[youtube] {278} signature length 107, html5 player 376e3c34
[youtube] {140} signature length 107, html5 player 376e3c34
[youtube] {249} signature length 107, html5 player 376e3c34
[youtube] {250} signature length 103, html5 player 376e3c34
[youtube] {251} signature length 107, html5 player 376e3c34
[info] Available formats for 7_pTSalmH-E:
format code  extension  resolution note
249          webm       audio only tiny   58k , opus @ 50k (48000Hz), 2.18MiB
250          webm       audio only tiny   77k , opus @ 70k (48000Hz), 2.90MiB
140          m4a        audio only tiny  131k , m4a_dash container, mp4a.40.2@128k (44100Hz), 5.48MiB
251          webm       audio only tiny  152k , opus @160k (48000Hz), 5.73MiB
160          mp4        144x144    144p   18k , avc1.4d400b, 25fps, video only, 401.45KiB
278          webm       144x144    144p   19k , webm container, vp9, 25fps, video only, 473.99KiB
242          webm       240x240    240p   19k , vp9, 25fps, video only, 502.29KiB
243          webm       360x360    360p   28k , vp9, 25fps, video only, 676.62KiB
133          mp4        240x240    240p   30k , avc1.4d400c, 25fps, video only, 604.52KiB
244          webm       480x480    480p   31k , vp9, 25fps, video only, 661.17KiB
134          mp4        360x360    360p   57k , avc1.4d4015, 25fps, video only, 986.61KiB
247          webm       720x720    720p   64k , vp9, 25fps, video only, 1.17MiB
135          mp4        480x480    480p   90k , avc1.4d401e, 25fps, video only, 1.46MiB
248          webm       1080x1080  1080p   97k , vp9, 25fps, video only, 1.72MiB
136          mp4        720x720    720p  213k , avc1.4d401f, 25fps, video only, 2.66MiB
137          mp4        1080x1080  1080p  476k , avc1.640020, 25fps, video only, 5.78MiB
18           mp4        360x360    360p  125k , avc1.42001E, 25fps, mp4a.40.2@ 96k (44100Hz), 5.30MiB (best)

Description

When signed up with youtube music premium, a 'high quality' stream is available in the form of format code 141 [256k AAC]. This audio format is only available when using the music.youtube.com site, however.

When using youtube-dl on music.youtube.com links, format code 141 is not available, and instead the highest quality available is 251 [Opus 160k].
If you look at the 'stats for nerds' on both music.youtube.com and regular youtube.com, you can see that they are using 141 and 251, respectively, for the audio codec.

What I suspect is happening, is that music,youtube.com links are simply parsed the same way as regular youtube.com links, and thus the non music site is the one being scraped.

Is there a way to have music youtube links pull the data from music.youtube.com? Or is there something else which is causing -f 141 not to work?

@dstftw
Copy link
Collaborator

@dstftw dstftw commented May 13, 2020

You must provide premium for any work on that.

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.