image thumbnail

H.264/AVC video Stream

version (2.75 MB) by Santhana Raj
THis functions convers a avi video file into H.264/AVC video stram andthen reconverts it back.


Updated 10 Sep 2014

View License

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

Cite As

Santhana Raj (2022). H.264/AVC video Stream (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2012a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!