Skip to main content
Log in

A fast selective encryption scheme for H.264/AVC video with syntax-preserving and zero bit rate expansion

  • Original Paper
  • Published:
Signal, Image and Video Processing Aims and scope Submit manuscript

Abstract

H.264/AVC is the most widely used video-coding standard today, and designing selective encryption (SE) algorithms for H.264/AVC has drawn extensive attention. Unfortunately, existing SE schemes cannot provide a good balance between security, bit rate, and encryption efficiency. In this paper, we propose a fast H.264/AVC SE scheme with syntax-preserving and zero bit rate expansion. To produce heavy visual distortion, both prediction and residual syntax elements, including intra-prediction mode, motion vector difference (MVD), TrailingOnes, and Level, are selected for encryption. Based on the hash function SHA-224, their values are encrypted using a plaintext-dependent keystream sequence generated by the hyperchaotic Lü system. To keep format compatibility and the same bit rate, different encryption strategies are designed according to the encoding characteristics of each syntax element. Besides, reversible data steganography is employed to embed the hash value into the encrypted MVD by bit. Therefore, the hash value can be transmitted or stored together with the encrypted video, increasing the practical applicability of the algorithm. Furthermore, if the wrong hash value is extracted, decryption will fail, thus further enhancing the encryption strength of our scheme. Experimental results demonstrate that the proposed algorithm has a key space of size \(2^{212}\), and the average PSNR, SSIM, and time expansion are lower than 13 dB, 0.22, and 0.06%, respectively. Thus, our scheme provides both a high level of security and high efficiency.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Algorithm 1
Algorithm 2
Algorithm 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9

Similar content being viewed by others

Data availability

The datasets generated during and/or analyzed during the current study are available from the corresponding author upon reasonable request.

