Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to specify some tiles for encryption? #414

Open
justsoso0601 opened this issue Aug 22, 2024 · 2 comments
Open

how to specify some tiles for encryption? #414

justsoso0601 opened this issue Aug 22, 2024 · 2 comments

Comments

@justsoso0601
Copy link

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

@Jovasa
Copy link
Member

Jovasa commented Aug 22, 2024

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.

@justsoso0601
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants