[FFmpeg-user] Detect if an MTS file is interlaced or not?

Ben Mesander ben at cardinalpeak.com
Wed Jun 15 16:57:00 CEST 2011


> For a transport stream container, this is not the case. There is no field/frame 
>info at the container 
> level. There is no field/frame info at the global stream level. For H.264, this 
>information is placed at 
> the Frame level.

> For H.264, you have to examine the Slice NAL to determine field/frame and 
>top/bottom status. This is
> because H.264 is very flexible, and allows mixing field pictures and frame 
>pictures in the same 
> elementary stream.


Yes, H.264 is very complex and wonderful. Once you get your hands on the NAL you 
can use the h264bitstream library to parse the information out of the NAL.

Regards,
Ben


More information about the ffmpeg-user mailing list