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![]()
Try DVDFab Video Downloader and rip Netflix video! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 16 of 16
Thread
-
-
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.
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