I would like to play encrypted movies in vlc by decrypting them by ffmpeg like below on macOS. The size of my movie is, say, 200-1000MB. (hundreds of files)
My problem is that it is too slow to decrypt; it takes 5mins for 300MB movie before it starts to play. My guess is that ffmpeg first decrypts the whole content of 300MB and then VLC plays it. My question: Is it possible to play the movie "on the fly" while decrypting it? (play the decrypted chunk once it is decrypted, Not wait until the whole movie is decrypted before it plays, so that it starts to play in, say, 10 secs delay.)
ffmpeg -decryption_key 0 -i "movie.locked.mp4" -f matroska | /Applications/VLC.app/Contents/MacOS/VLC - --fullscreen --quiet --play-and-exit
Thank you very much! Have a nice day!