# Issue accessing nvv4l codec on xavier with docker images

**URL:** <https://forums.balena.io/t/issue-accessing-nvv4l-codec-on-xavier-with-docker-images/202330>\
**Category:** Product support\
**Tags:** docker, jetson, xavier\
**Created:** [October 22, 2020, 1:08pm UTC](https://forums.balena.io/t/issue-accessing-nvv4l-codec-on-xavier-with-docker-images/202330 "2020-10-22T13:08:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![PaintedSnipe](https://avatars.discourse-cdn.com/v4/letter/p/838e76/32.png) [@PaintedSnipe](https://forums.balena.io/u/PaintedSnipe)\
**Post date:** [October 22, 2020, 1:08pm UTC](https://forums.balena.io/t/issue-accessing-nvv4l-codec-on-xavier-with-docker-images/202330/1 "2020-10-22T13:08:25Z")

</div>

(1) I am running a docker instance on xavier. I have a gstreamer project where I want to use nvv4l2 codecs. Various .so libraries from Nvidia have been installed and ENV variables have been set to point to installation folders.  
However, I get following errors when I try to use nvv4l2 encoder or decoder

```auto
0:00:00.308269491 9 0x55847a1c00 WARN v4l2 v4l2_calls.c:98:gst_v4l2_get_capabilities:<nvv4l2h265enc0> error: Error getting capabilities for device '/dev/nvhost-msenc': It isn't a v4l2 driv
er. Check if it is a v4l1 driver.
0:00:00.308325749 9 0x55847a1c00 WARN v4l2 v4l2_calls.c:98:gst_v4l2_get_capabilities:<nvv4l2h265enc0> error: system error: Inappropriate ioctl for device

```

(2) Investing this issue further it turned out that issue is caused by libv4l2\_nvvideocodec.so not being at hard-coded location /usr/lib/aarch64-linux-gnu/libv4l/plugins/nv/libv4l2\_nvvideocodec.so  
If I manually create a symlink from above location to the installed libv4l2\_nvvideocodec.so, then stuff works ok.

(3) I have done a grep in relevant folder to check which software expects above hard-coded path. But grep does not have any hits. So, I am wondering why we need the libv4l2\_nvvideocodec.so at above hardcoded path

---

<div class="post-metadata">

**Author:** ![ab77](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/ab77/32/2870_2.png) [@ab77](https://forums.balena.io/u/ab77)\
**Post date:** [October 22, 2020, 9:42pm UTC](https://forums.balena.io/t/issue-accessing-nvv4l-codec-on-xavier-with-docker-images/202330/2 "2020-10-22T21:42:19Z")

</div>

Hi there, what base image are you using in your Dockerfile?
