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

[youtube] HTTP error 500 when downloading via channel download, not present when downloading individually #13647

Closed
matoro opened this issue Jul 14, 2017 · 0 comments
Labels

Comments

@matoro
Copy link

@matoro matoro commented Jul 14, 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.07.09. 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.07.09

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

The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue


If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:

Add -v flag to your command line you run youtube-dl with, copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):

$ youtube-dl "https://www.youtube.com/user/s4y0nar4" --verbose --print-traffic
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['https://www.youtube.com/user/s4y0nar4', '--verbose', '--print-traffic']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.07.09
[debug] Python version 3.6.1 - Linux-4.11.9-1-ARCH-x86_64-with-arch
[debug] exe versions: ffmpeg 3.3.2, ffprobe 3.3.2, rtmpdump 2.4
[debug] Proxy map: {}
[youtube:user] s4y0nar4: Downloading channel page
send: b'GET /user/s4y0nar4/videos?view=57 HTTP/1.1\r\nHost: www.youtube.com\r\nCookie: PREF=f1=50000000&hl=en\r\nUser-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20150101 Firefox/47.0 (Chrome)\r\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\nAccept-Encoding: gzip, deflate\r\nAccept-Language: en-us,en;q=0.5\r\nConnection: close\r\n\r\n'
reply: 'HTTP/1.1 200 OK\r\n'
[youtube:playlist] UU_oDwY5DrRMS_83HPkE5RCQ: Downloading webpage
header: Expires header: X-Frame-Options header: Content-Type header: Cache-Control header: Strict-Transport-Security header: X-Content-Type-Options header: P3P header: X-XSS-Protection header: Content-Encoding header: Date header: Server header: Set-Cookie header: Set-Cookie header: Alt-Svc header: Connection header: Transfer-Encoding send: b'GET /playlist?list=UU_oDwY5DrRMS_83HPkE5RCQ&disable_polymer=true HTTP/1.1\r\nHost: www.youtube.com\r\nCookie: PREF=f1=50000000&hl=en; YSC=uwvpARlSbF8; VISITOR_INFO1_LIVE=Kc4vLZjzMVo\r\nUser-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20150101 Firefox/47.0 (Chrome)\r\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\nAccept-Encoding: gzip, deflate\r\nAccept-Language: en-us,en;q=0.5\r\nConnection: close\r\n\r\n'
reply: 'HTTP/1.1 200 OK\r\n'
[download] Downloading playlist: Uploads from Always Censored
header: X-XSS-Protection header: Expires header: Strict-Transport-Security header: Content-Type header: Cache-Control header: Content-Encoding header: X-Frame-Options header: X-Content-Type-Options header: Date header: Server header: Alt-Svc header: Connection header: Transfer-Encoding [youtube:playlist] UU_oDwY5DrRMS_83HPkE5RCQ: Downloading page #1
send: b'GET /browse_ajax?action_continuation=1&continuation=4qmFsgIkEhpWTFVVX29Ed1k1RHJSTVNfODNIUGtFNVJDURoGQ0dVJTNE HTTP/1.1\r\nHost: youtube.com\r\nCookie: PREF=f1=50000000&hl=en; YSC=uwvpARlSbF8; VISITOR_INFO1_LIVE=Kc4vLZjzMVo\r\nUser-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20150101 Firefox/47.0 (Chrome)\r\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\nAccept-Encoding: gzip, deflate\r\nAccept-Language: en-us,en;q=0.5\r\nConnection: close\r\n\r\n'
reply: 'HTTP/1.1 301 Moved Permanently\r\n'
header: Location header: Content-Length header: Date header: Content-Type header: Server header: X-XSS-Protection header: X-Frame-Options header: Alt-Svc header: Connection send: b'GET /browse_ajax?action_continuation=1&continuation=4qmFsgIkEhpWTFVVX29Ed1k1RHJSTVNfODNIUGtFNVJDURoGQ0dVJTNE HTTP/1.1\r\nHost: www.youtube.com\r\nCookie: PREF=f1=50000000&hl=en; YSC=uwvpARlSbF8; VISITOR_INFO1_LIVE=Kc4vLZjzMVo\r\nUser-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20150101 Firefox/47.0 (Chrome)\r\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\nAccept-Encoding: gzip, deflate\r\nAccept-Language: en-us,en;q=0.5\r\nConnection: close\r\n\r\n'
reply: 'HTTP/1.1 200 OK\r\n'
[youtube:playlist] playlist Uploads from Always Censored: Downloading 129 videos
header: Content-Disposition header: X-Frame-Options header: X-Content-Type-Options header: X-XSS-Protection header: Strict-Transport-Security header: Content-Encoding header: Cache-Control header: Content-Type header: Expires header: Date header: Server header: Alt-Svc header: Connection header: Transfer-Encoding [download] Downloading video 1 of 129

...lots of traffic...

