No element "omxh264enc"

Hi, I run this code in jetpack4.6 is normal, when I run this code in jetpack5.1 and 5.1.1 an error occurs。cv::VideoWriter *vwriter = new cv::VideoWriter(“appsrc ! videoconvert ! nvvidconv ! omxh264enc bitrate=4000000 ! video/x-h264,stream-format=(string)byte-stream ! h264parse ! flvmux ! rtmpsink location=rtmp://127.0.0.1/hls/v1”, 0, 15, rtmp_size);

Now this error occurs:opencv4.4.0/opencv/modules/videoio/src/cap_gstreamer.cpp (1424) open OpenCV | GStreamer warning: error opening writer pipeline: no element “omxh264enc”

Hi,
We have deprecated omx plugins. Please use v4l2 plugins. You may try the sample:
Displaying to the screen with OpenCV and GStreamer - #9 by DaneLLL

I changed ! omxh264enc bitrate=4000000 to ! nvv4l2h264enc, he can continue to run, but the following problems will occur.

Hi,
We would expect the sample working since it is validated. Please try the sample and see if you see the same error. Also Jetpack 5.1.2 is released. You can consider upgrade and try.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.