<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div>Folks,</div><div><br></div><div>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.</div><div><br></div><div>1. Write a new decoder module that internally uses x264 decoder.</div><div>2. Somehow hook into x264's decoder to provider decryption at the end of the decoding.</div><div><br></div><div>The encryption by itself may not be a big issue. To start with, I am going to use a simple algorithm where the size of the block does not change after the encryption.</div><div><br></div><div>I would appreciate your advice on the best way to accomplish this.</div><div><br></div><div>Regards,</div><div>Peter<br></div></div></body></html>