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.

TDA4VH-Q1: gstreamer encoding problem

Part Number: TDA4VH-Q1


After I run the encoding command as below

gst-launch-1.0 -v filesrc location=./output_image_00.yuv ! videoparse format=nv12 width=1920 height=1200 ! v4l2h265enc ! h265parse ! queue ! filesink location=./output.h265

SDK: RTOS_8.5

The output.h265 file was successfully generated. But after parsing the file I found a problem

The file only uses the first frame as an i frame, and the others are all p frames

How to set the i frame interval?

  • Hi.

    The i-frame interval can be set using the control video_gop_size and h264_i_frame_period. This option is available in 8.6 release.

    You can refer to the below sample pipeline to set the values.

    gst-launch-1.0 videotestsrc num-buffers=300 ! rawvideoparse width=1920 height=1080 framerate=30/1 format=nv12 !  v4l2h265enc extra-controls="controls,video_gop_size=30" ! filesink location="op.h265"

    Regards,

    Prasanth