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.
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
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
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)
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)
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)
Yi, X., Tan, C.H., Slew, C.K., Syed, M.R.: Fast encryption for multimedia. IEEE Trans. Consum. Electron. 47(1), 101–107 (2001)
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)
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)
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)
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)
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)
Wang, X., Chen, S.: An image encryption algorithm based on pixel bit operation and nonlinear chaotic system. Vis. Comput. 39(7), 3123–3144 (2023)
Xu, H., Tong, X., Meng, X.: An efficient chaos pseudo-random number generator applied to video encryption. Optik 127(20), 9305–9319 (2016)
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)
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)
Liu, Z., Li, X.: Motion vector encryption in multimedia streaming. In: 10th International Multimedia Modelling Conference, 2004. Proceedings, pp. 64–71. IEEE (2004)
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)
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)
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)
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)
Cheng, S., Wang, L., Ao, N., Han, Q.: A selective video encryption scheme based on coding characteristics. Symmetry 12(3), 332 (2020)
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)
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)
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)
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
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)
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)
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)
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)
Chen, A., Lu, J., Lü, J., Yu, S.: Generating hyperchaotic lü attractor via state feedback control. Phys. A 364, 103–110 (2006)
Tian, J.: Reversible data embedding using a difference expansion. IEEE Trans. Circuits Syst. Video Technol. 13(8), 890–896 (2003)
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
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)
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)
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)
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)
Lui, O.Y., Wong, K.W.: Chaos-based selective encryption for H.264/AVC. J. Syst. Softw. 86(12), 3183–3192 (2013)
Xu, D.: Commutative encryption and data hiding in HEVC video compression. IEEE Access 7, 66028–66041 (2019)
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)
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)
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)
Kiran, P., Parameshachari, B.: Resource optimized selective image encryption of medical images using multiple chaotic systems. Microprocess. Microsyst. 91, 104546 (2022)
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)
Chen, C., Wang, X., Liu, G., Huang, G.: A robust selective encryption scheme for H.265/HEVC video. IEEE Access 11, 17252–17264 (2022)
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)
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
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
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.
About this article
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
Received:
Revised:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s11760-023-02767-w