Skip to content

h264parse: Re-include interlacing info in caps as coded-picture-structure={field|frame}

Vivia Nikolaidou requested to merge vivia/gstreamer:h264_only_progressive into main

This reverts commit 652773de and modifies it to rename the caps field name to coded-picture-structure = {field|frame} (string).

It was previously removed because it confuses the decoder and we didn't have a valid use case for including it in the encoded caps at this stage. We now do have such a use case but still don't want to confuse the decoder, so the field is renamed.

Those are the rules:

In the SPS:

  • if frame_mbs_only_flag=1 => all frame progressive
  • if frame_mbs_only_flag=0 => field_pic_flag defines if each frame is progressive or interlaced, thus the mode is 'mixed' in GStreamer terms.
Edited by Tim-Philipp Müller

Merge request reports