chrippa / livestreamer

Command-line utility that extracts streams from various services and pipes them into a video player of choice. No longer maintained, use streamlink or youtube-dl instead.
http://livestreamer.io/
BSD 2-Clause "Simplified" License
3.88k stars 580 forks source link

I get "403 Client Error: Forbidden)" #1412

Open robot00f opened 8 years ago

robot00f commented 8 years ago

m3u8: http://flacvcms-f.akamaihd.net/i/video/FLAC_FOD_LATAM/47/867/693686339688_,25,40,12,8,4,2,56000.mp4.csmil/index_1_av.m3u8?null=0&hdntl=exp=1469242277~acl=%2fi%2fvideo%2fFLAC_FOD_LATAM%2f47%2f867%2f693686339688_*~data=hdntl~hmac=24daf916645be5bbde3aaf03efc21005db71768be8d044b33f036ec5c16c291b with osmfhls.kutu.ru I can see

C:\Program Files (x86)\Livestreamer>livestreamer "hls://http://flacvcms-f.akamai
hd.net/i/video/FLAC_FOD_LATAM/47/867/693686339688_,25,40,12,8,4,2,56000.mp4.csmi
l/index_1_av.m3u8?null=0&hdntl=exp=1469242277~acl=%2fi%2fvideo%2fFLAC_FOD_LATAM%
2f47%2f867%2f693686339688_*~data=hdntl~hmac=24daf916645be5bbde3aaf03efc21005db71
768be8d044b33f036ec5c16c291b" best -o 01.ts
[cli][info] Found matching plugin stream for URL hls://http://flacvcms-f.akamaih
d.net/i/video/FLAC_FOD_LATAM/47/867/693686339688_,25,40,12,8,4,2,56000.mp4.csmil
/index_1_av.m3u8?null=0&hdntl=exp=1469242277~acl=%2fi%2fvideo%2fFLAC_FOD_LATAM%2
f47%2f867%2f693686339688_*~data=hdntl~hmac=24daf916645be5bbde3aaf03efc21005db717
68be8d044b33f036ec5c16c291b
[cli][info] Available streams: live (worst, best)
[cli][info] Opening stream: live (hls)
[cli][error] Could not open stream: Unable to open URL: http://flacvcms-f.akamai
hd.net/i/video/FLAC_FOD_LATAM/47/867/693686339688_,25,40,12,8,4,2,56000.mp4.csmi
l/index_1_av.m3u8?null=0&hdntl=exp=1469242277~acl=%2fi%2fvideo%2fFLAC_FOD_LATAM%
2f47%2f867%2f693686339688_*~data=hdntl~hmac=24daf916645be5bbde3aaf03efc21005db71
768be8d044b33f036ec5c16c291b (403 Client Error: Forbidden)

C:\Program Files (x86)\Livestreamer>
ghost commented 8 years ago

Maybe additional parameters are required (for example: User-Agent, Cookie, ...) (see List of HTTP header fields). You can also try to use the master playlist (master.m3u8), instead of a single media playlist (index_1_av.m3u8).

scottbernstein-zz commented 8 years ago

The issue here is the parameter hdntl -- that is an expiration date and time stored as "unix epoch" format. Google "Epoch time converter" and you will see what that value (1469242277) translates to. After that time expires, a new token (including hdntl, acl, and hmac below) must be generated for akamai to serve you the file.

If you can't get the original site to generate you a new token (usually not difficult) there are Akamai token generator sites that you can look up on google if you search a bit.

Best,

Scott


