I'm trying to download a demo video from https://bitmovin.com/demos/drm
and I found https://bitmovin-a.akamaihd.net/content/art-of-motion_drm/mpds/11331.mpd
The known key:
I've tried to download the video by using:Code:kid: 'eb676abbcb345e96bbcf616630f1a3da', key: '100b6c20940f779a4589152b57d2dacb'
youtube-dl download failed, showing:Code:ffmpeg -i https://bitmovin-a.akamaihd.net/content/art-of-motion_drm/mpds/11331.mpd -codec copy e1.mp4 streamlink https://bitmovin-a.akamaihd.net/content/art-of-motion_drm/mpds/11331.mpd best -o e1.mp4 youtube-dl https://bitmovin-a.akamaihd.net/content/art-of-motion_drm/mpds/11331.mpd e1.mp4
ffmpeg and streamlink successfully downloaded the file, but the decrypted video is wrong.Code:[generic] 11331: Requesting header WARNING: Falling back on generic information extractor. [generic] 11331: Downloading webpage [generic] 11331: Extracting information ERROR: No video formats found; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Here is what I've tried:
1. mp4decrypt decrypt streamlink download version produces 0 bytes video files.Code:mp4decrypt --key eb676abbcb345e96bbcf616630f1a3da:100b6c20940f779a4589152b57d2dacb "e1.mp4" "d1.mp4" mp4decrypt --key 100b6c20940f779a4589152b57d2dacb:eb676abbcb345e96bbcf616630f1a3da "e1.mp4" "d1.mp4" ffmpeg -decryption_key 100b6c20940f779a4589152b57d2dacb -i e1.mp4 -codec copy d1.mp4
2. mp4decrypt decrypt ffmpeg download version, didn't work as expected. Cannot watch video content.
3. ffmpeg decrypt showing "Option decryption_key not found."
Any idea how to download and decrypt the video, any help would be much appreciated![]()
+ Reply to Thread
Results 1 to 30 of 33
-
-
Code:
ffmpeg -decryption_key 100b6c20940f779a4589152b57d2dacb -i encrypted_media.mp4 -codec copy decrypted_media.mp4
-
I'm using full build version of ffmpeg, please try to download the demo video from https://bitmovin.com/demos/drm and decrypt it with provided key. I have tried many times with different of method to decrypt the video content.
-
The key is correct and it decrypts the stream.
ffmpeg and streamlink successfully downloaded the file
Download this file and decrypt with: mp4decrypt --key 1:100b6c20940f779a4589152b57d2dacb 11331-11331.mp4 decrypted.mp4Last edited by hvq; 23rd Jan 2021 at 05:36.
-
The file decrypted properly using mp4decrypt.exe. But using the latest build of ffmpeg (from VideoHelp.com) I got an error:
Code:G:\Program Files\Bento4 Examples>"G:\Program Files\ffmpeg64\bin\ffmpeg" -decryption_key 100b6c20940f779a4589152b57d2dacb -i encrypted.mp4 -c copy ffmpeg_decrypted.mp4 ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers built with gcc 10.2.1 (GCC) 20200726 configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libsrt --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libgsm --disable-w32threads --enable-libmfx --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf libavutil 56. 51.100 / 56. 51.100 libavcodec 58. 91.100 / 58. 91.100 libavformat 58. 45.100 / 58. 45.100 libavdevice 58. 10.100 / 58. 10.100 libavfilter 7. 85.100 / 7. 85.100 libswscale 5. 7.100 / 5. 7.100 libswresample 3. 7.100 / 3. 7.100 libpostproc 55. 7.100 / 55. 7.100 [mov,mp4,m4a,3gp,3g2,mj2 @ 000001fac494d680] Incorrect number of samples in encryption info [mov,mp4,m4a,3gp,3g2,mj2 @ 000001fac494d680] Could not find codec parameters for stream 0 (Video: h264 (avc1 / 0x31637661), none, 1920x1080, 4851 kb/s): unspecified pixel format Consider increasing the value for the 'analyzeduration' and 'probesize' options Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'encrypted.mp4': Metadata: major_brand : isom minor_version : 1 compatible_brands: isomavc1iso5iso6 Duration: 00:03:30.28, bitrate: 4860 kb/s Stream #0:0(und): Video: h264 (avc1 / 0x31637661), none, 1920x1080, 4851 kb/s, 25 fps, 25k tbr, 25k tbn, 50k tbc (default) Metadata: handler_name : Bento4 Video Handler Side data: unknown side data type 24 (897 bytes) Output #0, mp4, to 'ffmpeg_decrypted.mp4': Metadata: major_brand : isom minor_version : 1 compatible_brands: isomavc1iso5iso6 encoder : Lavf58.45.100 Stream #0:0(und): Video: h264 (avc1 / 0x31637661), none, 1920x1080, q=2-31, 4851 kb/s, 25 fps, 25k tbr, 25k tbn, 25k tbc (default) Metadata: handler_name : Bento4 Video Handler Side data: unknown side data type 24 (897 bytes) Stream mapping: Stream #0:0 -> #0:0 (copy) Press [q] to stop, [?] for help [mov,mp4,m4a,3gp,3g2,mj2 @ 000001fac494d680] Incorrect number of samples in encryption info encrypted.mp4: Invalid data found when processing input frame= 0 fps=0.0 q=-1.0 Lsize= 0kB time=00:00:00.00 bitrate=N/A speed= 0x video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
-
try with ffmpeg full version from this site: https://www.gyan.dev/ffmpeg/builds/
-
Last edited by jagabo; 23rd Jan 2021 at 08:36.
-
https://www.codesd.com/item/ffmpeg-how-to-produce-mp4-videos-cenc-common-encryption.html
These options and their values should be placed after all the inputs and before the output filename.
Code:ffmpeg -i e1.mp4 -decryption_key 100b6c20940f779a4589152b57d2dacb -codec copy d1.mp4
-
I've been experimenting with encrypting and decrypting videos with ffmpeg. Here's a batch file that encrypts a video file with ffmpeg, plays the encrypted video file with ffplay, then creates an unencrypted version of the file from the encrypted version:
Code:ffmpeg -y -i Sample.mp4 -vcodec copy -acodec copy -encryption_scheme cenc-aes-ctr -encryption_key 76a6c65c5ea762046bd749a2e632ccbb -encryption_kid ffffffffffffffffffffffffffffffff Sample_encrypted.mp4 ffplay -decryption_key 76a6c65c5ea762046bd749a2e632ccbb Sample_encrypted.mp4 ffmpeg -y -decryption_key 76a6c65c5ea762046bd749a2e632ccbb -i Sample_encrypted.mp4 -codec copy Sample_decrypted.mp4 pause
Notes:
The value of -encryption_key can be any valid 32 byte hexadecimal number.
ffplay accepts the -decryption_key both before and after the filename.
The ffmpeg decryption command line must have the -decryption key before the -i filename.
I still have not figured out why the same command line doesn't work for the encrypted sample in post #5. We know that the given key is valid because bento4's mp4decrypt works with that key.
<edit>
Another hint: mp4decrypt gave no complaints but it did not successfully decrypt the encrypted file created by ffmpeg.
Code:mp4decrypt --key 1:76a6c65c5ea762046bd749a2e632ccbb Sample_encrypted.mp4 Sample_decrypted_by_mp4decrypt.mp4
</edit>Last edited by jagabo; 24th Jan 2021 at 19:44.
-
oh, your file works perfectly, I think the problem should be my download method.
May I know how did you download the 11331.mpd file?
I using the following software and commands, which downloaded a corrupted file...
Code:ffmpeg -i https://bitmovin-a.akamaihd.net/content/art-of-motion_drm/mpds/11331.mpd -codec copy e1.mp4 streamlink https://bitmovin-a.akamaihd.net/content/art-of-motion_drm/mpds/11331.mpd best -o e1.mp4 youtube-dl https://bitmovin-a.akamaihd.net/content/art-of-motion_drm/mpds/11331.mpd e1.mp4
-
I've managed to see DRM protected video keys with well known chrome extension. But don't know what to do next? How to download the protected video after finding keys (at least I think so)
It shows like this:
[Attachment 57207 - Click to enlarge]
I think it's done through ffmpeg but I don't have any experience or knowledge about this issue except I a few days ago learned about youtube-dl and I used it in non protected videos.
Please could you explain what to do next after finding these keys one by one. -
That video has been decrypted/downloaded yet.
See this thread: https://forum.videohelp.com/threads/400549-plz-help-me-to-decrypted-this-video-i-have-key -
There is a script that I came along in Github. It is called, Drm-Dash-stream-downloader. It can be used to retrieve Cenc Drm content.
-
Hi, could you please explain to me how you found the kid and the key?
I m trying to do by myself but without success.. thank you
Code:kid: 'eb676abbcb345e96bbcf616630f1a3da', key: '100b6c20940f779a4589152b57d2dacb'
-
How to find key for a protected video, i was use to to download video and decrypt them and then join audio and video, but from today video is not watchable all green, i think key is changed so is there anyway to find new key?
-
-
The video is being downloaded, but the colors are mixed. There are colors, no sound.
-
-
I can decrypt alright but, what alternatives are there for a mpd that doesn't even playback properly in stream tests?
Eg: This one plays the first few seconds alright after which the visual goes bonkers!
https://m-storagellnw-j2apps.s.llnwi.net/content/fb0b6da51b614f407ea255a6f3bb6b2a/dash...4_baseline.mpd
Source: https://www.mxplayer.in/movie/watch-nagamandala-movie-online-c05763d1d66e94398dfc96b6c1c3ef11?
Things tried that didn't help are:
yt-dlp - (using the switch --allow-unplayable-formats grabs the encrypted av streams, but decrypting them gives the same result as in stream tests),
drm-Dash-stream-downloader - (ModuleNotFoundError: No module named 'requests'),
streamlink - (streamlink no plugin can handle url),
wvdumper - (MediaDrmBridge creation failed). -
yt-dlp work fine; and use all 3 keys
[Attachment 64274 - Click to enlarge]Last edited by lomero; 15th Apr 2022 at 03:08.
-
Still the same result, after 5 seconds. I'm now convinced that something is wrong at my end rather the mpd itself.
I used the kid = a5482a952e7b5a21882b3050ca6e5845 and your key = eb6300f86e0d493bad2314487e120b0d
Can you find what's wrong with my input? Thanks.
Code:mp4decrypt.exe --key a5482a952e7b5a21882b3050ca6e5845:eb6300f86e0d493bad2314487e120b0d "D:\ytdlp\h264_baseline [h264_baseline].f3.mp4" "D:\ytdlp\f3.mp4"
-
yes you need to use all 3 keys, not only one!
Code:mp4decrypt --key xx:xx --key xx:xx --key xx:xx vid.mp4 vid_2.mp4
-
-
Hi, first post here, but important question
, is there any way to download a personal copy of Udemyt DRM encoded videos with any of the tools commented here? don't know how DRM works, any way to get the keys from the browser?
Thanks!
Similar Threads
-
help downloading DRM protected video
By Lionking in forum Video Streaming DownloadingReplies: 16Last Post: 5th Feb 2021, 23:53 -
download drm protected m3u8 video
By gentle_v in forum Video Streaming DownloadingReplies: 3Last Post: 16th Jan 2021, 05:24 -
How to download Video from Shahid.net (DRM-Protected)
By Semohan in forum Video Streaming DownloadingReplies: 2Last Post: 21st Sep 2020, 03:47 -
Downloading mpd stream (DRM protected?)
By odyssey1234 in forum Video Streaming DownloadingReplies: 8Last Post: 14th Aug 2019, 21:26 -
Please post ideas on how to rip DRM protected streaming video.
By RavensFan in forum Video Streaming DownloadingReplies: 1Last Post: 23rd Jan 2019, 08:52