# Sample accelerated OpenCV+encoding code fails to run on the Nano

**URL:** <https://forums.developer.nvidia.com/t/sample-accelerated-opencv-encoding-code-fails-to-run-on-the-nano/198719>\
**Category:** Jetson Nano\
**Tags:** opencv, gstreamer, cuda\
**Created:** [December 22, 2021, 6:43pm UTC](https://forums.developer.nvidia.com/t/sample-accelerated-opencv-encoding-code-fails-to-run-on-the-nano/198719 "2021-12-22T18:43:18Z")\
**Posts on this page:** 1\
**Showing post:** 3

<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:** [December 23, 2021, 3:20am UTC](https://forums.developer.nvidia.com/t/sample-accelerated-opencv-encoding-code-fails-to-run-on-the-nano/198719/3 "2021-12-23T03:20:14Z")

</div>

Hi,  
Encoder does not support RGBA. Please try to link to one more _nvvidconv_ to conver to NV12 like:

```auto
... ! nvvidconv name=myconv ! video/x-raw(memory:NVMM),format=RGBA ! nvvidconv ! video/x-raw(memory:NVMM),format=NV12 ! nvv4l2h264enc bitrate=8000000 ! ...

```

You may also try the reference sample:  
[Nano not using GPU with gstreamer/python. Slow FPS, dropped frames - #8 by DaneLLL](https://forums.developer.nvidia.com/t/nano-not-using-gpu-with-gstreamer-python-slow-fps-dropped-frames/107291/8)

---

_[View the full topic](https://forums.developer.nvidia.com/t/sample-accelerated-opencv-encoding-code-fails-to-run-on-the-nano/198719)._
