This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

dm36x h264 enconder: Video pipe lost PAL support when enabled VUI

Hi, 

Currently I have a gstreamer video pipe that outputs  PAL compatible recordings.

gst-launch-1.0 -e v4l2src chain-ipipe=true ! 'video/x-raw,format=(string)NV12, width=720, height=576, framerate=25/1'! ce_h264enc target-
bitrate=2000000 interlace=true num-out-buffers=10 interlace-mode=1 bytestream=true idrinterval=30 ! queue ! qtmux ! filesink location=no_vui.mp4.

Then when I add VUI support,

gst-launch-1.0 -e v4l2src chain-ipipe=true ! 'video/x-raw,format=(string)NV12, width=720, height=576, framerate=25/1'! ce_h264enc target-
bitrate=2000000 interlace=true num-out-buffers=10 interlace-mode=1 bytestream=true idrinterval=30 seqscaling=0 vui-enable=1 ! queue ! qtmux ! filesink location=vui.mp4.

After I scan the file using the mediainfo utility from Linux says that my video format is NTSC, at the same time I am keeping the PAL configuration, this is 720x576 resolution and fps=25.

Is the VUI modifying something in the h264 stream that affects the video format ? Are there any other properties/params of the encoder that I should be aware of that can affect the video format while having VUI enabled ?

Thanks !

-Jose Lopez

  • Just found some useful info about VUI, is not very clear in the h264 encoder documentation, anyway here I post this for reference,

    component = 0, pal = 1, ntsc = 2, secam = 3, mac = 4, undef =5

    h264_dyn_params->VUI_Buffer->videoSignalTypePresentFlag = 1;

    h264_dyn_params->VUI_Buffer->videoFormat = 1;





    Regards