[download] Downloading video 54 of 129
[youtube] O3rrOPy6ZaM: Downloading webpage
send: b'GET /watch?v=O3rrOPy6ZaM&gl=US&hl=en&has_verified=1&bpctr=9999999999 HTTP/1.1\r\nHost: www.youtube.com\r\nCookie: PREF=f1=50000000&hl=en; YSC=uwvpARlSbF8; VISITOR_INFO1_LIVE=Kc4vLZjzMVo; s_gl=1d69aac621b2f9c0a25dade722d6e24bcwIAAABVUw==\r\nUser-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20150101 Firefox/47.0 (Chrome)\r\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\nAccept-Encoding: gzip, deflate\r\nAccept-Language: en-us,en;q=0.5\r\nConnection: close\r\n\r\n'
reply: 'HTTP/1.1 200 OK\r\n'
[youtube] O3rrOPy6ZaM: Downloading video info webpage
header: Content-Encoding header: X-XSS-Protection header: Strict-Transport-Security header: Cache-Control header: Content-Type header: X-Frame-Options header: X-Content-Type-Options header: Expires header: P3P header: Date header: Server header: Set-Cookie header: Alt-Svc header: Connection header: Transfer-Encoding send: b'GET /get_video_info?video_id=O3rrOPy6ZaM&ps=default&eurl=&gl=US&hl=en&el=info&sts=17354 HTTP/1.1\r\nHost: www.youtube.com\r\nCookie: PREF=f1=50000000&hl=en; YSC=uwvpARlSbF8; VISITOR_INFO1_LIVE=Kc4vLZjzMVo; s_gl=1d69aac621b2f9c0a25dade722d6e24bcwIAAABVUw==\r\nUser-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20150101 Firefox/47.0 (Chrome)\r\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\nAccept-Encoding: gzip, deflate\r\nAccept-Language: en-us,en;q=0.5\r\nConnection: close\r\n\r\n'
reply: 'HTTP/1.1 200 OK\r\n'
[youtube] O3rrOPy6ZaM: Extracting video information
header: X-Content-Type-Options header: Content-Type header: Cache-Control header: Expires header: P3P header: X-XSS-Protection header: Strict-Transport-Security header: X-Frame-Options header: Content-Encoding header: Date header: Server header: Set-Cookie header: Alt-Svc header: Connection header: Transfer-Encoding [youtube] O3rrOPy6ZaM: Downloading MPD manifest
send: b'GET /api/manifest/dash/ip/<redacted>/mt/1499993990/signature/6171AE48F47A3D67ECFE09FFCED0226019BA7340.1B8BB87E7B07AC1265E62B8D217226D40029A567/sparams/as%2Cei%2Chfr%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Cplayback_host%2Crequiressl%2Csource%2Cexpire/key/yt6/id/3b7aeb38fcba65a3/mv/m/mn/sn-n0qqxoapo3-jaal/mm/31/hfr/1/ms/au/requiressl/yes/ei/5hdoWbWCDcPpuQXdlp7QDw/pl/22/itag/0/initcwndbps/2835000/ipbits/0/expire/1500015686/as/fmp4_audio_clear%2Cfmp4_sd_hd_clear/source/youtube/playback_host/r4---sn-n0qqxoapo3-jaal.googlevideo.com HTTP/1.1\r\nHost: manifest.googlevideo.com\r\nUser-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20150101 Firefox/47.0 (Chrome)\r\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\nAccept-Encoding: gzip, deflate\r\nAccept-Language: en-us,en;q=0.5\r\nConnection: close\r\n\r\n'
reply: 'HTTP/1.1 200 OK\r\n'
WARNING: Requested formats are incompatible for merge and will be merged into mkv.
[debug] Invoking downloader on 'https://r4---sn-n0qqxoapo3-jaal.googlevideo.com/videoplayback?id=3b7aeb38fcba65a3&itag=136&source=youtube&requiressl=yes&mv=m&mn=sn-n0qqxoapo3-jaal&mm=31&ms=au&ei=5hdoWbWCDcPpuQXdlp7QDw&pl=22&initcwndbps=2835000&ratebypass=yes&mime=video/mp4&gir=yes&clen=40999963&lmt=1380077973281846&dur=215.849&mt=1499993990&signature=35ED1D6FB9C4ACA75247A883D9DDC1D97C8EDD6C.93D1EA6D934EBC87974B80CF44971416B6F48F62&key=dg_yt0&ip=<redacted>&ipbits=0&expire=1500015686&sparams=ip,ipbits,expire,id,itag,source,requiressl,mv,mn,mm,ms,ei,pl,initcwndbps,ratebypass,mime,gir,clen,lmt,dur'
header: Content-Type header: Date header: Pragma header: Expires header: Cache-Control header: Content-Encoding header: Server header: X-XSS-Protection header: X-Frame-Options header: Alt-Svc header: Connection header: Transfer-Encoding [download] [Metalcore_Vocal] Foreground Eclipse - To the Terminus-O3rrOPy6ZaM.f136.mp4 has already been downloaded
[download] 100% of 39.10MiB
[debug] Invoking downloader on 'https://r4---sn-n0qqxoapo3-jaal.googlevideo.com/videoplayback?source=youtube&clen=4172473&signature=2C91722D82CB5CCBDAA027910D8B87D32DC7A90C.CE4C191ED7683D8ECC7E008DB270AE576FDF2937&ei=5RdoWYCbKoGlugX_yKXwDA&key=yt6&ipbits=0&pcm2cms=yes&itag=251&ms=au&initcwndbps=2835000&mv=m&dur=215.881&mt=1499993990&id=o-ABtXNqslEOsG10K4_UvdXe_xovaO36iBbHQLiOnb585M&sparams=clen%2Cdur%2Cei%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Ckeepalive%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpcm2cms%2Cpl%2Crequiressl%2Csource%2Cexpire&pl=22&mn=sn-n0qqxoapo3-jaal&ip=<redacted>&mm=31&lmt=1428230290972465&expire=1500015685&keepalive=yes&gir=yes&mime=audio%2Fwebm&requiressl=yes&ratebypass=yes'
send: b'GET /videoplayback?source=youtube&clen=4172473&signature=2C91722D82CB5CCBDAA027910D8B87D32DC7A90C.CE4C191ED7683D8ECC7E008DB270AE576FDF2937&ei=5RdoWYCbKoGlugX_yKXwDA&key=yt6&ipbits=0&pcm2cms=yes&itag=251&ms=au&initcwndbps=2835000&mv=m&dur=215.881&mt=1499993990&id=o-ABtXNqslEOsG10K4_UvdXe_xovaO36iBbHQLiOnb585M&sparams=clen%2Cdur%2Cei%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Ckeepalive%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpcm2cms%2Cpl%2Crequiressl%2Csource%2Cexpire&pl=22&mn=sn-n0qqxoapo3-jaal&ip=<redacted>&mm=31&lmt=1428230290972465&expire=1500015685&keepalive=yes&gir=yes&mime=audio%2Fwebm&requiressl=yes&ratebypass=yes HTTP/1.1\r\nAccept-Encoding: identity\r\nHost: r4---sn-n0qqxoapo3-jaal.googlevideo.com\r\nUser-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20150101 Firefox/47.0 (Chrome)\r\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\nAccept-Language: en-us,en;q=0.5\r\nConnection: close\r\n\r\n'
reply: 'HTTP/1.1 500 Internal Server Error\r\n'
[download] Got server HTTP error. Retrying (attempt 1 of 10)...
header: Last-Modified header: Content-Type header: Content-Length header: Connection header: X-Content-Type-Options header: Date header: Server send: b'GET /videoplayback?source=youtube&clen=4172473&signature=2C91722D82CB5CCBDAA027910D8B87D32DC7A90C.CE4C191ED7683D8ECC7E008DB270AE576FDF2937&ei=5RdoWYCbKoGlugX_yKXwDA&key=yt6&ipbits=0&pcm2cms=yes&itag=251&ms=au&initcwndbps=2835000&mv=m&dur=215.881&mt=1499993990&id=o-ABtXNqslEOsG10K4_UvdXe_xovaO36iBbHQLiOnb585M&sparams=clen%2Cdur%2Cei%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Ckeepalive%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpcm2cms%2Cpl%2Crequiressl%2Csource%2Cexpire&pl=22&mn=sn-n0qqxoapo3-jaal&ip=<redacted>&mm=31&lmt=1428230290972465&expire=1500015685&keepalive=yes&gir=yes&mime=audio%2Fwebm&requiressl=yes&ratebypass=yes HTTP/1.1\r\nHost: r4---sn-n0qqxoapo3-jaal.googlevideo.com\r\nUser-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20150101 Firefox/47.0 (Chrome)\r\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\nAccept-Language: en-us,en;q=0.5\r\nAccept-Encoding: gzip, deflate\r\nConnection: close\r\n\r\n'
reply: 'HTTP/1.1 500 Internal Server Error\r\n'
[download] Got server HTTP error. Retrying (attempt 2 of 10)...
header: Last-Modified header: Content-Type header: Content-Length header: Connection header: X-Content-Type-Options header: Date header: Server send: b'GET /videoplayback?source=youtube&clen=4172473&signature=2C91722D82CB5CCBDAA027910D8B87D32DC7A90C.CE4C191ED7683D8ECC7E008DB270AE576FDF2937&ei=5RdoWYCbKoGlugX_yKXwDA&key=yt6&ipbits=0&pcm2cms=yes&itag=251&ms=au&initcwndbps=2835000&mv=m&dur=215.881&mt=1499993990&id=o-ABtXNqslEOsG10K4_UvdXe_xovaO36iBbHQLiOnb585M&sparams=clen%2Cdur%2Cei%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Ckeepalive%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpcm2cms%2Cpl%2Crequiressl%2Csource%2Cexpire&pl=22&mn=sn-n0qqxoapo3-jaal&ip=<redacted>&mm=31&lmt=1428230290972465&expire=1500015685&keepalive=yes&gir=yes&mime=audio%2Fwebm&requiressl=yes&ratebypass=yes HTTP/1.1\r\nHost: r4---sn-n0qqxoapo3-jaal.googlevideo.com\r\nUser-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20150101 Firefox/47.0 (Chrome)\r\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\nAccept-Language: en-us,en;q=0.5\r\nAccept-Encoding: gzip, deflate\r\nConnection: close\r\n\r\n'
reply: 'HTTP/1.1 500 Internal Server Error\r\n'
[download] Got server HTTP error. Retrying (attempt 3 of 10)...
header: Last-Modified header: Content-Type header: Content-Length header: Connection header: X-Content-Type-Options header: Date header: Server send: b'GET /videoplayback?source=youtube&clen=4172473&signature=2C91722D82CB5CCBDAA027910D8B87D32DC7A90C.CE4C191ED7683D8ECC7E008DB270AE576FDF2937&ei=5RdoWYCbKoGlugX_yKXwDA&key=yt6&ipbits=0&pcm2cms=yes&itag=251&ms=au&initcwndbps=2835000&mv=m&dur=215.881&mt=1499993990&id=o-ABtXNqslEOsG10K4_UvdXe_xovaO36iBbHQLiOnb585M&sparams=clen%2Cdur%2Cei%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Ckeepalive%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpcm2cms%2Cpl%2Crequiressl%2Csource%2Cexpire&pl=22&mn=sn-n0qqxoapo3-jaal&ip=<redacted>&mm=31&lmt=1428230290972465&expire=1500015685&keepalive=yes&gir=yes&mime=audio%2Fwebm&requiressl=yes&ratebypass=yes HTTP/1.1\r\nHost: r4---sn-n0qqxoapo3-jaal.googlevideo.com\r\nUser-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20150101 Firefox/47.0 (Chrome)\r\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\nAccept-Language: en-us,en;q=0.5\r\nAccept-Encoding: gzip, deflate\r\nConnection: close\r\n\r\n'
reply: 'HTTP/1.1 500 Internal Server Error\r\n'
[download] Got server HTTP error. Retrying (attempt 4 of 10)...
header: Last-Modified header: Content-Type header: Content-Length header: Connection header: X-Content-Type-Options header: Date header: Server send: b'GET /videoplayback?source=youtube&clen=4172473&signature=2C91722D82CB5CCBDAA027910D8B87D32DC7A90C.CE4C191ED7683D8ECC7E008DB270AE576FDF2937&ei=5RdoWYCbKoGlugX_yKXwDA&key=yt6&ipbits=0&pcm2cms=yes&itag=251&ms=au&initcwndbps=2835000&mv=m&dur=215.881&mt=1499993990&id=o-ABtXNqslEOsG10K4_UvdXe_xovaO36iBbHQLiOnb585M&sparams=clen%2Cdur%2Cei%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Ckeepalive%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpcm2cms%2Cpl%2Crequiressl%2Csource%2Cexpire&pl=22&mn=sn-n0qqxoapo3-jaal&ip=<redacted>&mm=31&lmt=1428230290972465&expire=1500015685&keepalive=yes&gir=yes&mime=audio%2Fwebm&requiressl=yes&ratebypass=yes HTTP/1.1\r\nHost: r4---sn-n0qqxoapo3-jaal.googlevideo.com\r\nUser-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20150101 Firefox/47.0 (Chrome)\r\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\nAccept-Language: en-us,en;q=0.5\r\nAccept-Encoding: gzip, deflate\r\nConnection: close\r\n\r\n'
reply: 'HTTP/1.1 500 Internal Server Error\r\n'
[download] Got server HTTP error. Retrying (attempt 5 of 10)...
header: Last-Modified header: Content-Type header: Content-Length header: Connection header: X-Content-Type-Options header: Date header: Server send: b'GET /videoplayback?source=youtube&clen=4172473&signature=2C91722D82CB5CCBDAA027910D8B87D32DC7A90C.CE4C191ED7683D8ECC7E008DB270AE576FDF2937&ei=5RdoWYCbKoGlugX_yKXwDA&key=yt6&ipbits=0&pcm2cms=yes&itag=251&ms=au&initcwndbps=2835000&mv=m&dur=215.881&mt=1499993990&id=o-ABtXNqslEOsG10K4_UvdXe_xovaO36iBbHQLiOnb585M&sparams=clen%2Cdur%2Cei%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Ckeepalive%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpcm2cms%2Cpl%2Crequiressl%2Csource%2Cexpire&pl=22&mn=sn-n0qqxoapo3-jaal&ip=<redacted>&mm=31&lmt=1428230290972465&expire=1500015685&keepalive=yes&gir=yes&mime=audio%2Fwebm&requiressl=yes&ratebypass=yes HTTP/1.1\r\nHost: r4---sn-n0qqxoapo3-jaal.googlevideo.com\r\nUser-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20150101 Firefox/47.0 (Chrome)\r\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\nAccept-Language: en-us,en;q=0.5\r\nAccept-Encoding: gzip, deflate\r\nConnection: close\r\n\r\n'
reply: 'HTTP/1.1 500 Internal Server Error\r\n'
[download] Got server HTTP error. Retrying (attempt 6 of 10)...
header: Last-Modified header: Content-Type header: Content-Length header: Connection header: X-Content-Type-Options header: Date header: Server send: b'GET /videoplayback?source=youtube&clen=4172473&signature=2C91722D82CB5CCBDAA027910D8B87D32DC7A90C.CE4C191ED7683D8ECC7E008DB270AE576FDF2937&ei=5RdoWYCbKoGlugX_yKXwDA&key=yt6&ipbits=0&pcm2cms=yes&itag=251&ms=au&initcwndbps=2835000&mv=m&dur=215.881&mt=1499993990&id=o-ABtXNqslEOsG10K4_UvdXe_xovaO36iBbHQLiOnb585M&sparams=clen%2Cdur%2Cei%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Ckeepalive%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpcm2cms%2Cpl%2Crequiressl%2Csource%2Cexpire&pl=22&mn=sn-n0qqxoapo3-jaal&ip=<redacted>&mm=31&lmt=1428230290972465&expire=1500015685&keepalive=yes&gir=yes&mime=audio%2Fwebm&requiressl=yes&ratebypass=yes HTTP/1.1\r\nHost: r4---sn-n0qqxoapo3-jaal.googlevideo.com\r\nUser-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20150101 Firefox/47.0 (Chrome)\r\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\nAccept-Language: en-us,en;q=0.5\r\nAccept-Encoding: gzip, deflate\r\nConnection: close\r\n\r\n'
reply: 'HTTP/1.1 500 Internal Server Error\r\n'
[download] Got server HTTP error. Retrying (attempt 7 of 10)...
header: Last-Modified header: Content-Type header: Content-Length header: Connection header: X-Content-Type-Options header: Date header: Server send: b'GET /videoplayback?source=youtube&clen=4172473&signature=2C91722D82CB5CCBDAA027910D8B87D32DC7A90C.CE4C191ED7683D8ECC7E008DB270AE576FDF2937&ei=5RdoWYCbKoGlugX_yKXwDA&key=yt6&ipbits=0&pcm2cms=yes&itag=251&ms=au&initcwndbps=2835000&mv=m&dur=215.881&mt=1499993990&id=o-ABtXNqslEOsG10K4_UvdXe_xovaO36iBbHQLiOnb585M&sparams=clen%2Cdur%2Cei%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Ckeepalive%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpcm2cms%2Cpl%2Crequiressl%2Csource%2Cexpire&pl=22&mn=sn-n0qqxoapo3-jaal&ip=<redacted>&mm=31&lmt=1428230290972465&expire=1500015685&keepalive=yes&gir=yes&mime=audio%2Fwebm&requiressl=yes&ratebypass=yes HTTP/1.1\r\nHost: r4---sn-n0qqxoapo3-jaal.googlevideo.com\r\nUser-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20150101 Firefox/47.0 (Chrome)\r\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\nAccept-Language: en-us,en;q=0.5\r\nAccept-Encoding: gzip, deflate\r\nConnection: close\r\n\r\n'
reply: 'HTTP/1.1 500 Internal Server Error\r\n'
[download] Got server HTTP error. Retrying (attempt 8 of 10)...
header: Last-Modified header: Content-Type header: Content-Length header: Connection header: X-Content-Type-Options header: Date header: Server send: b'GET /videoplayback?source=youtube&clen=4172473&signature=2C91722D82CB5CCBDAA027910D8B87D32DC7A90C.CE4C191ED7683D8ECC7E008DB270AE576FDF2937&ei=5RdoWYCbKoGlugX_yKXwDA&key=yt6&ipbits=0&pcm2cms=yes&itag=251&ms=au&initcwndbps=2835000&mv=m&dur=215.881&mt=1499993990&id=o-ABtXNqslEOsG10K4_UvdXe_xovaO36iBbHQLiOnb585M&sparams=clen%2Cdur%2Cei%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Ckeepalive%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpcm2cms%2Cpl%2Crequiressl%2Csource%2Cexpire&pl=22&mn=sn-n0qqxoapo3-jaal&ip=<redacted>&mm=31&lmt=1428230290972465&expire=1500015685&keepalive=yes&gir=yes&mime=audio%2Fwebm&requiressl=yes&ratebypass=yes HTTP/1.1\r\nHost: r4---sn-n0qqxoapo3-jaal.googlevideo.com\r\nUser-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20150101 Firefox/47.0 (Chrome)\r\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\nAccept-Language: en-us,en;q=0.5\r\nAccept-Encoding: gzip, deflate\r\nConnection: close\r\n\r\n'
reply: 'HTTP/1.1 500 Internal Server Error\r\n'
[download] Got server HTTP error. Retrying (attempt 9 of 10)...
header: Last-Modified header: Content-Type header: Content-Length header: Connection header: X-Content-Type-Options header: Date header: Server send: b'GET /videoplayback?source=youtube&clen=4172473&signature=2C91722D82CB5CCBDAA027910D8B87D32DC7A90C.CE4C191ED7683D8ECC7E008DB270AE576FDF2937&ei=5RdoWYCbKoGlugX_yKXwDA&key=yt6&ipbits=0&pcm2cms=yes&itag=251&ms=au&initcwndbps=2835000&mv=m&dur=215.881&mt=1499993990&id=o-ABtXNqslEOsG10K4_UvdXe_xovaO36iBbHQLiOnb585M&sparams=clen%2Cdur%2Cei%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Ckeepalive%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpcm2cms%2Cpl%2Crequiressl%2Csource%2Cexpire&pl=22&mn=sn-n0qqxoapo3-jaal&ip=<redacted>&mm=31&lmt=1428230290972465&expire=1500015685&keepalive=yes&gir=yes&mime=audio%2Fwebm&requiressl=yes&ratebypass=yes HTTP/1.1\r\nHost: r4---sn-n0qqxoapo3-jaal.googlevideo.com\r\nUser-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20150101 Firefox/47.0 (Chrome)\r\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\nAccept-Language: en-us,en;q=0.5\r\nAccept-Encoding: gzip, deflate\r\nConnection: close\r\n\r\n'
reply: 'HTTP/1.1 500 Internal Server Error\r\n'
[download] Got server HTTP error. Retrying (attempt 10 of 10)...
header: Last-Modified header: Content-Type header: Content-Length header: Connection header: X-Content-Type-Options header: Date header: Server send: b'GET /videoplayback?source=youtube&clen=4172473&signature=2C91722D82CB5CCBDAA027910D8B87D32DC7A90C.CE4C191ED7683D8ECC7E008DB270AE576FDF2937&ei=5RdoWYCbKoGlugX_yKXwDA&key=yt6&ipbits=0&pcm2cms=yes&itag=251&ms=au&initcwndbps=2835000&mv=m&dur=215.881&mt=1499993990&id=o-ABtXNqslEOsG10K4_UvdXe_xovaO36iBbHQLiOnb585M&sparams=clen%2Cdur%2Cei%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Ckeepalive%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpcm2cms%2Cpl%2Crequiressl%2Csource%2Cexpire&pl=22&mn=sn-n0qqxoapo3-jaal&ip=<redacted>&mm=31&lmt=1428230290972465&expire=1500015685&keepalive=yes&gir=yes&mime=audio%2Fwebm&requiressl=yes&ratebypass=yes HTTP/1.1\r\nHost: r4---sn-n0qqxoapo3-jaal.googlevideo.com\r\nUser-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20150101 Firefox/47.0 (Chrome)\r\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\nAccept-Language: en-us,en;q=0.5\r\nAccept-Encoding: gzip, deflate\r\nConnection: close\r\n\r\n'
reply: 'HTTP/1.1 500 Internal Server Error\r\n'
ERROR: giving up after 10 retries
  File "/usr/bin/youtube-dl", line 11, in <module>
    load_entry_point('youtube-dl==2017.7.9', 'console_scripts', 'youtube-dl')()
  File "/usr/lib/python3.6/site-packages/youtube_dl/__init__.py", line 465, in main
    _real_main(argv)
  File "/usr/lib/python3.6/site-packages/youtube_dl/__init__.py", line 455, in _real_main
    retcode = ydl.download(all_urls)
  File "/usr/lib/python3.6/site-packages/youtube_dl/YoutubeDL.py", line 1940, in download
    url, force_generic_extractor=self.params.get('force_generic_extractor', False))
  File "/usr/lib/python3.6/site-packages/youtube_dl/YoutubeDL.py", line 786, in extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "/usr/lib/python3.6/site-packages/youtube_dl/YoutubeDL.py", line 847, in process_ie_result
    extra_info=extra_info)
  File "/usr/lib/python3.6/site-packages/youtube_dl/YoutubeDL.py", line 786, in extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "/usr/lib/python3.6/site-packages/youtube_dl/YoutubeDL.py", line 977, in process_ie_result
    extra_info=extra)
  File "/usr/lib/python3.6/site-packages/youtube_dl/YoutubeDL.py", line 847, in process_ie_result
    extra_info=extra_info)
  File "/usr/lib/python3.6/site-packages/youtube_dl/YoutubeDL.py", line 786, in extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "/usr/lib/python3.6/site-packages/youtube_dl/YoutubeDL.py", line 840, in process_ie_result
    return self.process_video_result(ie_result, download=download)
  File "/usr/lib/python3.6/site-packages/youtube_dl/YoutubeDL.py", line 1583, in process_video_result
    self.process_info(new_info)
  File "/usr/lib/python3.6/site-packages/youtube_dl/YoutubeDL.py", line 1841, in process_info
    partial_success = dl(fname, new_info)
  File "/usr/lib/python3.6/site-packages/youtube_dl/YoutubeDL.py", line 1789, in dl
    return fd.download(name, info)
  File "/usr/lib/python3.6/site-packages/youtube_dl/downloader/common.py", line 361, in download
    return self.real_download(filename, info_dict)
  File "/usr/lib/python3.6/site-packages/youtube_dl/downloader/http.py", line 131, in real_download
    self.report_error('giving up after %s retries' % retries)
  File "/usr/lib/python3.6/site-packages/youtube_dl/downloader/common.py", line 163, in report_error
    self.ydl.report_error(*args, **kargs)
  File "/usr/lib/python3.6/site-packages/youtube_dl/YoutubeDL.py", line 603, in report_error
    self.trouble(error_message, tb)
  File "/usr/lib/python3.6/site-packages/youtube_dl/YoutubeDL.py", line 565, in trouble
    tb_data = traceback.format_list(traceback.extract_stack())

