Bento4 icon indicating copy to clipboard operation
Bento4 copied to clipboard

mp4decrypt does not work with m4a audio files?

Open Zeldrisz opened this issue 3 years ago • 8 comments

I am trying to decrypt an audio file in .m4a format I am using the correct key, but the file is not being decrypted. The same file in .aac format is decrypted using the same key, but as I said, it doesn't work in m4a format.

"audio578956 m4a audio only [pt] DASH audio 128k , m4a_dash container, mp4a.40.2 (48000Hz)"

"mp4decrypt --key faxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx:85xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx "test.m4a" "decrypt.aac" or "mp4decrypt --key faxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx:85xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx "test.m4a" "decrypt.m4a"

Either way, the m4a file is not decrypted. Is there any solution?

Zeldrisz avatar Mar 11 '21 07:03 Zeldrisz

You should be using: mp4decrypt --key <track-id>:<key> encrypted.mp4 decrypted.mp4 where is the track ID with your audio track (if you have multiple tracks, you use multiple --key options). You can list the tracks in your file with mp4info. Typically, track IDs start at 1.

barbibulle avatar Mar 26 '21 19:03 barbibulle

You should be using: mp4decrypt --key <track-id>:<key> encrypted.mp4 decrypted.mp4 where is the track ID with your audio track (if you have multiple tracks, you use multiple --key options). You can list the tracks in your file with mp4info. Typically, track IDs start at 1.

I'll try, thanks!

Zeldrisz avatar Mar 27 '21 00:03 Zeldrisz

You should be using: mp4decrypt --key <track-id>:<key> encrypted.mp4 decrypted.mp4 where is the track ID with your audio track (if you have multiple tracks, you use multiple --key options). You can list the tracks in your file with mp4info. Typically, track IDs start at 1.

i did that and i got unexpected error CleanShot 2022-02-24 at 02 54 28@2x but when i do it on my pc i have no error CleanShot 2022-02-24 at 02 30 59@2x on my pc i just do mp4decrypt.exe —-key 7733ab9b0ce54c666daa134568bd7f6c:cec588cbe2b6b7be20d300ae323fa548 ca.m4a ca_dec.mp4

nammminn2 avatar Feb 24 '22 07:02 nammminn2

I'm having the same issue. Audio and Video are separate on the target site. Video decrypts just fine. Audio does not.

bencollinz avatar Feb 25 '22 19:02 bencollinz

You should be using: mp4decrypt --key <track-id>:<key> encrypted.mp4 decrypted.mp4 where is the track ID with your audio track (if you have multiple tracks, you use multiple --key options). You can list the tracks in your file with mp4info. Typically, track IDs start at 1.

i did that and i got unexpected error CleanShot 2022-02-24 at 02 54 28@2x but when i do it on my pc i have no error CleanShot 2022-02-24 at 02 30 59@2x on my pc i just do mp4decrypt.exe —-key 7733ab9b0ce54c666daa134568bd7f6c:cec588cbe2b6b7be20d300ae323fa548 ca.m4a ca_dec.mp4

In your example with the screenshot showing the error ('unexpected argument (ca.m4a)'), the command line argument is not correct. It should be --key 1:cec588cbe2b6b7be20d300ae323fa548, not --key 1:7733ab9b0ce54c666daa134568bd7f6c:cec588cbe2b6b7be20d300ae323fa548 (the argument means: decrypt track ID 1 with key cec588cbe2b6b7be20d300ae323fa548).

barbibulle avatar Feb 28 '22 02:02 barbibulle

im got "unexpected argument" error how can i fix it?

this command:

mp4decrypt.exe --key 1:edef8ba979d64acea3c827dcd51d21ed:AAAAWnBzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAADoIARIQsQDOCpU7Ee6gAS4RFK3dBiIkNjI4YWIyZmMtYWY3Ni00NDc2LThlMjgtMzJjNmNlOTdmZDI0:default_kid b100ce0a-953b-11ee-a001-2e1114addd06 1.mp4 new.mp4

carmeldabush avatar Apr 08 '24 19:04 carmeldabush

The key value should be specified as : where is a track number and expressed in hex (32 hex characters). You can pass multiple keys, one per track.

barbibulle avatar Apr 09 '24 15:04 barbibulle