PDA

View Full Version : help downloading m3u8


limiteddi
05-27-2017, 03:05 PM
The link plays in local VLC and I am able to download it but I am interested in saving the video to another location and this is where I am stuck

Source: http://www.hotstar.com/tv/sherepunjab-maharaja-ranjit-singh/13447/maha-singh-kills-pir-muhammad/1000170395

Returns: https://staragvod3-vh.akamaihd.net/i/videos/lifeok/mrs/3/1000170395_,16,180,400,800,1300,2000,_STAR.mp4.csm il/master.m3u8?hdnea=st=1495918471~exp=1495919071~acl =/*~hmac=80ff77be2e430ae54556e4c14c8eee5339eb29bb34f b12b884bc9e78b15f9c43

From here I can grab the link I want and play or save it. BUT, on a remote PC I am getting "Permission Denied"

I have tried
curl -H 'Host: staragvod3-vh.akamaihd.net' -H 'Cookie: hdntl=exp=1496004353~acl=%2f*~data=hdntl~hmac=ae88 aa3a4e59009b45ef7515ebf9087557ae65427a207286bcf1a5 b2286902bd' -A "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:53.0) Gecko/20100101 Firefox/53.0" --referer "http://www.hotstar.com/player/HotstarPlayer.swf?release=WEB_5.0.40_7f5797e743aed f924d417fc4bbb4abf6c4fa70ae_20170525_0924" "https://staragvod3-vh.akamaihd.net/i/videos/lifeok/mrs/2/1000170295_,16,180,400,800,1300,2000,_STAR.mp4.csm il/master.m3u8?hdnea=st=1495917651~exp=1495918251~acl =/*~hmac=7037e3b6ee794a07d4a03fc4c4276d0250d4a9fc03a 91c2f08d5ec0cce01efa0"

Are there any additional headers I need to pass in order for a remote PC to play it?

kingstaytheking
05-27-2017, 07:05 PM
in this case you can use this

http://stream-recorder.com/forum/ext-x-m3u8-ts-aes-128-you-t22946.html

ffmpeg -protocol_whitelist file,udp,rtp,crypto,tcp,https,rtsp,tls,http -i "https://staragvod3-vh.akamaihd.net/i/videos/lifeok/mrs/3/1000170395_,16,180,400,800,1300,2000,_STAR.mp4.csm il/index_5_av.m3u8?null=0&id=AgCudAsz0ZTIDPogKlnv+YmY9mUd2Ea6nR2qcWiyjrDPaME VgEBgM9VBSBNdJAu+CavmbNgOvm76bw%3d%3d&hdntl=exp=1496019578~acl=%2f*~data=hdntl~hmac=71bc 2bab2d805442986598767a2e0fdaacb9008f3672ab83bbf40d 4ec5507508" -c:a copy -c:v copy "test.mp4"

AnoX007
05-29-2017, 03:47 AM
well try this to download ,

livestreamer "hlsvariant://https://staragvod3-vh.akamaihd.net/i/videos/lifeok/mrs/3/1000170395_,16,180,400,800,1300,2000,_STAR.mp4.csm il/master.m3u8?hdnea=st=1496050517~exp=1496051117~acl =/*~hmac=f17ec6c8436dec29454b380187b7d2457b04aecb602 aab192d70a28860cc6107 360p -o video.ts

https://i.imgur.com/4quCUz9.jpg