![]() ![]() I still have not figured out why the same command line doesn't work for the encrypted sample in post #5. The ffmpeg decryption command line must have the -decryption key before the -i filename. The value of -encryption_key can be any valid 32 byte hexadecimal number.įfplay accepts the -decryption_key both before and after the filename. The decrypted video created by ffmpeg, Sample_decrypted.mp4, plays normally in any player - it has successfully been decrypted. Using ffplay.exe with the decryption key works, the video plays normally. The encrypted file made by ffmpeg, Sample_encrypted.mp4, does not play with a normal player - it has successfully been encrypted. Pause Sample.mp4 is a normal mp4 file with no encryption. Video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown Any ideas?Ĭode: ffmpeg -y -i Sample.mp4 -vcodec copy -acodec copy -encryption_scheme cenc-aes-ctr -encryption_key 76a6c65c5ea762046bd749a2e632ccbb -encryption_kid ffffffffffffffffffffffffffffffff Sample_encrypted.mp4įfplay -decryption_key 76a6c65c5ea762046bd749a2e632ccbb Sample_encrypted.mp4įfmpeg -y -decryption_key 76a6c65c5ea762046bd749a2e632ccbb -i Sample_encrypted.mp4 -codec copy Sample_decrypted.mp4 Output #0, mp4, to 'ffmpeg_decrypted.mp4': Could not find codec parameters for stream 0 (Video: h264 (avc1 / 0x31637661), none, 1920x1080, 4851 kb/s): unspecified pixel formatĬonsider increasing the value for the 'analyzeduration' and 'probesize' options Incorrect number of samples in encryption info Code: G:\Program Files\Bento4 Examples>"G:\Program Files\ffmpeg64\bin\ffmpeg" -decryption_key 100b6c20940f779a4589152b57d2dacb -i encrypted.mp4 -c copy ffmpeg_decrypted.mp4įfmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developersĬonfiguration: -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
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |