axiomatic-systems / Bento4

Full-featured MP4 format, MPEG DASH, HLS, CMAF SDK and tools
http://www.bento4.com
1.93k stars 477 forks source link

Decrypt mp4 file using multiple keys... #596

Open PlayerUnknown53 opened 3 years ago

PlayerUnknown53 commented 3 years ago

hello fellas...

I have an encrypted mp4 file vid_enc,mp4 i get return 3 keys xxxxxxxxxxxxxxxxxxxxxxxxxxxxx:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxx:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxx:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

i know the mannual method to decrypt file using multiple keys like --key xxxxxx:xxxx --key xxx:xxxx so on... and its working mannualy decrypt no issues... but i dont want this as mannual...

i need that below script can check each key one by one and which is correct it decrypt mp4 file.. os.system('mp4decrypt' + ' --key ' + str(decrypt_key) + ' "' + download_path + 'vid_enc.mp4' + '" "' + download_path + 'vid_dec.mp4' + '"')

above script overwrites all keys and grab the last one.. it cant check all keys one by one.. so want mp4decrypt can check each key one by one... any solution guys..

parvinders347 commented 7 months ago

do you know how i can find the keys to decrypt the video