This m file does both Encoding and decoding by H.264/AVC standard. First a video is read. Played to the user and then saved as images. then one of the image is read. Then for variable Block sizing, it is divided into 16x16 blocks.The standard deviation within each block is calculated.If it is more than limit,it means more deviation within block hence reduce the block size to 8x8. If deviation is more here also, then block size is reduced to 4x4. In any of the block Size, a function Prediction is called which does the Intra/Inter/IPCM prediction based on the error values. The parameter Side_Info has all the necessary information. It is passed to Decoder Side. Based on the block Size, the corresponding reconstruction function is called.
The program also calculates the robustness of the data hiding and also
the capacity of data can be hidden in the image
Graph plots the Original image with block separation and the decoded image also.
This file is an attempt to the implementation of the paper:
Real time data hiding by exploiting the IPCM macroblocks in H.264/AVC streams by Spyridon K. KapotasÆ Athanassios N. Skodras, J Real-Time Image Proc., DOI 10.1007/s11554-008-0100-2
Santhana Raj (2022). H.264/AVC video Stream (https://www.mathworks.com/matlabcentral/fileexchange/47793-h-264-avc-video-stream), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!