header: Last-Modified header: Content-Type header: Content-Length header: Connection header: X-Content-Type-Options header: Date header: Server

The full log is quite verbose, I have uploaded it here: https://spit.mixtape.moe/view/raw/0ccf6994


Description of your issue, suggested solution and other information

When trying to download a channel, youtube returns an HTTP 500 status for this particular video. All previous videos download with no errors. The error is reproducible. Debugging steps I've taken:

First, I tried downloading the video individually. As you can see, this worked perfectly fine:

youtube-dl "https://www.youtube.com/watch?v=SFckgX7OfYI" --verbose --print-traffic
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['https://www.youtube.com/watch?v=SFckgX7OfYI', '--verbose', '--print-traffic']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.07.09
[debug] Python version 3.6.1 - Linux-4.11.9-1-ARCH-x86_64-with-arch
[debug] exe versions: ffmpeg 3.3.2, ffprobe 3.3.2, rtmpdump 2.4
[debug] Proxy map: {}
[youtube] SFckgX7OfYI: Downloading webpage
send: b'GET /watch?v=SFckgX7OfYI&gl=US&hl=en&has_verified=1&bpctr=9999999999 HTTP/1.1\r\nHost: www.youtube.com\r\nCookie: PREF=f1=50000000&hl=en\r\nUser-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20150101 Firefox/47.0 (Chrome)\r\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\nAccept-Encoding: gzip, deflate\r\nAccept-Language: en-us,en;q=0.5\r\nConnection: close\r\n\r\n'
reply: 'HTTP/1.1 200 OK\r\n'
[youtube] SFckgX7OfYI: Downloading video info webpage
header: Content-Type header: Cache-Control header: X-Frame-Options header: X-Content-Type-Options header: Expires header: Content-Encoding header: X-XSS-Protection header: P3P header: Strict-Transport-Security header: Date header: Server header: Set-Cookie header: Set-Cookie header: Set-Cookie header: Alt-Svc header: Connection header: Transfer-Encoding send: b'GET /get_video_info?video_id=SFckgX7OfYI&ps=default&eurl=&gl=US&hl=en&el=info&sts=17354 HTTP/1.1\r\nHost: www.youtube.com\r\nCookie: PREF=f1=50000000&hl=en; s_gl=1d69aac621b2f9c0a25dade722d6e24bcwIAAABVUw==; VISITOR_INFO1_LIVE=vXgEJiIYjEg; YSC=4p0YeuvB6zU\r\nUser-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20150101 Firefox/47.0 (Chrome)\r\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\nAccept-Encoding: gzip, deflate\r\nAccept-Language: en-us,en;q=0.5\r\nConnection: close\r\n\r\n'
reply: 'HTTP/1.1 200 OK\r\n'
[youtube] SFckgX7OfYI: Extracting video information
header: Expires header: Content-Encoding header: X-XSS-Protection header: Strict-Transport-Security header: P3P header: Content-Type header: X-Content-Type-Options header: X-Frame-Options header: Cache-Control header: Date header: Server header: Set-Cookie header: Alt-Svc header: Connection header: Transfer-Encoding [youtube] SFckgX7OfYI: Downloading MPD manifest
send: b'GET /api/manifest/dash/playback_host/r4---sn-n0qqxoapo3-jaal.googlevideo.com/requiressl/yes/itag/0/signature/DC311F69BB51860879870F8E2D47FC822871CE63.E2E40515754AF782F71294F3680428AC050B5130/hfr/1/mm/31/ip/<redacted>/initcwndbps/2812500/expire/1500016033/mt/1499994292/sparams/as%2Cei%2Chfr%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Cplayback_host%2Crequiressl%2Csource%2Cexpire/as/fmp4_audio_clear%2Cfmp4_sd_hd_clear/source/youtube/ms/au/key/yt6/mn/sn-n0qqxoapo3-jaal/id/485724817ece7d82/ei/QRloWe7UFoOYuwWV9YyoBg/mv/m/pl/22/ipbits/0 HTTP/1.1\r\nHost: manifest.googlevideo.com\r\nUser-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20150101 Firefox/47.0 (Chrome)\r\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\nAccept-Encoding: gzip, deflate\r\nAccept-Language: en-us,en;q=0.5\r\nConnection: close\r\n\r\n'
reply: 'HTTP/1.1 200 OK\r\n'
WARNING: Requested formats are incompatible for merge and will be merged into mkv.
[debug] Invoking downloader on 'https://r4---sn-n0qqxoapo3-jaal.googlevideo.com/videoplayback?id=485724817ece7d82&itag=136&source=youtube&requiressl=yes&mm=31&initcwndbps=2812500&ms=au&mn=sn-n0qqxoapo3-jaal&ei=QRloWe7UFoOYuwWV9YyoBg&mv=m&pl=22&ratebypass=yes&mime=video/mp4&gir=yes&clen=28206304&lmt=1390382215377579&dur=315.916&signature=920792B6BEE787BFBF88098ED365AF8D0C66C20B.8E0BE97572E3A79D0892F3995A5E3B55E73B42AA&mt=1499994292&key=dg_yt0&ip=<redacted>&ipbits=0&expire=1500016033&sparams=ip,ipbits,expire,id,itag,source,requiressl,mm,initcwndbps,ms,mn,ei,mv,pl,ratebypass,mime,gir,clen,lmt,dur'
header: Content-Type header: Date header: Pragma header: Expires header: Cache-Control header: Content-Encoding header: Server header: X-XSS-Protection header: X-Frame-Options header: Alt-Svc header: Connection header: Transfer-Encoding send: b'GET /videoplayback?id=485724817ece7d82&itag=136&source=youtube&requiressl=yes&mm=31&initcwndbps=2812500&ms=au&mn=sn-n0qqxoapo3-jaal&ei=QRloWe7UFoOYuwWV9YyoBg&mv=m&pl=22&ratebypass=yes&mime=video/mp4&gir=yes&clen=28206304&lmt=1390382215377579&dur=315.916&signature=920792B6BEE787BFBF88098ED365AF8D0C66C20B.8E0BE97572E3A79D0892F3995A5E3B55E73B42AA&mt=1499994292&key=dg_yt0&ip=<redacted>&ipbits=0&expire=1500016033&sparams=ip,ipbits,expire,id,itag,source,requiressl,mm,initcwndbps,ms,mn,ei,mv,pl,ratebypass,mime,gir,clen,lmt,dur HTTP/1.1\r\nAccept-Encoding: identity\r\nHost: r4---sn-n0qqxoapo3-jaal.googlevideo.com\r\nUser-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20150101 Firefox/47.0 (Chrome)\r\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\nAccept-Language: en-us,en;q=0.5\r\nConnection: close\r\n\r\n'
reply: 'HTTP/1.1 200 OK\r\n'
[download] Destination: [Electronic_Vocal] Halozy - アンインストール-SFckgX7OfYI.f136.mp4
[download] 100% of 26.90MiB in 00:03
[debug] Invoking downloader on 'https://r4---sn-n0qqxoapo3-jaal.googlevideo.com/videoplayback?ipbits=0&ei=QBloWf3-MMeQuAXCoq-oCA&key=yt6&signature=182CBACC295FAB7B271942F5B06F13C515F06277.9534744A5338F27C173903D463397EA0A83F150D&source=youtube&clen=6224126&keepalive=yes&gir=yes&mime=audio%2Fwebm&requiressl=yes&lmt=1413097248632388&expire=1500016032&pl=22&ip=<redacted>&mm=31&mn=sn-n0qqxoapo3-jaal&initcwndbps=2812500&itag=251&ms=au&mt=1499994292&mv=m&dur=315.961&id=o-ABuDJ5rSYwKzMurvtr0VYHun_CFAm8i9hW3MWPb9MQlr&sparams=clen%2Cdur%2Cei%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Ckeepalive%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Crequiressl%2Csource%2Cexpire&ratebypass=yes'
send: b'GET /videoplayback?ipbits=0&ei=QBloWf3-MMeQuAXCoq-oCA&key=yt6&signature=182CBACC295FAB7B271942F5B06F13C515F06277.9534744A5338F27C173903D463397EA0A83F150D&source=youtube&clen=6224126&keepalive=yes&gir=yes&mime=audio%2Fwebm&requiressl=yes&lmt=1413097248632388&expire=1500016032&pl=22&ip=<redacted>&mm=31&mn=sn-n0qqxoapo3-jaal&initcwndbps=2812500&itag=251&ms=au&mt=1499994292&mv=m&dur=315.961&id=o-ABuDJ5rSYwKzMurvtr0VYHun_CFAm8i9hW3MWPb9MQlr&sparams=clen%2Cdur%2Cei%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Ckeepalive%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Crequiressl%2Csource%2Cexpire&ratebypass=yes HTTP/1.1\r\nAccept-Encoding: identity\r\nHost: r4---sn-n0qqxoapo3-jaal.googlevideo.com\r\nUser-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20150101 Firefox/47.0 (Chrome)\r\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\nAccept-Language: en-us,en;q=0.5\r\nConnection: close\r\n\r\n'
reply: 'HTTP/1.1 200 OK\r\n'
[download] Destination: [Electronic_Vocal] Halozy - アンインストール-SFckgX7OfYI.f251.webm
[download] 100% of 5.94MiB in 00:00
[ffmpeg] Merging formats into "[Electronic_Vocal] Halozy - アンインストール-SFckgX7OfYI.mkv"
[debug] ffmpeg command line: ffmpeg -y -i 'file:[Electronic_Vocal] Halozy - アンインストール-SFckgX7OfYI.f136.mp4' -i 'file:[Electronic_Vocal] Halozy - アンインストール-SFckgX7OfYI.f251.webm' -c copy -map 0:v:0 -map 1:a:0 'file:[Electronic_Vocal] Halozy - アンインストール-SFckgX7OfYI.temp.mkv'
Deleting original file [Electronic_Vocal] Halozy - アンインストール-SFckgX7OfYI.f136.mp4 (pass -k to keep)
Deleting original file [Electronic_Vocal] Halozy - アンインストール-SFckgX7OfYI.f251.webm (pass -k to keep)