References

  1. Hosny, K.M., Zaki, M.A., Lashin, N.A., Hamza, H.M.: Fast colored video encryption using block scrambling and multi-key generation. Vis. Comput. (2022). https://doi.org/10.1007/s00371-022-02711-y

    Article  Google Scholar 

  2. Tang, B., Yang, C., Zhang, Y.: A format compliant framework for HEVC selective encryption after encoding. IEEE Trans. Circuits Syst. Video Technol. 33, 1140–1156 (2022)

    Article  Google Scholar 

  3. Sullivan, G.J., Ohm, J.R., Han, W.J., Wiegand, T.: Overview of the high efficiency video coding (HEVC) standard. IEEE Trans. Circuits Syst. Video Technol. 22(12), 1649–1668 (2012)

    Article  Google Scholar 

  4. Wiegand, T., Sullivan, G. J., Bjontegaard, G., Luthra, A.: Overview of the H.264/AVC video coding standard. IEEE Trans. Circuits Syst. Video Technol. 13(7), 560–576 (2003)

    Article  Google Scholar 

  5. Yi, X., Tan, C.H., Slew, C.K., Syed, M.R.: Fast encryption for multimedia. IEEE Trans. Consum. Electron. 47(1), 101–107 (2001)

    Article  Google Scholar 

  6. El-Shafai, W., Mesrega, A.K., Ahmed, H.E.H., El-Bahnasawy, N.A., Abd El-Samie, F.E.: An efficient multimedia compression-encryption scheme using Latin squares for securing internet-of-things networks. J. Inf. Secur. Appl. 64, 103039 (2022)

    Google Scholar 

  7. Peng, F., Zhang, X., Lin, Z.X., Long, M.: A tunable selective encryption scheme for H.265/HEVC based on chroma IPM and coefficient scrambling. IEEE Trans. Circuits Syst. Video Technol. 30(8), 2765–2780 (2019)

    Article  Google Scholar 

  8. Wen, W., Tu, R., Zhang, Y., Fang, Y., Yang, Y.: A multi-level approach with visual information for encrypted H.265/HEVC videos. Multimedia Syst. 29(3), 1073–1087 (2023)

    Article  Google Scholar 

  9. Gerhardt, C., Aichroth, P., Mann, S.: Selective face encryption in H.264 encoded videos. In: 2017 IEEE Visual Communications and Image Processing (VCIP), pp. 1–4. IEEE (2017)

  10. Malladar, R.S., Sanjeev Kunte, R.: A lightweight selective video encryption using motion vectors and IPMs for H.264 codec. In: International Conference on Intelligent Data Communication Technologies and Internet of Things, pp. 597–606. Springer (2019)

  11. Wang, X., Chen, S.: An image encryption algorithm based on pixel bit operation and nonlinear chaotic system. Vis. Comput. 39(7), 3123–3144 (2023)

    Article  Google Scholar 

  12. Xu, H., Tong, X., Meng, X.: An efficient chaos pseudo-random number generator applied to video encryption. Optik 127(20), 9305–9319 (2016)

    Article  Google Scholar 

  13. Fu, C., Zhang, G.Y., Zhu, M., Chen, J.X., Lei, W.M.: A fast chaos-based colour image encryption algorithm using a hash function. Informatica 29(4), 651–673 (2018)

    Article  Google Scholar 

  14. Khlif, N., Damak, T., Kammoun, F., Masmoudi, N.: A very efficient encryption scheme for the H.264/AVC codec adopted in intra prediction mode. In: International Image Processing, Applications and Systems Conference, pp. 1–7. IEEE (2014)

  15. Liu, Z., Li, X.: Motion vector encryption in multimedia streaming. In: 10th International Multimedia Modelling Conference, 2004. Proceedings, pp. 64–71. IEEE (2004)

  16. Khlif, N., Damak, T., Kammoun, F., Masmoudi, N.: Motion vectors signs encryption for H.264/AVC. In: 2014 1st International Conference on Advanced Technologies for Signal and Image Processing (ATSIP), pp. 1–6. IEEE (2014)

  17. Sbiaa F, Kotel S, Zeghid M, Tourki R, Machhout M, Baganne A.: A selective encryption scheme with multiple security levels for the H.264/AVC video coding standard. In: 2016 IEEE International Conference on Computer and Information Technology (CIT), pp. 391–398. IEEE (2016)

  18. Peng, F., Gong, Xq., Long, M., Sun, Xm.: A selective encryption scheme for protecting H.264/AVC video in multimedia social network. Multimed. Tools Appl. 76(3), 3235–3253 (2017)

    Article  Google Scholar 

  19. Tabash, F.K., Izharuddin, M.: Efficient encryption technique for H.264/AVC videos based on CABAC and logistic map. Multimed. Tools Appl. 78(6), 7365–7379 (2019)

    Article  Google Scholar 

  20. Cheng, S., Wang, L., Ao, N., Han, Q.: A selective video encryption scheme based on coding characteristics. Symmetry 12(3), 332 (2020)

    Article  Google Scholar 

  21. He, J., Xu, Y., Luo, W., Tang, S., Huang, J.: A novel selective encryption scheme for H.264/AVC video with improved visual security. Signal Process. Image Commun. 89, 115994 (2020)

    Article  Google Scholar 

  22. Minemura, K., Wong, K., Phan, R.C.W., Tanaka, K.: A novel sketch attack for H.264/AVC format-compliant encrypted video. IEEE Trans. Circuits Syst. Video Technol. 27(11), 2309–2321 (2016)

    Article  Google Scholar 

  23. Song, Y., Zhu, Z., Zhang, W., Yu, H.: Efficient protection using chaos for context-adaptive binary arithmetic coding in H.264/advanced video coding. Multimed. Tools Appl. 78(14), 18967–18994 (2019)

    Article  Google Scholar 

  24. Jin, W., Jiandong, L., Haoqiang, X.: H.264/AVC video encryption algorithm based on integer dynamic cross-coupling tent mapping model. Multimed. Tools Appl. (2023). https://doi.org/10.1007/s11042-023-15448-0

    Article  Google Scholar 

  25. Dolati, N., Beheshti, A., Azadegan, H.: A selective encryption for H.264/AVC videos based on scrambling. Multimed. Tools Appl. 80(2), 2319–2338 (2021)

    Article  Google Scholar 

  26. Khlif, N., Masmoudi, A., Kammoun, F., Masmoudi, N.: Secure chaotic dual encryption scheme for H.264/AVC video conferencing protection. IET Image Process. 12(1), 42–52 (2018)

    Article  Google Scholar 

  27. Zhang, Z., Chen, P., Li, W., Xiong, X., Wang, Q., Wen, H., Liu, S., Cai, S.: Design and arm-based implementation of bitstream-oriented chaotic encryption scheme for H.264/AVC video. Entropy 23(11), 1431 (2021)

    Article  MathSciNet  Google Scholar 

  28. El-Mowafy, M., Gharghory, S., Abo-Elsoud, M., Obayya, M., Allah, M.F.: Chaos based encryption technique for compressed H264/AVC videos. IEEE Access 10, 124002–124016 (2022)

    Article  Google Scholar 

  29. Chen, A., Lu, J., Lü, J., Yu, S.: Generating hyperchaotic lü attractor via state feedback control. Phys. A 364, 103–110 (2006)

    Article  Google Scholar 

  30. Tian, J.: Reversible data embedding using a difference expansion. IEEE Trans. Circuits Syst. Video Technol. 13(8), 890–896 (2003)

    Article  Google Scholar 

  31. Sheng, Q., Fu, C., Lin, Z., Chen, J., Cao, L., Sham, C.W.: An efficient chaotic image encryption scheme using simultaneous permutation–diffusion operation. Vis. Comput. (2023). https://doi.org/10.1007/s00371-023-02876-0

  32. Alarifi, A., Sankar, S., Altameem, T., Jithin, K., Amoon, M., El-Shafai, W.: A novel hybrid cryptosystem for secure streaming of high efficiency H.265 compressed videos in IoT multimedia applications. IEEE Access 8, 128548–128573 (2020)

  33. Faragallah, O.S., El-Shafai, W., Sallam, A.I., Elashry, I., EL-Rabaie ESM, Afifi A, AlZain MA, Al-Amri JF, El-Samie FEA, El-sayed HS: Cybersecurity framework of hybrid watermarking and selective encryption for secure HEVC communication. J. Ambient. Intell. Humaniz. Comput. 13(2), 1215–1239 (2022)

  34. Shahid, Z., Chaumont, M., Puech, W.: Fast protection of H.264/AVC by selective encryption of CAVLC and CABAC for I and P frames. IEEE Trans. Circuits Syst. Video Technol. 21(5), 565–576 (2011)

  35. Huang, M., Yang, C., Zhang, Y.: Selective encryption of H.264/AVC based on block weight model. In: 2018 IEEE 18th International Conference on Communication Technology (ICCT), pp. 1368–1373. IEEE (2018)

  36. Lui, O.Y., Wong, K.W.: Chaos-based selective encryption for H.264/AVC. J. Syst. Softw. 86(12), 3183–3192 (2013)

    Article  Google Scholar 

  37. Xu, D.: Commutative encryption and data hiding in HEVC video compression. IEEE Access 7, 66028–66041 (2019)

    Article  Google Scholar 

  38. Shen, H., Zhuo, L., Zhao, Y.: An efficient motion reference structure based selective encryption algorithm for H.264 videos. IET Inf. Secur. 8(3), 199–206 (2014)

    Article  Google Scholar 

  39. Ahmad, M., Agarwal, S., Alkhayyat, A., Alhudhaif, A., Alenezi, F., Zahid, A.H., Aljehane, N.O.: An image encryption algorithm based on new generalized fusion fractal structure. Inf. Sci. 592, 1–20 (2022)

  40. Hosny, K.M., Zaki, M.A., Hamza, H.M., Fouda, M.M., Lashin, N.A.: Privacy protection in surveillance videos using block scrambling-based encryption and DCNN-based face detection. IEEE Access 10, 106750–106769 (2022)

  41. Kiran, P., Parameshachari, B.: Resource optimized selective image encryption of medical images using multiple chaotic systems. Microprocess. Microsyst. 91, 104546 (2022)

    Article  Google Scholar 

  42. Ye, Q., Zhang, Q., Liu, S., Chen, K.: A novel chaotic system based on coupled map lattice and its application in HEVC encryption. Math. Biosci. Eng. 18(6), 9410–9429 (2021)

    Article  Google Scholar 

  43. Chen, C., Wang, X., Liu, G., Huang, G.: A robust selective encryption scheme for H.265/HEVC video. IEEE Access 11, 17252–17264 (2022)

    Article  Google Scholar 

  44. Peng, F., Zhu, Xw., Long, M.: An ROI privacy protection scheme for H.264 video based on FMO and chaos. IEEE Trans. Inf. Forensics Secur. 8(10), 1688–1699 (2013)

    Article  Google Scholar 

Download references

Acknowledgements

This work was supported by the National Natural Science Foundation of China (Nos. 62171114 and 62032013) and the Fundamental Research Funds for the Central Universities (No. N2324004-12).

Author information

Authors and Affiliations

Authors

Contributions

QS: Conceptualization, Methodology, Software, Writing—Original Draft, Writing—Review & Editing. CF: Conceptualization, Methodology, Supervision, Writing—Review & Editing. ZL: Writing—Review & Editing. JW: Writing—Review & Editing. JC: Writing—Review & Editing. LC: Writing—Review & Editing. C-WS: Writing—Review & Editing.

Corresponding author

Correspondence to Chong Fu.

Ethics declarations

Conflict of interest

The authors declare that they have no conflict of interest.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Sheng, Q., Fu, C., Lin, Z. et al. A fast selective encryption scheme for H.264/AVC video with syntax-preserving and zero bit rate expansion. SIViP 18, 975–989 (2024). https://doi.org/10.1007/s11760-023-02767-w

Download citation

  • Received:

  • Revised:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s11760-023-02767-w

Keywords

Navigation