Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
mpv not able to play encrypted-mp4 (cenc-aes-ctr) #4579
Hi, new mpv-user here evaluating the player for some project of mine.
I'm having trouble playing encrypted-mp4 with mpv. Is there anything wrong (usage or misinterpretation of functionality) or is this a bug?
Let's assume we got a sample-video:
Let's encrypt it using ffmpeg and cenc-aes-ctr:
5: shinchiro build
6: lachs0r build
Everything tested on windows:
I suppose my
I'm not that familiar with ffmpeg/ffplay (at this module-level), but i can imagine, that internally AVFormat and AVOptions are treated very differently.
Fair enough. I can understand the frustration with lazy users, but for us it's not quite as simple as for you developers (the whole AVOptions vs. AVFormatContext vs. ... was realized later). So while i'm thankful for the hint, you could have also add a one-liner to show me what to do.
Working (and maybe correct usage):
Actually this option exists: https://mpv.io/manual/master/#options-demuxer-lavf-cryptokey
It's from ancient MPlayer times, and apparently it doesn't work.