I then tried sending a HEAD request to youtube with the URL I extracted from the initial run:

$ curl --head --location 'https://r4---sn-n0qqxoapo3-jaal.googlevideo.com/videoplayback?sparams=clen%2Cdur%2Cei%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Ckeepalive%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Crequiressl%2Csource%2Cexpire&itag=251&ms=au&initcwndbps=2727500&mv=m&mt=1499992955&mn=sn-n0qqxoapo3-jaal&mm=31&keepalive=yes&clen=4172473&expire=1500014647&pl=22&mime=audio%2Fwebm&key=yt6&ei=1hNoWeOaPMe2ugWyz4LYDg&ipbits=0&lmt=1428230290972465&dur=215.881&source=youtube&id=o-AMclMaXWgwVvlSxQEYPlHmdGLY_Oj8CfcgqSMeNWoFC9&signature=0FC6E11C025D1206EB7D1D9B3A29269804107B2D.8A32880260A4F04535D361DFE453137F21049430&gir=yes&requiressl=yes&ip=<redacted>&ratebypass=yes'
HTTP/1.1 200 OK
Last-Modified: Sun, 05 Apr 2015 10:38:10 GMT
Content-Type: audio/webm
Date: Fri, 14 Jul 2017 00:49:53 GMT
Expires: Fri, 14 Jul 2017 00:49:53 GMT
Cache-Control: private, max-age=20954
Accept-Ranges: bytes
Content-Length: 4172473
Connection: keep-alive
Alt-Svc: quic=":443"; ma=2592000
X-Content-Type-Options: nosniff
Server: gvs 1.0

