Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.6k views
in Technique[技术] by (71.8m points)

video - converting downloaded aes-128 encrypted m3u8 files to mp4 using ffmpeg

i downloaded a file, theres bunch of ts files, m3u8 file and the key.

my m3u8

#EXTM3U
#EXT-X-VERSION:3
#EXT-X-MEDIA-SEQUENCE:0
#EXT-X-TARGETDURATION:5
#EXT-X-KEY:METHOD=AES-128,URI=thekeyfile.key
#EXTINF:4.004000,
ts-000000.ts // so on until until ts-050000.ts

i have the ts files downloaded, its 10gb+

the key like "R?D?£??R?D?£??R?D?£??"

i tried to combining the ts files to a mp4 with ffmpeg

start with installing using

setx /M PATH "ffmpegin;%PATH%"

then converting it (i googled it)

ffmpeg -protocol_whitelist file,tls,tcp,https,crypto -allowed_extensions ALL -i m3u8file.m3u8 -c copy output.mp4

here the error message

Error when loading first segment 'ts-000000.ts'
m3u8file.m3u8: Invalid data found when processing input

is it possible to create mp4 without reencoding it?

please help me thank you

question from:https://stackoverflow.com/questions/65934256/converting-downloaded-aes-128-encrypted-m3u8-files-to-mp4-using-ffmpeg

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...