Comments (10)
I get an “Access Denied” message when accessing your m3u8 file.
You might have to pass cookies to download this file, which I have not implemented in hlsdl.
ffmpeg does support this. (https://ffmpeg.org/ffmpeg-protocols.html#HTTP-Cookies)
from hlsdl.
Hello, I appreciate your prompt reply.
Could this be you have to access the file from a US-based IP?
Anyway would you be implementing the support in the near future?
Thanks again.
from hlsdl.
Could you paste me the output of
curl "https://cp477480-vh.akamaihd.net/i/mtvnorigin/gsp.alias/mediabus/logo.com/2016/09/08/01/53/31/c2617bae28b84e0fbfd8efa564833dbb/1299295/ywKgKfbDaj_6671093_1299295_20160908135331108_,384x216_278,512x288_498,640x360_1028,768x432_1528,960x540_2128,1280x720_3128,1920x1080_5128,.mp4.csmil/index_6_av.m3u8?null=0&id=AgBnUgX1pf6SNvJWsllIjyNsap6WFyeY9tq0FFy2r+8QRiojDFaT//TH4ZjQwnMo74KRMSiD/HSztA==&hdntl=exp=1504946290%7Eacl=/i/mtvnorigin/gsp.alias/mediabus/logo.com/2016/09/08/01/53/31/c2617bae28b84e0fbfd8efa564833dbb/1299295/ywKgKfbDaj_6671093_1299295_20160908135331108_,384x216_278,512x288_498,640x360_1028,768x432_1528,960x540_2128,1280x720_3128,1920x1080_5128,.mp4.csmil/*%7Edata=hdntl%7Ehmac=5ad40583c63d068f1913c9748b665235ea7a33496371ff8cfa412942a9963c06"
from hlsdl.
Using Firefox the link appears valid. But pasting the command in Terminal gets me
`
<TITLE>Access Denied</TITLE>Access Denied
You don't have permission to access "http://cp477480-vh.akamaihd.net/i/mtvnorigin/gsp.alias/mediabus/logo.com/2016/09/08/01/53/31/c2617bae28b84e0fbfd8efa564833dbb/1299295/ywKgKfbDaj_6671093_1299295_20160908135331108_,384x216_278,512x288_498,640x360_1028,768x432_1528,960x540_2128,1280x720_3128,1920x1080_5128,.mp4.csmil/index_6_av.m3u8?" on this server.
Reference #18.3692fea5.1504869189.4204949
from hlsdl.
Yup, it’s cookie and not IP related. You have to find the cookie in your Browser. Can you try to open the .m3u8 in Firefox and then open the Firefox Developer Tools -> Storage Inspector -> Cookies and look if something is there?
from hlsdl.
Maybe you could try the URL in this JSON file?
https://media-utils.mtvnservices.com/services/MediaGenerator/mgid:arc:video:logotv.com:2a3de6de-2d19-408d-9de3-0f453ec69e5a?arcStage=live&isEpisode=true&format=json&acceptMethods=hls
Found 7 Qualitys
0: Bandwidth: 278000
1: Bandwidth: 488000
2: Bandwidth: 871000
3: Bandwidth: 1141000
4: Bandwidth: 1770000
5: Bandwidth: 2748000
6: Bandwidth: 4744000
Which Quality should be downloaded?
I entered 6 but it returned: -bash: 6: command not found
[2]+ Stopped hlsdl https://cp477480-vh.akamaihd.net/...a44652c6
from hlsdl.
The URL in the JSON file works for me. I can download it with the best quality.
Found 7 Qualitys
0: Bandwidth: 488000
1: Bandwidth: 278000
2: Bandwidth: 871000
3: Bandwidth: 1141000
4: Bandwidth: 1770000
5: Bandwidth: 2748000
6: Bandwidth: 4744000
Which Quality should be downloaded? 6
HLS Stream is AES-128 encrypted.
Media Playlist parsed successfully.
Downloading 108 segments.
Downloading part 0
Downloading part 1
Downloading part 2
^C⏎
The 6 error is weird. Can you paste me your full CLI input and output?
from hlsdl.
Milos-MacBook-Pro:~ o_o$ hlsdl https://cp477480-vh.akamaihd.net/i/mtvnorigin/gsp.alias/mediabus/logo.com/2016/09/08/01/53/31/c2617bae28b84e0fbfd8efa564833dbb/1299295/ywKgKfbDaj_6671093_1299295_20160908135331108_,384x216_278,512x288_498,640x360_1028,768x432_1528,960x540_2128,1280x720_3128,1920x1080_5128,.mp4.csmil/master.m3u8?hdnea=st%3D1504869340%7Eexp%3D1504883740%7Eacl%3D%2Fi%2Fmtvnorigin%2Fgsp.alias%2Fmediabus%2Flogo.com%2F2016%2F09%2F08%2F01%2F53%2F31%2Fc2617bae28b84e0fbfd8efa564833dbb%2F1299295%2FywKgKfbDaj_6671093_1299295_20160908135331108_%2C384x216_278%2C512x288_498%2C640x360_1028%2C768x432_1528%2C960x540_2128%2C1280x720_3128%2C1920x1080_5128%2C.mp4.csmil%2F*%7Ehmac%3D740ad3f43e3c627c20745373eacf58c437c64ab42bd3f05ce4689b1ba44652c6&__a__=off&__b__=450&__viacc__=NONE
[2] 41644
[3] 41645
[4] 41646
[3] Done a=off
[4]- Done b=450
Milos-MacBook-Pro:~ o_o$ Found 7 Qualitys
0: Bandwidth: 278000
1: Bandwidth: 488000
2: Bandwidth: 871000
3: Bandwidth: 1141000
4: Bandwidth: 1770000
5: Bandwidth: 2748000
6: Bandwidth: 4744000
Which Quality should be downloaded? 6
-bash: 6: command not found
PS.: Yep there's something in Cookies panel about https://media-utils.mtvnservices.com/
Surprisingly this URL alone, https://media-utils.mtvnservices.com/services/MediaGenerator/mgid:arc:video:logotv.com:2a3de6de-2d19-408d-9de3-0f453ec69e5a
Shows all the available quality and but in RTMPE:// protocol.
from hlsdl.
You are missing URL escaping. Put the URL in quotes, it will work :)
from hlsdl.
arghh, sorry I missed it.
It works now, thank you very much! 👍
from hlsdl.
Related Issues (20)
- How to get "skd://***" key? HOT 1
- NAL size after decryption is grater than before HOT 1
- Can't Choose 0 as option for audio HOT 3
- -bash: ./hlsdl: is a directory
- HLS stream is DRM protected HOT 1
- A more detailed step by step instulation giude HOT 1
- [Feature] Mirror mode
- Failed to Decrypt HOT 1
- failed http_code[400] HOT 3
- File output options HOT 1
- Problem recording the Audi of a live stream
- How to change output file name so I can download multiple videos at the same time? example please HOT 1
- missing DLL errors at the very last command in hlsdl/msvc/BUID_WINDOWS.txt guide HOT 2
- Error compile HOT 1
- Warning: Unknown segment type! AAC file HOT 3
- Getting Pieces But Downloading Everything*Pieces
- Add an option to read url from file
- Exit on "Fail to update playlist"
- help HOT 1
- Help with static build for Linux
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hlsdl.