Since this seemed normal, I tried dumping the video to console:

$ curl --location 'https://r4---sn-n0qqxoapo3-jaal.googlevideo.com/videoplayback?sparams=clen%2Cdur%2Cei%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Ckeepalive%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Crequiressl%2Csource%2Cexpire&itag=251&ms=au&initcwndbps=2727500&mv=m&mt=1499992955&mn=sn-n0qqxoapo3-jaal&mm=31&keepalive=yes&clen=4172473&expire=1500014647&pl=22&mime=audio%2Fwebm&key=yt6&ei=1hNoWeOaPMe2ugWyz4LYDg&ipbits=0&lmt=1428230290972465&dur=215.881&source=youtube&id=o-AMclMaXWgwVvlSxQEYPlHmdGLY_Oj8CfcgqSMeNWoFC9&signature=0FC6E11C025D1206EB7D1D9B3A29269804107B2D.8A32880260A4F04535D361DFE453137F21049430&gir=yes&requiressl=yes&ip=<redacted>&ratebypass=yes'

However this produced no output. I increased the verbosity:

$ curl --location 'https://r4---sn-n0qqxoapo3-jaal.googlevideo.com/videoplayback?sparams=clen%2Cdur%2Cei%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Ckeepalive%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Crequiressl%2Csource%2Cexpire&itag=251&ms=au&initcwndbps=2727500&mv=m&mt=1499992955&mn=sn-n0qqxoapo3-jaal&mm=31&keepalive=yes&clen=4172473&expire=1500014647&pl=22&mime=audio%2Fwebm&key=yt6&ei=1hNoWeOaPMe2ugWyz4LYDg&ipbits=0&lmt=1428230290972465&dur=215.881&source=youtube&id=o-AMclMaXWgwVvlSxQEYPlHmdGLY_Oj8CfcgqSMeNWoFC9&signature=0FC6E11C025D1206EB7D1D9B3A29269804107B2D.8A32880260A4F04535D361DFE453137F21049430&gir=yes&requiressl=yes&ip=<redacted>&ratebypass=yes' --verbose
*   Trying 208.180.168.47...
* TCP_NODELAY set
* Connected to r4---sn-n0qqxoapo3-jaal.googlevideo.com (208.180.168.47) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* successfully set certificate verify locations:
*   CAfile: /etc/ssl/certs/ca-certificates.crt
  CApath: none
