Error encoding with gstreamer and omxh264enc

Hi,

My prior issues seem to be resolved using Jetpack 4.3. I can now use both omxh264enc and nvv4l2h264enc without leaks or deadlocks.

However, when trying to use the nvvideoconvert plugin the pipeline below causes segfaults in my use case. The segfault seems to occur after the first n pipelines are closed and new ones are opened:

videotestsrc num-buffers=150 is-live=true pattern=2 ! video/x-raw,width=1920,height=1080,format=(string)RGBA,framerate=(fraction)15/1 ! nvvideoconvert ! video/x-raw(memory:NVMM), format=(string)NV12 ! nvv4l2h264enc preset-level=3 profile=4 insert-sps-pps=1 qp-range=8,24:8,24:8,24 ! video/x-h264,stream-format=byte-stream ! h264parse ! qtmux ! filesink location=testvideos/recorder6_2019-12-26_11-28-27.mp4

It would seem that nvvideoconvert is the cause of the issue. The same pipeline using nvvidconv works just fine.

Another note, the above pipeline with nvvidconv seems to consume twice as many cpu resources when using nvv4l2h264enc versus omxh264enc.

Hi,
The nvvideoconvert plugin is newly developed for DeepStream SDK. May not be valid in all pure multimedia usecases. Suggest you use nvvidconv.

For the CPU usage, please run ‘sudo jetson_clocks’ and ‘sudo tegrastats’ to compare ‘nvvidconv ! omxh264enc’ and ‘nvvidconv ! nvv4l2h264enc’. If you do see significant difference, please attach tegrastats’ for reference.