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

[tbs] ERROR: ffmpeg exited with code 1 ([http @ 0000000002993d60] HTTP error 403 Forbidden) #11800

Closed
StevenDTX opened this issue Jan 21, 2017 · 9 comments

Comments

@StevenDTX
Copy link

@StevenDTX StevenDTX commented Jan 21, 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.01.18. 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.01.18

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 ```):


E:\>youtube-dl.exe --restrict-filenames --continue --no-check-certificate --verbose -o Good.Behavior.S01E10.mp4 http://www.tntdrama.com/videos/good-behavior/season-1/episode-10/explicit-all-the-things.html
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--restrict-filenames', '--continue', '--no-check-certificate', '--verbose', '-o', 'Good.Behavior.S01E10.mp4', 'http://www.tntdrama.com/videos/good-behavior/season-1/episode-10/explicit-all-the-things.html']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2017.01.18
[debug] Python version 3.4.4 - Windows-10-10.0.10586
[debug] exe versions: ffmpeg N-82966-g6993bb4, ffprobe N-72383-g7206b94, rtmpdump 2.4
[debug] Proxy map: {}
[TBS] explicit-all-the-things: Downloading webpage
[TBS] explicit-all-the-things: Downloading XML
[TBS] 2094645: Retrieving Media Token
[TBS] 2094645: Downloading XML
[TBS] 2094645: Downloading m3u8 information
[TBS] 2094645: Downloading m3u8 information
[TBS] 2094645: Downloading f4m manifest
WARNING: Unable to download f4m manifest: HTTP Error 404: Not Found
[debug] Invoking downloader on 'http://androidhls-secure.cdn.turner.com/tnt/big/secure/tve/2017-01/TNTE1012161600021698_HLS/TNTE1012161600021698_Layer6_vod.m3u8'
[download] Destination: Good.Behavior.S01E10.mp4
[debug] ffmpeg command line: ffmpeg -y -headers 'Accept-Encoding: gzip, deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Cookie: hdnea2=expires=1485111923~access=/tnt/big/secure/tve/2017-01/TNTE1012161600021698_HLS/*~md5=9339de786b320ed0f61a077852625bd2
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20150101 Firefox/47.0 (Chrome)
' -i http://androidhls-secure.cdn.turner.com/tnt/big/secure/tve/2017-01/TNTE1012161600021698_HLS/TNTE1012161600021698_Layer6_vod.m3u8 -c copy -f mp4 -bsf:a aac_adtstoasc file:Good.Behavior.S01E10.mp4.part
ffmpeg version N-82966-g6993bb4 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 5.4.0 (GCC)
  configuration: --enable-gpl --enable-version3 --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-decklink --enable-zlib
  libavutil      55. 43.100 / 55. 43.100
  libavcodec     57. 70.100 / 57. 70.100
  libavformat    57. 61.100 / 57. 61.100
  libavdevice    57.  2.100 / 57.  2.100
  libavfilter     6. 68.100 /  6. 68.100
  libswscale      4.  3.101 /  4.  3.101
  libswresample   2.  4.100 /  2.  4.100
  libpostproc    54.  2.100 / 54.  2.100
[http @ 0000000002993d60] HTTP error 403 Forbidden
http://androidhls-secure.cdn.turner.com/tnt/big/secure/tve/2017-01/TNTE1012161600021698_HLS/TNTE1012161600021698_Layer6_vod.m3u8: Server returned 403 Forbidden (access denied)


ERROR: ffmpeg exited with code 1
  File "__main__.py", line 19, in <module>
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpkdk_72bb\build\youtube_dl\__init__.py", line 444, in main
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpkdk_72bb\build\youtube_dl\__init__.py", line 434, in _real_main
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpkdk_72bb\build\youtube_dl\YoutubeDL.py", line 1791, in download
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpkdk_72bb\build\youtube_dl\YoutubeDL.py", line 705, in extract_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpkdk_72bb\build\youtube_dl\YoutubeDL.py", line 751, in process_ie_result
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpkdk_72bb\build\youtube_dl\YoutubeDL.py", line 1435, in process_video_result
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpkdk_72bb\build\youtube_dl\YoutubeDL.py", line 1699, in process_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpkdk_72bb\build\youtube_dl\YoutubeDL.py", line 1641, in dl
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpkdk_72bb\build\youtube_dl\downloader\common.py", line 353, in download
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpkdk_72bb\build\youtube_dl\downloader\external.py", line 43, in real_download
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpkdk_72bb\build\youtube_dl\downloader\common.py", line 162, in report_error
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpkdk_72bb\build\youtube_dl\YoutubeDL.py", line 568, in report_error
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpkdk_72bb\build\youtube_dl\YoutubeDL.py", line 530, in trouble


http://www.tntdrama.com/videos/good-behavior/season-1/episode-10/explicit-all-the-things.html

I have verified that this is a FREE episode as of 01/20/2017. I am able to watch this video in a browser without any credentials.


Description of your issue, suggested solution and other information

Seems to detect M3U8, but cannot download it.

@remitamine
Copy link
Collaborator

@remitamine remitamine commented Jan 21, 2017

try to install pycrypto and add --hls-prefer-native to the command.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jan 21, 2017

It's a windows binary - pycrypto is embedded.

@remitamine
Copy link
Collaborator

@remitamine remitamine commented Jan 21, 2017

It's a windows binary - pycrypto is embedded.

i didn't know that windows binary embed the optional dependencies.
then just try to use --hls-prefer-native to the command.

@StevenDTX
Copy link
Author

@StevenDTX StevenDTX commented Jan 21, 2017

Thanks, @remitamine and @dstftw, it works with --hls-prefer-native! Bummer that its only 480p.

@remitamine
Copy link
Collaborator

@remitamine remitamine commented Jan 21, 2017

hd quality are available using hds(DRM protected) or rtmp(couldn't test them because i can't pass connection over a proxy or vpn).

@StevenDTX
Copy link
Author

@StevenDTX StevenDTX commented Jan 21, 2017

hd quality are available using hds(DRM protected) or rtmp(couldn't test them because i can't pass connection over a proxy or vpn).

Is there something else I can do to test?

@remitamine
Copy link
Collaborator

@remitamine remitamine commented Jan 21, 2017

If your VPN doesn't work, try VPNGate. It is the only thing that works for me

no the problem is not in the vpn. it's about passing the rtmp connection over the vpn or the proxy.

@remitamine
Copy link
Collaborator

@remitamine remitamine commented Jan 25, 2017

the problem in the issue was caused by ffmpeg when it send the Range: bytes=0- header.
with Range: bytes=0- header:

curl http://androidhls-secure.cdn.turner.com/toon/big/secure/tve/2016-12/CARE1011301600016833_HLS/CARE1011301600016833_Layer6_vod.m3u8 -H 'Cookie: hdnea2=expires=1485413964~access=/toon/big/secure/tve/2016-12/CARE1011301600016833_HLS/*~md5=edfa88515c17731bf75b7e5266d357c5' -H 'Range: bytes=0-'
 
<HTML><HEAD>
<TITLE>Access Denied</TITLE>
</HEAD><BODY>
<H1>Access Denied</H1>
 
You don't have permission to access "http&#58;&#47;&#47;androidhls&#45;secure&#46;cdn&#46;turner&#46;com&#47;toon&#47;big&#47;secure&#47;tve&#47;2016&#45;12&#47;CARE1011301600016833&#95;HLS&#47;CARE1011301600016833&#95;Layer6&#95;vod&#46;m3u8" on this server.<P>
Reference&#32;&#35;18&#46;976a1db8&#46;1485328392&#46;9e0aec5a
</BODY>
</HTML>

without Range: bytes=0- header.

curl http://androidhls-secure.cdn.turner.com/toon/big/secure/tve/2016-12/CARE1011301600016833_HLS/CARE1011301600016833_Layer6_vod.m3u8 -H 'Cookie: hdnea2=expires=1485413964~access=/toon/big/secure/tve/2016-12/CARE1011301600016833_HLS/*~md5=edfa88515c17731bf75b7e5266d357c5'
#EXTM3U
#EXT-X-VERSION:4
#EXT-X-ALLOW-CACHE:YES
#EXT-X-TARGETDURATION:10
#EXT-X-MEDIA-SEQUENCE:0
#EXT-X-KEY:METHOD=AES-128,URI="key4dba0357737a4e6cbb7c78ecd56f2285-0.key",IV=0x00000000000000000000000000000000
#EXTINF:10.01,
CARE1011301600016833_Layer6/10964_Period1/segment0.ts

ffmpeg request:

GET /toon/big/secure/tve/2016-12/CARE1011301600016833_HLS/CARE1011301600016833_Layer6_vod.m3u8 HTTP/1.1
Range: bytes=0-
Connection: close
Host: androidhls-secure.cdn.turner.com
Icy-MetaData: 1
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20150101 Firefox/47.0 (Chrome)
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding: gzip, deflate
Accept-Language: en-us,en;q=0.5
Cookie: hdnea2=expires=1485413869~access=/toon/big/secure/tve/2016-12/CARE1011301600016833_HLS/*~md5=8d0df7fa9764e26bfe297bcdeb3e9453

youtube-dl request:

GET /toon/big/secure/tve/2016-12/CARE1011301600016833_HLS/CARE1011301600016833_Layer6_vod.m3u8 HTTP/1.1
Host: androidhls-secure.cdn.turner.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20150101 Firefox/47.0 (Chrome)
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding: gzip, deflate
Accept-Language: en-us,en;q=0.5
Cookie: hdnea2=expires=1485413964~access=/toon/big/secure/tve/2016-12/CARE1011301600016833_HLS/*~md5=edfa88515c17731bf75b7e5266d357c5
Connection: close
@StevenDTX
Copy link
Author

@StevenDTX StevenDTX commented Feb 5, 2017

Thanks @remitamine

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
4 participants
You can’t perform that action at this time.