Efficient Transcoding and Encryption for Live 360 CCTV System
Abstract
:1. Introduction
2. Related Work
2.1. Live CCTV System
2.2. The 360 Video Standard in MPEG
2.3. Video Transcoding
- Transcoding is the process at a high level of retrieving compressed (or encoded) content, the next is decompressing (or decoding) and then changing somehow to recompress it again. For example, we can change the audio/video format (codec) from MPEG-2 video source to H.264/AVC video and Advanced Audio Coding (AAC) audio. Other tasks might be adding various digital contents to a video stream.
- Trans-rating specifically focuses on changing the bitrate, such as taking the 4K Ultra-HD video input stream at 10 Mbps and converting it to one or more lower bitrates: HD at 4 Mbps, 2 Mbps, 1 Mbps, etc.
- Trans-sizing refers specifically to video frame change (can be understood as up-sampling, down-sampling). Normally, the video source often has high video frame size such as 4K (), 8K, or even 12K. Thus, the trans-sizing usually is downgrading the resolution, for example downgrading from 4K ultra-high-definition (UHD) resolution () to 1080p () or 720p (1080 × 720).
2.4. Data Encryption for Surveillance System
3. Fast Multiple Transcoding and Encryption
3.1. Multiple Transcoding
3.2. ARIA Encryption
3.3. RTSP Streaming
- RTSP server side: Provides multiple real-time RTSP streams at the same time. Each RTSP stream is transcoded and encrypted by transcoder box.
- RTSP client side: Customer’s devices or control center uses computer, smartphone or tablet to decrypt/decode RTSP stream.
4. Performance Evaluation
4.1. Testbed Scenario
4.2. Evaluation
5. Conclusions
Author Contributions
Funding
Conflicts of Interest
Appendix A
Parameters | Value | Note |
---|---|---|
SphereVideo | 1 | 1: 360 video; 0: traditional video; |
InputGeometryType | 0 | 0: equirectangular; 1: cubemap; 2: equalarea; |
SourceFPStructure | 1 1 0 0 | frame packing order |
CodingGeometryType | 0 | |
CodingFPStructure | 1 1 0 0 | frame packing order |
SVideoRotation | 0 0 0 | rotation along X, Y, Z; |
CodingFaceWidth | 0 | 0: automatic calculation; 4096 for 8K; 3328 for 4K; |
CodingFaceHeight | 0 | 0: automatic calculation; 2048 for 8K; 1664 for 4K; |
InterpolationMethodY | 5 | interpolation method for luma, 0: bicubic; 1:NN, 2: bilinear, 3: bicubic, 4: lanczos2, 5: lanczos3 |
InterpolationMethodC | 4 | interpolation method for chroma, 0: bicubic; 1:NN, 2: bilinear, 3: bicubic, 4: lanczos2, 5: lanczos3 |
InternalChromaFormat | 420 | internal chroma format for the conversion process; |
SPSNR_NN | 1 | enable end-to-end S-PSNR-NN calculation; |
SPSNR_I | 0 | enable end-to-end S-PSNR-I calculation; |
CPP_PSNR | 0 | enable end-to-end CPP-PSNR calculation; |
E2EWSPSNR | 1 | enable end-to-end WS-PSNR calculation; |
CODEC_SPSNR_NN | 1 | enable codec S-PSNR-NN calculation; |
WSPSNR | 1 | enable codec WS-PSNR calculation; |
CF_SPSNR_NN | 1 | enable cross-format S-PSNR-NN calculation; |
CF_SPSNR_I | 0 | enable cross-format S-PSNR-I calculation; |
CF_CPP_PSNR | 1 | enable cross-format CPP-PSNR calculation; |
SphFile | ../cfg-360Lib/360Lib/sphere_655362.txt | |
ViewPortPSNREnable | 0 | 1: Yes; 0: No |
ViewPortList | 2 75.0 75.0 0.0 0.0 75.0 75.0 −90.0 0.0 | |
ViewPortWidth | 428 | 1816 for 8K; 856 for 4K; 428 for Full HD |
ViewPortHeight | 428 | 1816 for 8K; 856 for 4K; 428 for Full HD |
DynamicViewPort PSNREnable | 1 | 1: Yes; 0: No |
DynamicViewPortList | 2 75.0 75.0 0 −45.0 −15.0 299 45.0 15.0 75.0 75.0 0 −135.0 −15.0 299 −45.0 15.0 | |
DynamicViewPortWidth | 428 | 1816 for 8K; 856 for 4K; 428 for Full HD; |
DynamicViewPortHeight | 428 | 1816 for 8K; 856 for 4K; 428 for Full HD; |
Parameters | Value | Note |
---|---|---|
InputFile | videosequences 4096 × 2048_30fps_8bit_420_erp.yuv | Format name |
InputBitDepth | 8 | Input bitdepth |
InputChromaFormat | 420 | Ratio of luminance to chrominance samples |
FrameRate | 30 | Frame Rate per second |
FrameSkip | 0 | Number of frames to be skipped in input |
SourceWidth | 4096 | Input frame width |
SourceHeight | 2048 | Input frame height |
FramesToBeEncoded | 300 | Number of frames to be coded |
Level | 5.2 | |
DynamicViewPort PSNREnable | 1 | |
DynamicViewPortList | 2 75.0 75.0 0 210 −18 299 300 12 75.0 75.0 0 30 −44 299 120 −14 | |
DynamicViewPortWidth | 856 | (1816 for 8K; 856 for 4K; 428 for Full HD) |
DynamicViewPortHeight | 856 | (1816 for 8K; 856 for 4K; 428 for Full HD) |
References
- JCT-VC. High Efficiency Video Coding (HEVC). Available online: https://hevc.hhi.fraunhofer.de/ (accessed on 17 February 2019).
- Ohm, J.-R.; Sullivan, G.J.; Schwarz, H.; Tan, T.K.; Wiegand, T. Comparison of the coding efficiency of video coding standards—Including High Efficiency Video Coding (HEVC). IEEE Trans. Circuits Syst. Video Technol. 2012, 22, 1669–1684. [Google Scholar] [CrossRef]
- JCT-VC—Joint Collaborative Team on Video Coding. Available online: https://www.itu.int/en/ITU-T/studygroups/2013-2016/16/Pages/video/jctvc.aspx (accessed on 18 February 2019).
- Wiegand, T.; Sullivan, G.J. Overview of the H.264/AVC video coding standard. IEEE Trans. Circuits Syst. Video Technol. 2003, 13, 560–576. [Google Scholar] [CrossRef] [Green Version]
- WG11 (MPEG). MPEG Strategic Standardisation Roadmap; Technical Report ISO/IEC JTC1/WG11; MovingPicture Experts Group (MPEG): Villar Dora, Italy, 2016. [Google Scholar]
- Champel, M.L.; Koenen, R.; Lafruit, G.; Budagavi, M. Working Draft 0.4 of TR: Technical Report on Architectures for Immersive Media; Technical Report ISO/IEC JTC1/WG11; Moving Picture Experts Group (MPEG): Villar Dora, Italy, 2017. [Google Scholar]
- Wang, X.; Chen, L.; Zhao, S.; Lei, S. From OMAF for 3DoF VR to MPEG-I media format for 3DoF+, windowed 6DoF and 6DoF VR. In Proceedings of the 119th MPEG Meeting of ISO/IEC JTC1/SC29/ WG11, MPEG 119/m44197, Torino, Italy, 17–21 July 2017. [Google Scholar]
- Kalva, H. Issues in H.264/MPEG-2 video transcoding. In Proceedings of the 1st IEEE Consumer Communications and Networking Conference, Las Vegas, NV, USA, 5–8 January 2004; pp. 657–659. [Google Scholar]
- Zhou, Z.; Sun, S.; Lei, S.; Sun, M.-T. Motion information and coding mode reuse for MPEG-2 to H.264 transcoding. In Proceedings of the 2006 IEEE International Symposium on Circuits and Systems, Kobe, Japan, 23–26 May 2005; pp. 1230–1233. [Google Scholar]
- Chen, Y.; Wen, Z.; Wen, J.; Tang, M.; Tao, P. Efficient software H.264/AVC to HEVC transcoding on distributed multicore processors. IEEE Trans. Circuits Syst. Video Technol. 2015, 25, 1423–1434. [Google Scholar] [CrossRef]
- Luong, P.V.; De Praeter, J.; Van Wallendael, G.; Van Leuven, S.; De Cock, J.; de WalleE, R.V. Efficient bit rate transcoding for high efficiency video coding. IEEE Trans. Multimed. 2016, 18, 364–378. [Google Scholar]
- Díaz-Honrubia, A.J.; Martínez, J.L.; Cuenca, P.; Gamez, J.A.; Puerta, J.M. Adaptive fast quadtree level decision algorithm for H.264 to HEVC video transcoding. IEEE Trans. Circuits Syst. Video Technol. 2016, 26, 154–168. [Google Scholar] [CrossRef]
- Zhang, X.; Seo, S.H.; Wang, C. A lightweight encryption method for privacy protection in surveillance videos. IEEE Access 2018, 6, 18074–18087. [Google Scholar] [CrossRef]
- Wampler, C.; Uluagac, S.; Beyah, R. Information leakage in encrypted IP video traffic. In Proceedings of the 2015 IEEE Global Communications Conference (GLOBECOM), San Diego, CA, USA, 6–10 December 2015. [Google Scholar]
- VLC x264 Library. Available online: https://www.videolan.org/developers/x264.html (accessed on 17 February 2019).
- FFmpeg Software. Available online: https://www.ffmpeg.org/ (accessed on 17 February 2019).
- Intel. Quick Sync Video Technology. Available online: https://www.intel.com/content/www/us/en/architecture-and-technology/quick-sync-video/quick-sync-video-general.html (accessed on 17 February 2019).
- Security and Performance Analysis of Aria. Available online: https://www.esat.kuleuven.be/cosic/publications/article-500.ps (accessed on 17 February 2019).
- Li, S.; Song, C. Improved impossible differential cryptanalysis of ARIA. In Proceedings of the 2008 International Conference on Information Security and Assurance (isa 2008), Busan, Korea, 24–26 April 2008. [Google Scholar]
- Pandey, A.; Rizvi, M.A. Comparative survey of different cryptographic algorithm. Int. J. Sci. Eng. Res. 2017, 8, 41–44. [Google Scholar]
- Lee, J.; Kwon, D.; Kim, C. IETF RFC: ARIA Encryption Algorithm; NRSI: Syosset, NY, USA, 2010; Available online: https://tools.ietf.org/html/rfc5794 (accessed on 20 February 2019).
- Kwon, D.; Kim, J.; Park, S.; Soong, S.H.; Sohn, Y.; Song, J.H.; Yeom, Y.; Yoon, E.-J.; Lee, S.; Le, J.; et al. Aria Encryption KISA. In Proceedings of the Information Security and Cryptology (ICISC 2003), Seoul, Korea, 27–28 November 2003; LNCS 2971. pp. 432–445. Available online: http://www.math.snu.ac.kr/~jinhong/04Aria.pdf (accessed on 20 February 2019).
- Kim, W.; Lee, J.; Park, J.; Kwon, D. IETF RFC: ARIA Cipher Suites to Transport Layer Security (TLS); NRSI: Syosset, NY, USA, 2011; Available online: https://tools.ietf.org/html/rfc6209 (accessed on 20 February 2019).
- HM Software and 360 Library. Available online: https://hevc.hhi.fraunhofer.de/ (accessed on 18 February 2019).
- Schulzrinne, H.; Rao, A.; Lanphier, R. IETF RFC: Real Time Streaming Protocol; RealNetworks: Seattle, WA, USA, 1998; Available online: https://tools.ietf.org/html/rfc2326 (accessed on 20 February 2019).
- Schulzrinne, H.; Rao, A.; Lanphier, R.; Westerlund, M.; Stiemerling, M. IETF RFC: Real-Time Streaming Protocol Version 2.0; Westerlund Ericsson, M., Stiemerling, M., Eds.; University of Applied Sciences Darmstadt: Darmstadt, Germany, 2016; Available online: https://tools.ietf.org/html/rfc7826 (accessed on 20 February 2019).
- Hanwha CCTV Camera—Model LNO-6010R. Available online: https://www.hanwha-security.com/en/products/camera/network/bullet/LNO-6010R/overview/ (accessed on 19 February 2019).
- Open HEVC Decoder. Available online: Available:http://openhevc.github.io/openHEVC/ (accessed on 17 February 2019).
- Intel Media SDK. Available online: https://software.intel.com/en-us/media-sdk (accessed on 17 February 2019).
- Crypto++ Library. Available online: https://www.cryptopp.com/ (accessed on 17 February 2019).
- Hevcbrowser Software. Available online: https://github.com/virinext/hevcesbrowser/projects (accessed on 19 February 2019).
- ERP WS-PSNR Software. Available online: http://mpegx.int-evry.fr/software/MPEG/Explorations/3DoFplus/ERP_WS-PSNR (accessed on 19 February 2019).
- Yu, M.; Lakshman, H.; Girod, B. A framework to evaluate omnidirectional video coding schemes. In Proceedings of the 2015 IEEE International Symposium on Mixed and Augmented Reality (ISMAR), Fukuoka, Japan, 29 September–3 October 2015. [Google Scholar]
- VLC x265 Library. Available online: https://www.videolan.org/developers/x265.html (accessed on 19 February 2019).
Parameters | Value |
---|---|
InputFile | DrivingInCity 3840 × 1920_30fps_8bit_420_erp.yuv |
Width | 3840 |
Height | 1920 |
InputFile | KiteFlite 4096 × 2048_30fps_8bit_420_erp.yuv |
InputFile | Harbor 4096 × 2048_30fps_8bit_420_erp.yuv |
InputFile | GasLamp 4096 × 2048_30fps_8bit_420_erp.yuv |
InputFile | Trolley 4096 × 2048_30fps_8bit_420_erp.yuv |
SourceWidth | 4096 |
SourceHeight | 2048 |
InputBitDepth | 8 |
InputChromaFormat | 420 |
FrameRate | 30 |
FrameSkip | 0 |
FramesToBeEncoded | 300 |
Level | 5.2 |
Test_Sequence | Video Duration (s): Transcoding Time (s) | Video Duration (s): Transcoding Time (s) |
---|---|---|
DrivingInCity_1920 × 1080 | 10.03 (s)7.04 (s) | 100.3 (s):69.15 (s) |
DrivingInCity_3840 × 1920 | 10.03 (s):8.92 (s) | 100.3 (s):88.36 (s) |
GasLamp_1920 × 1080 | 12.00 (s):8.45 (s) | 120.0 (s):84.04 (s) |
GasLamp_4096 × 2048 | 12.00 (s):9.07 (s) | 120.0 (s):90.21(s) |
Harbor_1920 × 1080 | 12.00 (s):8.58 (s) | 120.0 (s):85.32 (s) |
Harbor_4096 × 2048 | 12.00 (s):9.13 (s) | 120.0 (s):90.54 (s) |
KiteFlite_1920 × 1080 | 12.00 (s):8.66 (s) | 120.0 (s):85.23 (s) |
KiteFlite_4096 × 2048 | 12.00 (s):9.01 (s) | 120.0 (s):90.29 (s) |
Trolley_1920 × 1080 | 12.00 (s):8.64 (s) | 120.0 (s):86.12 (s) |
Trolley_4096 × 2048 | 12.00 (s):9.15 (s) | 120.0 (s):90.76 (s) |
Test_Sequence | QP22 | QP27 | QP32 | QP37 |
---|---|---|---|---|
Basketball_1920 × 1080_500 frames_25fps | 11.89 s | 11.964 s | 11.965 s | 11.956 s |
Cactus_1920 × 1080_500 frames_25fps | 11.92 s | 11.676 s | 11.529 s | 11.075 s |
Kimono_1920 × 1080_240 frames_25fps | 5.61 s | 5.67 s | 5.84 s | 5.76 s |
ParkScene_1920 × 1080_240 frames_25fps | 5.596 s | 5.643 s | 5.678 s | 5.715 s |
Test_Sequence | x265 | Proposed |
---|---|---|
Basketball_1920 × 1080_500 frames_25fps_qp22 | 53.45 s (9.36 fps) | 11.89 s (42.05 fps) |
Cactus_1920 × 1080_500 frames_25fps_qp22 | 42.23 s (11.84 fps) | 11.92 s (41.94 fps) |
Kimono_1920 × 1080_240 frames_25fps_qp22 | 24.79 s (9.68 fps) | 5.61 s (42.7 fps) |
ParkScene_1920 × 1080_240 frames_25fps_qp22 | 21.76 s (11.03 fps) | 5.596 s (42.88 fps) |
Test_Sequence | x265 | Proposed |
---|---|---|
DrivingInCity_1920 × 1080_300 frames | 20.78 s (14.48 fps) | 7.03 s (42.8 fps) |
GasLamp_1920 × 1080_300frames | 22.12 s (13.56 fps) | 8.45 s (35.50 fps) |
Harbor_1920 × 1080_300frames | 22.45 s (13.37 fps) | 8.58 s (34.9 fps) |
KiteFlite_1920 × 1080_300frames | 22.37 s (13.41 fps) | 8.65 s (34.68 fps) |
Trolley_1920 × 1080_300frames | 22.2 9s (13.45 fps) | 8.62 s (34.80 fps) |
Test_Sequence | WS-PSNR Y Channel | WS-PSNR U Channel | WS-PSNR V Channel |
---|---|---|---|
DrivingInCity_300frames_30fps_1920 × 1080 | 39.36 | 45.14 | 44.52 |
DrivingInCity_300frames_30fps_3840 × 1920 | 38.68 | 45.33 | 44.63 |
GasLamp_300frames_30fps_1920 × 1080 | 41.47 | 46.74 | 46.08 |
GasLamp_300frames_30fps_4096 × 2048 | 42.19 | 47.34 | 46.61 |
Harbor_300frames_30fps_1920 × 1080 | 40.92 | 47.36 | 47.52 |
Harbor_300frames_30fps_4096 × 2048 | 41.24 | 48.43 | 48.25 |
KiteFlite_300frames_30fps_1920 × 1080 | 38.03 | 44.22 | 45.49 |
KiteFlite_300frames_30fps_4096 × 2048 | 38.94 | 46.05 | 46.83 |
Trolley_300frames_30fps_1920 × 1080 | 39.46 | 45.43 | 46.81 |
Trolley_300frames_30fps_4096 × 2048 | 39.78 | 47.05 | 47.60 |
Secure Algorithm | MiB/S | Cycles Per Byte | Microseconds to Setup Key and IV | Cycles to Setup Key and IV |
---|---|---|---|---|
AES (128_bit key) | 4648 | 0.55 | 0.237 | 639 |
AES (256_bit key) | 3948 | 0.65 | 0.228 | 617 |
ARIA (128_bit key) | 140 | 18.36 | 0.250 | 675 |
ARIA (256_bit key) | 109 | 23.71 | 0.261 | 705 |
Test_Sequence | ARIA Total Time | ARIA Time | AES Total Time | AES Time |
---|---|---|---|---|
ParkScene_240 frames_25fps | 5.596 s (42.88 fps) | 3.16% | 5.07 s (47.33 fps) | 2.82% |
Kimono_240 frames_25fps | 5.61 s (42.7 fps) | 2.53% | 5.39 s (44.5 fps) | 2.07% |
Basketball_500 frames_25fps | 11.89 s (42.05 fps) | 2.28% | 11.55 s (43.29 fps) | 1.14% |
Cactus_500 frames_25fps | 11.92 s (41.94 fps) | 2.19% | 11.28 s (44.32 fps) | 0.95% |
© 2019 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).
Share and Cite
Thanh Le, T.; Jeong, J.; Ryu, E.-S. Efficient Transcoding and Encryption for Live 360 CCTV System. Appl. Sci. 2019, 9, 760. https://doi.org/10.3390/app9040760
Thanh Le T, Jeong J, Ryu E-S. Efficient Transcoding and Encryption for Live 360 CCTV System. Applied Sciences. 2019; 9(4):760. https://doi.org/10.3390/app9040760
Chicago/Turabian StyleThanh Le, Tuan, JongBeom Jeong, and Eun-Seok Ryu. 2019. "Efficient Transcoding and Encryption for Live 360 CCTV System" Applied Sciences 9, no. 4: 760. https://doi.org/10.3390/app9040760
APA StyleThanh Le, T., Jeong, J., & Ryu, E.-S. (2019). Efficient Transcoding and Encryption for Live 360 CCTV System. Applied Sciences, 9(4), 760. https://doi.org/10.3390/app9040760