ultravideo/kvazaar

how to specify some tiles for encryption?

Opened this issue · 2 comments

Now,I use the command:
kvazaar -i vidyo1_720p_60.yuv --preset=ultrafast --input-res=1280x720 --tiles=6x4 --crypto=intra_pred_modes+mvs+mv_signs+trans_coeffs+trans_coeff_signs --mv-constraint=frametilemargin -o out.hevc

this command indeed could generate an encrypted video, but all the tiles are encrypted, how to realize some specified tile encrypted (or some ROI), just like the following pictures.
effect

Currently, there is no mechanism in Kvazaar, which would let you to encrypt only certain tiles. If you want to achieve this, you'll have to do the necessary modifications yourself. Overall, it should not be too difficult, you just have to check the ID of the tile when writing the bitstream, and based on that either use the regular bitstream writing functions, or the encryption ones.

Currently, there is no mechanism in Kvazaar, which would let you to encrypt only certain tiles. If you want to achieve this, you'll have to do the necessary modifications yourself. Overall, it should not be too difficult, you just have to check the ID of the tile when writing the bitstream, and based on that either use the regular bitstream writing functions, or the encryption ones.

OK, thanks, I will try.