ViveSoftware / ViveMediaDecoder

A high performance video decoding Unity plugin for Windows.
http://u3d.as/usf
Other
129 stars 36 forks source link

Is there any way to "decryption_key" argument #31

Open silverman2012 opened 5 years ago

silverman2012 commented 5 years ago

Hi, I want to decrypta video file and use "-decryption_key" for ffplay, just like what I mention below: ffplay 10M00S.mp4_enc.mp4 -decryption_key 76a6c65c5ea762046bd749a2e632ccbb

You can read about my idea here: https://stackoverflow.com/questions/44939166/ffmpeg-how-to-produce-mp4-cenc-common-encryption-videos/44949160#44949160

kyo8568131 commented 5 years ago

Hi silverman2012, You could modify the native code as below and rebuild the dll for your customization. In line 63 of ViveMediaDecoder/NativeCode/DecoderFFmpeg.cpp, av_dict_set(&opts, "decryption_key", "76a6c65c5ea762046bd749a2e632ccbb", 0); Thanks.