* TLSv1.2 (OUT), TLS handshake, Client hello (1):
* TLSv1.2 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
* TLSv1.2 (IN), TLS handshake, Server finished (14):
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
* TLSv1.2 (OUT), TLS change cipher, Client hello (1):
* TLSv1.2 (OUT), TLS handshake, Finished (20):
* TLSv1.2 (IN), TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
* ALPN, server did not agree to a protocol
* Server certificate:
*  subject: C=US; ST=California; L=Mountain View; O=Google Inc; CN=*.googlevideo.com
*  start date: Jun  7 09:23:00 2017 GMT
*  expire date: Aug 30 09:23:00 2017 GMT
*  subjectAltName: host "r4---sn-n0qqxoapo3-jaal.googlevideo.com" matched cert's "*.googlevideo.com"
*  issuer: C=US; O=Google Inc; CN=Google Internet Authority G2
*  SSL certificate verify ok.
> GET /videoplayback?sparams=clen%2Cdur%2Cei%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Ckeepalive%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Crequiressl%2Csource%2Cexpire&itag=251&ms=au&initcwndbps=2727500&mv=m&mt=1499992955&mn=sn-n0qqxoapo3-jaal&mm=31&keepalive=yes&clen=4172473&expire=1500014647&pl=22&mime=audio%2Fwebm&key=yt6&ei=1hNoWeOaPMe2ugWyz4LYDg&ipbits=0&lmt=1428230290972465&dur=215.881&source=youtube&id=o-AMclMaXWgwVvlSxQEYPlHmdGLY_Oj8CfcgqSMeNWoFC9&signature=0FC6E11C025D1206EB7D1D9B3A29269804107B2D.8A32880260A4F04535D361DFE453137F21049430&gir=yes&requiressl=yes&ip=<redacted>&ratebypass=yes HTTP/1.1
> Host: r4---sn-n0qqxoapo3-jaal.googlevideo.com
> User-Agent: curl/7.54.1
> Accept: */*
> 
< HTTP/1.1 500 Internal Server Error
< Last-Modified: Wed, 02 May 2007 10:26:10 GMT
< Content-Type: text/plain
< Content-Length: 0
< Connection: close
< X-Content-Type-Options: nosniff
< Date: Fri, 14 Jul 2017 00:50:49 GMT
< Server: gvs 1.0
< 
* Closing connection 0
* TLSv1.2 (OUT), TLS alert, Client hello (1):

As you can see, youtube responds with a 500. I am guessing that this is in response to a malformed request submitted by youtube-dl in some way, but not knowing the specifics of how the youtube system works I can only guess. I have replaced my real IP address with <redacted> throughout this bug report, including in URLs, for privacy reasons. I am more than happy to contribute any other information which may be of assistance. Thank you for your hard work on this great program.

@dstftw dstftw closed this Jul 14, 2017
@dstftw dstftw added the duplicate label Jul 14, 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.