# No element "omxh264enc"

**URL:** <https://forums.developer.nvidia.com/t/no-element-omxh264enc/256040>\
**Category:** Jetson Xavier NX\
**Tags:** opencv, gstreamer\
**Created:** [June 9, 2023, 2:11am UTC](https://forums.developer.nvidia.com/t/no-element-omxh264enc/256040 "2023-06-09T02:11:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![luochen52](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@luochen52](https://forums.developer.nvidia.com/u/luochen52)\
**Post date:** [June 9, 2023, 2:11am UTC](https://forums.developer.nvidia.com/t/no-element-omxh264enc/256040/1 "2023-06-09T02:11:57Z")

</div>

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”

---

<div class="post-metadata">

**Author:** ![DaneLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/danelll/32/14043_2.png) [@DaneLLL](https://forums.developer.nvidia.com/u/DaneLLL)\
**Post date:** [June 9, 2023, 2:27am UTC](https://forums.developer.nvidia.com/t/no-element-omxh264enc/256040/3 "2023-06-09T02:27:36Z")

</div>

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](https://forums.developer.nvidia.com/t/140648/9)

---

<div class="post-metadata">

**Author:** ![luochen52](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@luochen52](https://forums.developer.nvidia.com/u/luochen52)\
**Post date:** [June 9, 2023, 2:35am UTC](https://forums.developer.nvidia.com/t/no-element-omxh264enc/256040/4 "2023-06-09T02:35:24Z")

</div>

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

 ![image](https://global.discourse-cdn.com/nvidia/original/4X/3/1/e/31e3fbd762bec552b85273364acbd8bb367f50d0.png)

---

<div class="post-metadata">

**Author:** ![DaneLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/danelll/32/14043_2.png) [@DaneLLL](https://forums.developer.nvidia.com/u/DaneLLL)\
**Post date:** [August 11, 2023, 1:28am UTC](https://forums.developer.nvidia.com/t/no-element-omxh264enc/256040/5 "2023-08-11T01:28:06Z")

</div>

Hi,  
We would expect the [sample](https://forums.developer.nvidia.com/t/140648/9) 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.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/system/32/68080_2.png) [@system](https://forums.developer.nvidia.com/u/system)\
**Post date:** [September 12, 2023, 7:15am UTC](https://forums.developer.nvidia.com/t/no-element-omxh264enc/256040/7 "2023-09-12T07:15:38Z")

</div>

Closed on September 12, 2023, 7:15am UTC

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