Can add the feature 'insert-spspps-idr' to omxh265enc and nvv4l2h265enc?

Hi,

Can add the feature “insert-spspps-idr” to omxh265enc and nvv4l2h265enc?

Thanks

Hi,
Inserting sps/pps at IDR frames are enabled if you set stream-format=byte-stream in omxh265enc.

$ gst-launch-1.0 nvarguscamerasrc num-buffers=310 ! omxh265enc ! video/x-h265,stream-format=byte-stream ! filesink location=a.h265

For nvv4l2h265enc, please apply the attached patch and rebuild libgstnvvideo4linux2.so.
Source code is at libgstnvvideo4linux2.so

r32_1_0001-gst-v4l2-h265enc-add-property-insert-sps-pps.zip (1.3 KB)

Great !!!

It’s OK now,

thank you DaneLLL