1
$\begingroup$

How can I extract the count of particular macro block types(I, P and S) from the frames in the video (H.264 and MP4)? Also, I would like to extract the prediction residual of each of the P and B frames (computed from its corresponding reference frame) in the video from the encoded version itself while the package is decoding it.

$\endgroup$
1
$\begingroup$

There are several tools to analyze video streams which which can provide slice and macroblock level information:

From How extract Intra-Prediction modes out of h264 stream, it seems that ffmpeg or ffprobe can do a lot of jobs.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.