VideoHelp Forum




+ Reply to Thread
Results 1 to 6 of 6
  1. Hello

    It seems like i got the correct set of KIDs and KEYs.

    What's the correct syntax?

    mp4decrypt.exe --key (17477b55c62041d4b8f298909fc5752)bb0f83a278307cf2e32a0e574fc60b89)

    What should I put as sourcefile and destination file? How do I download the video and the audio?
    Last edited by dzigelbaum; 14th Mar 2021 at 12:06.
    Quote Quote  
  2. see your other old post...
    Quote Quote  
  3. solution from Bento4_SDK_documentation :

    7.6 Mp4Decrypt
    Provided the relevant set of keys are produced, Mp4Decrypt repackages an encrypted MP4 file into a cleartext MP4 file.


    usage: mp4decrypt [--key <n>:<k>] <input> <output>
    --show-progress: show progress details
    --key: <n> is a track index, <k> a 128-bit key in hex
    (several --key options can be used, one for each track)


    where <input> is your encrypted MP4 file, and <output> is the corresponding cleartext MP4 file. Optionally, the --show-progress parameter will give you a verbose update on the decryption process. The key parameter is specified using a track index and a 128-bit key in hexadecimal characters. Several key options can be used, given that each track may have its own key.


    Example:
    mp4decrypt --key 0:000102030405060708090a0b0c0d0e0f --show-progress my_encrypted_file.mp4 my_decrypted_file.mp4


    P.S.How to make spoiler in forum text?[spoiler]text[/spoiler] not worked
    Quote Quote  
  4. like:
    Code:
    mp4decrypt.exe --key <KID>:<KEY> <input file> <output file>
    replace <KID> with KID you get with keys or from mpd
    or if you want you can add <ID> of the track instead too
    Code:
    mp4decrypt.exe --key <ID>:<KEY> <input file> <output file>
    https://imgur.com/yr1X2WC
    or if you want you can try google shaka-packager
    https://github.com/google/shaka-packager
    try it like this
    Code:
    shaka-packager.exe input=<input video file>,stream=video,output=<output video file>.mp4 input=<input audio file>,stream=audio,output=<output audio file> --enable_raw_key_decryption --keys label=0:key_id=<1st KID>:key=<1st KEY>,label=1:key_id=<2nd KID>:key=<2nd KEY>,label=2:key_id=<3rd KID>:key=<3rd KEY>
    replace everything within < >
    shaka packager seems to be faster. it will tell you exact error But there's no progressbar.
    discord=notaghost9997
    Quote Quote  
  5. I have a decrpytion key like this:

    d4d019341ddd5d60bewdw60e6e877ebd:87651ddwdw5267665 2dw14815c64f5d9

    It has a colon at the center...

    does it counteract with the bento tool?

    because now it will have two colons.

    Thanks
    Quote Quote  
  6. Alright I seem to got it working:

    I use this program called "yt-dlp".

    This is the command I enter on CMD:

    yt-dlp --allow-unplayable-formats --force-generic-extractor "https://www.udemy.com/assets/16986082/encrypted-files/out/v1/c16e00cbe8e74fd883cd35ee9a33c7bf/06c8dc12da2745f1b0b4e7c2c032dfef/842d4b8e2e014fbbb87c640ddc89d036/index.mpd?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1Ni J9.eyJwYXRoIjoib3V0L3YxL2MxNmUwMGNiZThlNzRmZDg4M2N kMzVlZTlhMzNjN2JmLzA2YzhkYzEyZGEyNzQ1ZjFiMGI0ZTdjM mMwMzJkZmVmLzg0MmQ0YjhlMmUwMTRmYmJiODdjNjQwZGRjODl kMDM2LyIsImV4cCI6MTY0ODI4NjIxNX0.wReSM4Q72bdTgnD7X Gf8REQ3-QuDdXnVg0gjUOX1FrU&provider=cloudfront&v=1" -o output.mp4

    Need to use "--force-generic-extractor" to get it working else it wont download anything.


    Then I tried decrypting the video and audio using "shaka-packager".

    This is the command I enter on CMD:

    shaka-packager.exe input=C:\Users\Admin\Downloads\udemy\output.f10.mp 4,stream=video,output=C:\Users\Admin\Downloads\ude my\decrypttt.mp4.mp4 input=C:\Users\Admin\Downloads\udemy\output.f20.m4 a,stream=audio,output=C:\Users\Admin\Downloads\ude my\decryptt_audio.m4a --enable_raw_key_decryption --keys label=0:key_id=75175f4a6e1c40a597273c3b41339246:ke y=d4d019341ba95d60be4b560e6e877ebd:87651d63fa52676 672a714815c64f5d9


    However both video and audio are not decrypted (same goes for using "bento mp4decrypt")...

    This is the CDM I used: http://getwvkeys.cc/

    Here is the ".mpd" file:
    https://pastebin.com/UwwHJhTF

    Here is the decrypt key: aefc537bda2a545a80d72d93824ffcc9:32fccf818a6e210d8 ef1acec269deb6d

    Here is the KEY ID: 75175f4a6e1c40a597273c3b41339246

    Here are the encrypted video and audio file to inspect/test:
    https://drive.google.com/drive/folders/1oR9kn3yTN6jRBo1HCvBvx-jH0GLOaQkP?usp=sharing

    Thanks
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!