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.47k stars 10.04k forks source link

[youtube] Youtube Red videos fail with '403: Forbidden' #12730

Open sa7mon opened 7 years ago

sa7mon commented 7 years ago

Please follow the guide below


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

Before submitting an issue make sure you have:

What is the purpose of your issue?


Description of your issue, suggested solution and other information

Downloading of Youtube Red videos appears to be broken. The following is a log of an attempt with a valid Youtube Red account with 2FA disabled to rule out that possibility. It seems like it attempts to get it, fails, and then falls back to downloading the trailer. I can provide credentials via PM in the IRC channel.

Tested on: OS X 10.12.3

bash-4.4$ ./youtube-dl https://www.youtube.com/watch?v=XD3M5JN1uhg --username (username) --password (password) --verbose
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'https://www.youtube.com/watch?v=XD3M5JN1uhg', u'--username', u'PRIVATE', u'--password', u'PRIVATE', u'--verbose']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.04.11
[debug] Python version 2.7.12 - Darwin-16.4.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 3.2.4, ffprobe 3.2.4
[debug] Proxy map: {}
[youtube] Downloading login page
[youtube] Logging in
[youtube] XD3M5JN1uhg: Downloading webpage
[youtube] XkVczL-rBSY: Downloading webpage
[youtube] XkVczL-rBSY: Downloading video info webpage
[youtube] XkVczL-rBSY: Extracting video information
WARNING: unable to extract uploader nickname
[youtube] {22} signature length 46.40, html5 player en_US-vflaxXRn1
[youtube] {43} signature length 46.40, html5 player en_US-vflaxXRn1
[youtube] {18} signature length 46.40, html5 player en_US-vflaxXRn1
[youtube] {36} signature length 46.40, html5 player en_US-vflaxXRn1
[youtube] {17} signature length 46.40, html5 player en_US-vflaxXRn1
[youtube] {137} signature length 46.40, html5 player en_US-vflaxXRn1
[youtube] {248} signature length 46.40, html5 player en_US-vflaxXRn1
[youtube] {136} signature length 46.40, html5 player en_US-vflaxXRn1
[youtube] {247} signature length 46.40, html5 player en_US-vflaxXRn1
[youtube] {135} signature length 46.40, html5 player en_US-vflaxXRn1
[youtube] {244} signature length 46.40, html5 player en_US-vflaxXRn1
[youtube] {134} signature length 46.40, html5 player en_US-vflaxXRn1
[youtube] {243} signature length 46.40, html5 player en_US-vflaxXRn1
[youtube] {133} signature length 46.40, html5 player en_US-vflaxXRn1
[youtube] {242} signature length 46.40, html5 player en_US-vflaxXRn1
[youtube] {160} signature length 46.40, html5 player en_US-vflaxXRn1
[youtube] {278} signature length 46.40, html5 player en_US-vflaxXRn1
[youtube] {140} signature length 46.40, html5 player en_US-vflaxXRn1
[youtube] {171} signature length 46.40, html5 player en_US-vflaxXRn1
[youtube] {249} signature length 46.40, html5 player en_US-vflaxXRn1
[youtube] {250} signature length 46.40, html5 player en_US-vflaxXRn1
[youtube] {251} signature length 46.40, html5 player en_US-vflaxXRn1
[youtube] XkVczL-rBSY: Downloading player https://www.youtube.com/yts/jsbin/player-en_US-vflaxXRn1/base.js
[youtube] XkVczL-rBSY: Downloading MPD manifest
WARNING: [youtube] XkVczL-rBSY: Skipping DASH manifest: ExtractorError(u'Failed to download MPD 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.',)
[debug] Invoking downloader on u'https://r15---sn-5hnedn7r.googlevideo.com/videoplayback?requiressl=yes&ipbits=0&gir=yes&gcr=nl&id=o-AKa1twzBgQ_Lug1oKQtZarJ0c0kmaaHwwkAETExl9Mmk&keepalive=yes&mn=sn-5hnedn7r&mm=31&mv=m&mt=1492075284&itag=248&ms=au&initcwndbps=3908750&sparams=clen%2Cdur%2Cei%2Cgcr%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Ckeepalive%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Crequiressl%2Csource%2Cupn%2Cexpire&upn=xtp-bvMdZpY&ip=145.74.162.103&ei=eUPvWIyQBcrL1wKh5Y7ACg&pl=15&mime=video%2Fwebm&expire=1492096985&clen=22141700&dur=141.224&source=youtube&lmt=1476124593692380&key=yt6&signature=5A111F2878A8C40E5E04BBA6B432FDFD05BC304E.D97160F8A2CB5EDEF75F162D43459EA04C37C09A&ratebypass=yes'
[download] Destination: The Thinning - Free Preview-XkVczL-rBSY.f248.webm
[download] 100% of 21.12MiB in 00:08
[debug] Invoking downloader on u'https://r15---sn-5hnedn7r.googlevideo.com/videoplayback?requiressl=yes&ipbits=0&gir=yes&gcr=nl&id=o-AKa1twzBgQ_Lug1oKQtZarJ0c0kmaaHwwkAETExl9Mmk&keepalive=yes&mn=sn-5hnedn7r&mm=31&mv=m&mt=1492075284&itag=251&ms=au&initcwndbps=3908750&sparams=clen%2Cdur%2Cei%2Cgcr%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Ckeepalive%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Crequiressl%2Csource%2Cupn%2Cexpire&upn=xtp-bvMdZpY&ip=145.74.162.103&ei=eUPvWIyQBcrL1wKh5Y7ACg&pl=15&mime=audio%2Fwebm&expire=1492096985&clen=2274202&dur=141.261&source=youtube&lmt=1476124337350623&key=yt6&signature=DF8DBA25A3275280E2F26A41A49C41F8283A6B9C.A895FEBB7B5F6A1753702F3BDD84341060005E64&ratebypass=yes'
[download] Destination: The Thinning - Free Preview-XkVczL-rBSY.f251.webm
[download] 100% of 2.17MiB in 00:00
[ffmpeg] Merging formats into "The Thinning - Free Preview-XkVczL-rBSY.webm"
[debug] ffmpeg command line: ffmpeg -y -i 'file:The Thinning - Free Preview-XkVczL-rBSY.f248.webm' -i 'file:The Thinning - Free Preview-XkVczL-rBSY.f251.webm' -c copy -map 0:v:0 -map 1:a:0 'file:The Thinning - Free Preview-XkVczL-rBSY.temp.webm'
Deleting original file The Thinning - Free Preview-XkVczL-rBSY.f248.webm (pass -k to keep)
Deleting original file The Thinning - Free Preview-XkVczL-rBSY.f251.webm (pass -k to keep)
bash-4.4$
dstftw commented 7 years ago