From: brunomoreno71 notifications@github.com Sent: Friday, July 22, 2016 1:23:51 AM To: chrippa/livestreamer Subject: [chrippa/livestreamer] I get "403 Client Error: Forbidden)" (#1412)

m3u8: http://flacvcms-f.akamaihd.net/i/video/FLAC_FOD_LATAM/47/867/693686339688_,25,40,12,8,4,2,56000.mp4.csmil/index_1_av.m3u8?null=0&hdntl=exp=1469242277~acl=%2fi%2fvideo%2fFLAC_FOD_LATAM%2f47%2f867%2f693686339688_*~data=hdntl~hmac=24daf916645be5bbde3aaf03efc21005db71768be8d044b33f036ec5c16c291bhttp://flacvcms-f.akamaihd.net/i/video/FLAC_FOD_LATAM/47/867/693686339688_,25,40,12,8,4,2,56000.mp4.csmil/index_1_av.m3u8?null=0&hdntl=exp=1469242277%7Eacl=%2fi%2fvideo%2fFLAC_FOD_LATAM%2f47%2f867%2f693686339688_*%7Edata=hdntl%7Ehmac=24daf916645be5bbde3aaf03efc21005db71768be8d044b33f036ec5c16c291b with osmfhls.kutu.ru I can see

C:\Program Files (x86)\Livestreamer>livestreamer "hls://http://flacvcms-f.akamai hd.net/i/video/FLAC_FODLATAM/47/867/693686339688,25,40,12,8,4,2,56000.mp4.csmi l/index_1_av.m3u8?null=0&hdntl=exp=1469242277~acl=%2fi%2fvideo%2fFLAC_FOD_LATAM% 2f47%2f867%2f693686339688__~data=hdntl~hmac=24daf916645be5bbde3aaf03efc21005db71 768be8d044b33f036ec5c16c291b" best -o 01.ts [cli][info] Found matching plugin stream for URL hls://http://flacvcms-f.akamaih d.net/i/video/FLAC_FODLATAM/47/867/693686339688,25,40,12,8,4,2,56000.mp4.csmil /index_1_av.m3u8?null=0&hdntl=exp=1469242277~acl=%2fi%2fvideo%2fFLAC_FOD_LATAM%2 f47%2f867%2f693686339688__~data=hdntl~hmac=24daf916645be5bbde3aaf03efc21005db717 68be8d044b33f036ec5c16c291b [cli][info] Available streams: live (worst, best) [cli][info] Opening stream: live (hls) [cli][error] Could not open stream: Unable to open URL: http://flacvcms-f.akamai hd.net/i/video/FLAC_FODLATAM/47/867/693686339688,25,40,12,8,4,2,56000.mp4.csmi l/index_1_av.m3u8?null=0&hdntl=exp=1469242277~acl=%2fi%2fvideo%2fFLAC_FODLATAM% 2f47%2f867%2f693686339688*~data=hdntl~hmac=24daf916645be5bbde3aaf03efc21005db71 768be8d044b33f036ec5c16c291b (403 Client Error: Forbidden)

C:\Program Files (x86)\Livestreamer>

You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/chrippa/livestreamer/issues/1412, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AESJ1ua3FsLch6UunnwU9WMBit54SuSHks5qYFPngaJpZM4JScuN.

ghost commented 8 years ago

The issue here is the parameter hdntl -- that is an expiration date and time stored as "unix epoch" format.

@scottbernstein

Not necessarily. He was testing it with the OSMF HLS Plugin and it worked. I guess the problem actually lies somewhere else.

scottbernstein-zz commented 8 years ago

...depends on if his testing was inside the time window or not. [😊]


From: nullacht notifications@github.com Sent: Monday, July 25, 2016 11:50:16 AM To: chrippa/livestreamer Cc: scottbernstein; Mention Subject: Re: [chrippa/livestreamer] I get "403 Client Error: Forbidden)" (#1412)

The issue here is the parameter hdntl -- that is an expiration date and time stored as "unix epoch" format.

@scottbernsteinhttps://github.com/scottbernstein

Not necessarily. He was testing it with the OSMF HLS Pluginhttp://osmfhls.kutu.ru and it worked. I guess the problem actually lies somewhere else.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/chrippa/livestreamer/issues/1412#issuecomment-234994632, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AESJ1uJaLWmO4CUCHv-1WDVbolgDVqnqks5qZNs4gaJpZM4JScuN.