livestreamer: 403 Client Error: Forbidden - Need some help to get this to work.

Hi, i’m trying to watch this stream with livestreamer but i get this error:

livestreamer "hlsvariant://https://srgssruni13ch-lh.akamaihd.net/i/enc13uni_ch@191855/master.m3u8" best
[cli][info] Found matching plugin stream for URL hlsvariant://https://srgssruni13ch-lh.akamaihd.net/i/enc13uni_ch@191855/master.m3u8
error: Unable to open URL: https://srgssruni13ch-lh.akamaihd.net/i/enc13uni_ch@191855/master.m3u8 (403 Client Error: Forbidden)

Please note that you need a Swiss proxy to watch the stream on the website.

Here are some more info about the stream:

Webpage: http://www.rsi.ch/play/tv/live?channelId=LA1#?tvLiveId=livestream_La2&index=all HTTP-HDS - http://srgssruni13ch-lh.akamaihd.net/z/enc13uni_ch@191855/manifest.f4m HTTP-HLS - https://srgssruni13ch-lh.akamaihd.net/i/enc13uni_ch@191855/master.m3u8 http://pastebin.com/8NDEAaQv

I got this url sniffing with Url Helper, i don’t know if it’s usefull:

http://srgssruni13ch-lh.akamaihd.net/i/enc13uni_ch@191855/segment243152152_1200_av-p.ts?sd=6&rebase=on&id=AgAfBzh02ZKlhX0+9VbUfxBsY3cSgMmFXIfeb0S%2ftitxFa99wc0J6fh5lW94O0pORTkoYycZWy4ILw%3d%3d&hdntl=exp=1458999293~acl=/i/enc13uni_ch@191855/*~data=hdntl~hmac=3d483bbd42cb3c2cb43cefda5ca712db62fee4f0f4800699d4c1b54a6f1f17a6

I tried with the protocols hds:// hls:// hlsvariant:// without luck. All the attempts have been made using Tunnelbear Vpn connected to Switzerland.

Thank you

About this issue

Most upvoted comments

Switch to HLS.

livestreamer "hlsvariant://https://srgssruni13ch-lh.akamaihd.net/i/enc13uni_ch@191855/master.m3u8?hdnts=exp=1459417115~acl=/i/enc13uni_ch@191855/*~hmac=d3adfb4202873d0a19136f1fec90dd77c27a7804f285470ed5dc2a3fe8be4cd7" best
[cli][info] Found matching plugin stream for URL hlsvariant://https://srgssruni13ch-lh.akamaihd.net/i/enc13uni_ch@191855/master.m3u8?hdnts=exp=1459417115~acl=/i/enc13uni_ch@191855/*~hmac=d3adfb4202873d0a19136f1fec90dd77c27a7804f285470ed5dc2a3fe8be4cd7
[cli][info] Available streams: 48k (worst), 180p, 272p, 288p, 360p (best)
[cli][info] Opening stream: 360p (hls)
[cli][info] Starting player: "C:\Program Files (x86)\Video\MPC-HC\mpc-hc.exe"
Video: MPEG4 Video (H264) 640x360 25fps [V: h264 main L3.0, yuv420p, 640x360]
Audio: AAC 44100Hz stereo 127kbps [A: aac lc, 44100 Hz, stereo, 127 kb/s]

(Yet another new comment instead of edit, incase you see these via email… 😄)

Try to sniff the URL again (hint: browser dev tools & network tab is enough) and get this instead:

http://srgssruni13ch-lh.akamaihd.net/z/enc13uni_ch@191855/manifest.f4m?hdnts=exp%3D1459094735~acl%3D%2Fz%2Fenc13uni_ch%40191855%2F*~hmac%3Db80eb816ae0dfb876af47d9bcbbf0602ce5738e623b5b60f728123b91c1f0dd7&g=RXVYYEUTNHXI&hdcore=3.7.0&plugin=aasp-3.7.0.39.44

The try this sort of format:

livestreamer "hds://URL_LIKE_ABOVE_HERE pvswf=URL_TO_FLASHPLAYER.swf" best

Find the flash player path from page source or via dev tools. I can’t test this anyway as I only have Tunnelbear browser addon.