Hi Alex and Sven,

I  sent to you an image about the H.264 AnnexB payload format (file format).


http://img13.imageshack.us/img13/7995/h264d.jpg

I create this bitstream by using x264:  * x264.exe --slices 4 -o output.264
input.yuv 1920x1080*
My bitstream has 5 frames and each frame has 4 slices. Thus I have total 20
slices.
I use "H.264 Video ES Viewer" to check the length, starcode, nal_unit_type
and so on.

To decode this bitstream in FFmpeg, you have to collect 4 slices data of a
whole frame before passing it to avcodec_decode_video.
You also have to calculate exactly the length of each slices, FFmpeg need it
to decode H.264.

Hope it helps.
Huy.
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to