Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   Video stream recording (http://stream-recorder.com/forum/forumdisplay.php?f=4)
-   -  

Decrypting ts files from m3u8

(http://stream-recorder.com/forum/showthread.php?t=16686)

skyDude14 05-21-2014 04:18 AM

Re: Decrypting ts files from m3u8


 
Quote:

Originally Posted by surya987 (Post 67725)
SKY... why you want to decrypt one by one.... its useless and really time consuming....FFMPEG download all ts files and than join auto to one ts playable file.....

Thanks for reply. i want to stream the hls chunks again but this time without encryption and it would be faster that is why i want to keep the .ts chunks! is there away to decrypt the chunks without merging them ?

surya987 05-21-2014 05:24 AM

Re: Decrypting ts files from m3u8


 
no need to decrupt all dear.. just download with ffmpeg and than again ffmpeg creates multiple ts files for you if you want without encryption..... so chill dear no need to waste lot of time,.......

skyDude14 05-21-2014 05:41 AM

Re: Decrypting ts files from m3u8


 
Quote:

Originally Posted by surya987 (Post 67730)
no need to decrupt all dear.. just download with ffmpeg and than again ffmpeg creates multiple ts files for you if you want without encryption..... so chill dear no need to waste lot of time,.......

How it creates multiple ts files for me without encryption? Can you write the ffmpeg command for doing so?thanks

surya987 05-21-2014 08:43 AM

Re: Decrypting ts files from m3u8


 
1st download encrypted with ffmpeg and than use this commnd to crete multiple files and m3u8 playlist by FFMPEG...

Code:

ffmpeg -re -i source.ts -codec copy -map 0 -f segment -segment_list foo.m3u8 -segment_list_flags +live -segment_time 10 out%03d.ts

skyDude14 05-21-2014 10:52 AM

Re: Decrypting ts files from m3u8


 
Quote:

Originally Posted by surya987 (Post 67740)
1st download encrypted with ffmpeg and than use this commnd to crete multiple files and m3u8 playlist by FFMPEG...

Code:

ffmpeg -re -i source.ts -codec copy -map 0 -f segment -segment_list foo.m3u8 -segment_list_flags +live -segment_time 10 out%03d.ts

Thanks . The segmenting process is very slow! does this command transcode too(changing quality of orginal .ts )?

surya987 05-21-2014 11:07 AM

Re: Decrypting ts files from m3u8


 
no transcode... orignal quality

skyDude14 05-21-2014 12:09 PM

Re: Decrypting ts files from m3u8


 
surya987 .Thanks for teaching me to create segments in ffmpeg.
so ffmpeg can't decrypt m3u8 by keeping the segments intact so we don't waste time re segmenting again ?

Furthermore, when i first merged all the .ts files to one big .ts(using the posted command below) the resulting .ts was not showing video length in vlc player! is there any solution so the big .ts show video length as well ?

Code:

ffmpeg -i "http://www.somesite.com/test.m3u8" -c copy decryptedOutput.ts

surya987 05-21-2014 01:29 PM

Re: Decrypting ts files from m3u8


 
simple output to mp4...

Code:

ffmpeg  -i "link.m3u8" -vcodec copy -acodec copy -absf aac_adtstoasc  output.mp4

jkg 05-22-2014 11:48 AM

Re: Decrypting ts files from m3u8


 
Quote:

Originally Posted by skyDude14 (Post 67749)
the resulting .ts was not showing video length in vlc player! is there any solution so the big .ts show video length as well ?

In VLC, .ts files never show the length of the video. That's how it's always been, at least unless it's been changed in a recent update (doubtful). It's one of the various errors/disadvantages that come with using VLC, if it's a problem then you can always remux or better yet just switch to using MPC.

christam02 08-28-2014 10:29 PM

Re: Decrypting ts files from m3u8


 
I have trouble with m3u8 file. Please help me download this video.
http://movies.hdviet.com/phim-tan-ba...r-kingdom.html
File m3u8: https://www.mediafire.com/?935z8o5q59o30w1
I think it was secured with token:
EXT-X-KEY:METHOD=AES-128,URI="https://api.hdviet.com/token/drm?movieid=7874&token=f55232d9ea6f3577719d33b0b79 12f61"


All times are GMT -6. The time now is 01:58 AM.