[x264-devel] Adding encryption to x264...

Loren Merritt lorenm at u.washington.edu
Mon Aug 22 23:37:20 CEST 2011


On Sun, 21 Aug 2011, Peter Tap wrote:

> For the project that I am working on, I need to add encryption to x264 data in mp4 file. When the file is opened in vlc, I need to decrypt the data. I am trying to understand what is the best way to accomplish on-the-fly decryption.
>
> 1. Write a new decoder module that internally uses x264 decoder.
> 2. Somehow hook into x264's decoder to provider decryption at the end of the decoding.

(2) is impossible. You can't compress encrypted data.

Why do you want to hook into a video codec specifically, as opposed to
applying a general purpose encryption method to the whole file? MP4Box
claims to already support that.

--Loren Merritt


More information about the x264-devel mailing list