Quote:
Problem is since the videofiles get encrypted i need a codec that doesn't change the RGB values. Otherwise the encryption gets lost.
You got the wrong approach.
Things work in reverse order.
you can do tests with standard tools that do compression or encryption.
Compare the results of the 2 ways with sample files
Get data files >> Encrypt >> Compress
Get data files >> Compress >> Encrypt
You will see which one works by yourself.
The right way is :
Get data files >> Compress >> Encrypt