Post the output with --dump-pages.

sa7mon commented 7 years ago

@dstftw Here we are: youtube.txt

(A bit more of a backstory: I'm currently not in my home country and think I may have triggered a security check the first time I tried it)

This time it seemed like it was working, but I was connected through my home VPN which is very slow and I didn't want to wait 13 hours. The file size seems like it might have been the right video? Unless the preview is also in 4K and is somehow ~700MB.

goochkc commented 7 years ago

I have an issue that looks to be the same. I am in the US and am using the US YouTube. I am running youtube-dl 2017.04.17 on Ubuntu 16.04. I am attempting to download a video on YouTube that I paid for and I am also getting

Skipping DASH manifest: ExtractorError(u'Failed to download MPD manifest: HTTP Error 403: Forbidden (caused by HTTPError());

I end up with a file that has no video and the audio appears to be dead air. I am attaching the output: yt-dl_err.txt

.

thermodyn commented 7 years ago

I have the same issue with purchases on regular youtube.

When trying to downloaded purchased videos I get this in the log window:

WARNING: [youtube] 0vubfaM2QXk: Skipping DASH manifest: ExtractorError(u'Failed to download MPD manifest: HTTP Error 403: Forbidden (caused by HTTPError());

The video downloads but I get no audio and black screen only when I try to play back.

Here is the verbose output: ytdl-verbose.txt

I am running on a system with Ubuntu 16.04 Server.

Mortal commented 7 years ago

I have the same issue with a purchase made in Denmark and trying to download in the US. The free preview is downloaded instead.

Output with -v --dump-pages: youtubedl.txt

EDIT: Downloading in Denmark works just fine.

Hrxn commented 7 years ago

But a download in Denmark would work?

Mortal commented 7 years ago

Yes, I can download the video in Denmark.