Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
[ESPN] ESPN+ "Unable to open key file" and "ffmpeg exited with code 1" #16359
Comments
|
Same issue for me currently :( |
|
ya, I just made a post about this. Really hard to get a download going for this. I have an account (my account) for testing. update: figured it out. |
|
@element73 how did you get it to work? |
|
I explained it somewhere. This issue should be closed since it's the same. If you can't find it, post here again. |
|
has anybody gotten that method to work? I can't figure it out to save my life. |
|
@thesteveway Probably late for you, but just putting all of this together for myself. In Chrome:
|
|
@mhpob thank you! I've been using a similar method with streamlink but never found a way with y-dl |
|
@mhpob I followed your tips, got the authorization string and plugged it in. getting mixed results but none good. Sometimes it seems to work but with errors and only downloads a video showing 'commercial break'. when watching the real stream it starts with a couple of seconds of this but then moves on to the real thing. This is what the log below shows. I stopped it after a few seconds otherwise it would have been hundreds of lines. the other case is when I get this
if I use livestreamer I get a more verbose message
but either way it downloads, just the wrong video with 'commercial break'. another oddity is that it skips significant chunks like so (note how it skips from 30sec to 22min)
anyway, hope someone can help as I am pretty desperate to get this to work (BTW, I do have an ESPN+ paid account) MAIN LOG
|
|
what's the full command you're using? |
|
|
try this... youtube-dl --add-header "authorization:KEY" "M3U8" the key is the reallyyyyy long string |
|
Especially on Window$, never skip using double quotes around strings that have something else than A-Z, 0-9 or |
They seem to have switched up the mechanism; now the auth key is stored in the HTTP header |
hi,can you download espn+ video? |
|
Yes, I am able to download from ESPN+ following these directions. |
|
Is this still working? |
no its not |
Works for me |
please help lol been trying all day |
|
@thesteveway can i email you? |
Yeh np |
|
At least for me, this has stopped working because the number of bytes in the request header exceed a compiled in ffmpeg default of 4k; if you get the source code of ffmpeg and change the index 17a6ab07d3..5a6d499813 100644
--- a/libavformat/internal.h
+++ b/libavformat/internal.h
@@ -27,7 +27,7 @@
#include "avformat.h"
#include "os_support.h"
-#define MAX_URL_SIZE 4096
+#define MAX_URL_SIZE 8192
/** size of probe buffer, for guessing file type from file contents */
#define PROBE_BUF_MIN 2048 |
I realize this is a basic question but how exactly do I go about doing this? |
Visit https://github.com/FFmpeg/FFmpeg to get a copy of the source code. Navigate to the directory |
does anybody have a forked version of this that I could use bc I still don't understand lol |
Are you able to get something from espn+ to work? Can I email you as well to find a solution if yours is still working? |
|
@tml cannot find the |
|
this works for me Cntrl+shift+I Search for shortAuthorize Locate shortAuthorize?=xxxxxx Under Name Column Look under Headers -> Request Headers -> Authorization: xxxxx Ex: Authorization: Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Search for m3u8 Copy m3u8 url: Ex: https://content-ause2-up-5.uplynk.com/84a8e5ca2b774ebb854c88ce98e1317e/f.m3u8?oid=xxxxxxxxx Run the following command youtube-dl --add-header "authorization:pastekeyhere" "m3u8URLhere" I've had to reload the page if the authorize doesn't show up. I have not tried on espn+ but I can confirm this worked on the espn watch video that was marked espn/espn2. I'm assuming espn+ would be the same. |
|
@roadzy what os are you running? |
|
@cwondercheck youtube-dl is running in linux but I'm grabbing the links from a windows box. |
I can get your way to work on ESPN, but the "shortAuthorize" does not appear when in ESPN+. I was able to get a video from ESPN with your method, but ESPN+ seems to have an extra layer of encryption? |
I have not tried recently but pre Covid ESPN+ worked fine using this method (youtube-dl --add-header "authorization:pastekeyhere" "m3u8URLhere") |
|
The method searching for the |
What exactly should we be looking for atm? |
|
Any HTTP request with the header `dss-session-token`
…On Sat, May 30, 2020 at 9:40 PM cwondercheck ***@***.***> wrote:
The method searching for the dss-session-token key has been working on
ESPN+ for me for more than a year, and is still working as of this
afternoon; the only tricky part is finding which URL has the header in it,
as it seems to change every few months.
What exactly should we be looking for atm?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#16359 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAISTAL7IQ6JIVGETWCT7TRUHGRRANCNFSM4E57Y2FA>
.
|
|
That is what I have been doing, and I get the error still: ERROR: ffmpeg exited with code 1 |
|
for the people who this worked what operating system are you using and what browser? because i've noticed when I would change mine the results would be different |
|
I've seen it work in Chrome on Windows and Firefox on Linux. |
|
finally able to get it to work thanks you all |
|
@cwondercheck you should indicate what it was that finally made it work in case someone else has the same problem in the future. |
|
I copied what @ehurdler did and it worked |
|
nvm looks like it's not working for me anymore smh |
|
@tml how would you know that a link has the correct token do you use a specific extension? |
|
I use Chrome DevTools to search for the phrase "entitlement" in the Network panel. I look through each of these requests until I find one that has the HTTP header "dss-session-token" in the "Request Headers" panel: In all the videos I have archived, I have only ever seen one request with that header per video. I then apply the steps identified earlier using that request header's current value. |
|
@tml and how would you go about finding the correct .m3u8 |
|
I am struggling with how to answer this - it's the .m3u8 that shows up in the Network panel when your video starts playing. It should be painfully obvious which one it is. |
I know that I'm probably messing obvious something up but with any link I choose I get |
|
@tml could you show me an example of a working link? |
|
hmm interesting |
|
What? Why are you trying to download the "bucketId" URL? That is not something that you should be doing. I have no idea whether it will work or not, but at the least it's not what I'm doing to make this work. You get the "dss-session-header" from the HTTP request, and then you pass it as a header to |
|
if what you are saying is youtube-dl --add-header "autherization:key" "m3u8" yes I understand I was just showing you the link of the video so we could compare m3u8 links |
|
Well, I just noticed in your last comment here that you're spelling "Authorization" incorrectly, that might have somewhat to do with it perhaps? |
haha no that's not it I just spelled quickly |
|
Well, your exact URL with my dss-session-key works fine. |
what do you think could be the problem becuase I was able to download one video and that was about it this week |
|
I have no idea, but I'm pretty sure it's not the original bug being discussed here. My suggestion would be to open a new ticket - make sure you follow all the steps in the template. If you want to tag me on the new ticket, I can take a look. |


Please follow the guide below
xinto all the boxes [ ] relevant to your issue (like this:[x])Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2018.05.01. 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?
Not sure if bug or more site support need?
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 the
-vflag to your command line you run youtube-dl with (youtube-dl -v <your command line>), copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):If the purpose of this issue is a site support request please provide all kinds of example URLs support for which should be included (replace following example URLs by yours):
or
Note that youtube-dl does not support sites dedicated to copyright infringement. In order for site support request to be accepted all provided example URLs should not violate any copyrights.
Description of your issue, suggested solution and other information
Is I missing somethings obvious here?
Get "Unable to open key file" and "Error when loading first segment" and "ffmpeg exited with code 1" errors. Whats wrong? Do I needs to pass more informations through CLI ?
ESPN+ video. It's required to have ESPN+. I have account.
ESPN+ has a free trial if an account for testing needing. Just go here:
https://plus.espn.com/
Any helps appreciated? Thanks!