Open mohan00012 opened 3 years ago
At least, you need to find out what other headers and/or parameters the browser is using to get this url from the server.
@kikuyan Thank you for your response.
I have tried passing all the headers. I'm getting the same errors "Error when loading first segment" and "Invalid data found when processing input". Please refer log submitted above.
Thank you.
[hls @ 000001ba180be300] Opening 'https://vcdn.spayee.in/spees/w/o/5e356a710cf24531c92ac49f/v/5e5be77d0cf201834b0fc634/u/5ea464f50cf2441afbdc26f1/t/9592da07d680f38a394463c4f3b90d57/p/assets/videos/5e356a710cf24531c92ac49f/2020/03/01/5e5be77d0cf201834b0fc634/k/timestamp' for reading [tcp @ 000001ba18669d40] Starting connection attempt to 13.224.249.117 port 443 [tcp @ 000001ba18669d40] Successfully connected to 13.224.249.117 port 443 [AVIOContext @ 000001ba18670780] Statistics: 48 bytes read, 0 seeks
Your m3u8 contains #EXT-X-KEY:METHOD=AES-128,URI="k/timestamp",IV=...
line and the quote above from your log is where ffmpeg is getting the decryption key. The key length must be 16 bytes for AES-128 but 48 bytes returned. Maybe this is why decryption failed.
You say you're getting the same error, you need to find a way to get the valid decryption key (from the browsers' devtools or JavaScript code). And you might need to use hlsdl or something which you can specify the raw key value for decryption. It would be better to ask VideoHelp Forum.
Checklist
Question
I'm trying to download a video using the below link, But when I click on the video link in the browser it is showing RAW data in the .M3U8 file instead of downloading it. Please don't ignore this question as I was trying very hard to download a video and seen all the similar issues available here.
Please see this link and help me out. I can provide any additional data if required. https://vcdn.spayee.in/spees/w/o/5e356a710cf24531c92ac49f/v/5e5be77d0cf201834b0fc634/u/5ea464f50cf2441afbdc26f1/t/9592da07d680f38a394463c4f3b90d57/p/assets/videos/5e356a710cf24531c92ac49f/2020/03/01/5e5be77d0cf201834b0fc634/hls_500k_.m3u8
Thank you.