Running Mmj:genai container in Orin NX

Hi. I was trying to build and run the mmj:genai container stand alone from GitHub - NVIDIA-AI-IOT/mmj_genai: A reference example for integrating NanoOwl with Metropolis Microservices for Jetson on Orin NX which has jetpack 5.1.2. I built the container without any errors but when I ran the container using

sudo docker run --volume /home/eli/Downloads/meena/Videos:/videos --volume /tmp/nv_jetson_model:/tmp/nv_jetson_model --network=host -it --runtime nvidia mmj:genai bash

and to check if video viewer is working it came with GST_DEBUG=5 video-viewer --debug video.mp4 rtsp_url it gave the following. Please help on this.

Failed to query video capabilities: Inappropriate ioctl for device
libv4l2: error getting capabilities: Inappropriate ioctl for device
[gstreamer] GST_LEVEL_WARNING nvv4l2decoder v4l2
              /dvs/git/dirty/git-master_linux/3rdparty/gst/gst-v4l2/gst-v4l2/v4l2_calls.c:94  gst_v4l2_get_capabilities
              error: Error getting capabilities for device '/dev/nvhost-nvdec': It isn't a v4l2 driver. Check if it is a v4l1 driver.
[gstreamer] GST_LEVEL_WARNING nvv4l2decoder v4l2
              /dvs/git/dirty/git-master_linux/3rdparty/gst/gst-v4l2/gst-v4l2/v4l2_calls.c:94  gst_v4l2_get_capabilities
              error: system error: Inappropriate ioctl for device
[gstreamer] GST_LEVEL_WARNING nvv4l2decoder videodecoder
              ../gst-libs/gst/video/gstvideodecoder.c:2909  gst_video_decoder_change_state
              error: Failed to open decoder
[gstreamer] GST_LEVEL_WARNING GstDecodeBin decodebin
              ../gst/playback/gstdecodebin2.c:2352  connect_pad
              Couldn't set nvv4l2decoder0 to READY
[gstreamer] gstDecoder -- discovered video resolution: 1296x972  (framerate 25.000000 Hz)
[gstreamer] gstDecoder -- discovered video caps:  video/x-h264, stream-format=(string)byte-stream, alignment=(string)au, level=(string)3.2, profile=(string)high, width=(int)1296, height=(int)972, framerate=(fraction)25/1, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)bt709, chroma-format=(string)4:2:0, bit-depth-luma=(uint)8, bit-depth-chroma=(uint)8, parsed=(boolean)true
[gstreamer] gstDecoder -- pipeline string:
[gstreamer] filesrc location=vg24_original_car.mp4 ! qtdemux ! queue ! h264parse ! nvv4l2decoder name=decoder enable-max-performance=1 ! video/x-raw(memory:NVMM) ! nvvidconv name=vidconv ! video/x-raw ! appsink name=mysink
[video]  created gstDecoder from file:///videos/vg24_original_car.mp4
------------------------------------------------
gstDecoder video options:
------------------------------------------------
  -- URI: file:///videos/vg24_original_car.mp4
     - protocol:  file
     - location:  vg24_original_car.mp4
     - extension: mp4
  -- deviceType: file
  -- ioType:     input
  -- codec:      H264
  -- codecType:  v4l2
  -- width:      1296
  -- height:     972
  -- frameRate:  25
  -- numBuffers: 4
  -- zeroCopy:   true
  -- flipMethod: none
  -- loop:       0
------------------------------------------------
[gstreamer] gstEncoder -- codec not specified, defaulting to H.264
failed to find/open file /proc/device-tree/model
[gstreamer] gstEncoder -- detected board 'NVIDIA Orin NX Developer Kit'
[gstreamer] gstEncoder -- pipeline launch string:
[gstreamer] appsrc name=mysource is-live=true do-timestamp=true format=3 ! nvvidconv name=vidconv ! video/x-raw(memory:NVMM) ! nvv4l2h264enc name=encoder bitrate=4000000 insert-sps-pps=1 insert-vui=1 idrinterval=30 maxperf-enable=1 ! video/x-h264 ! rtph264pay config-interval=1 name=pay0
[rtsp]   waiting for RTSP server to start...
[rtsp]   RTSP server started @ rtsp://nx-01:8554
[rtsp]   RTSP route added /inputstream @ rtsp://nx-01:8554
[video]  created gstEncoder from rtsp://0.0.0.0:8554/inputstream
------------------------------------------------
gstEncoder video options:
------------------------------------------------
  -- URI: rtsp://0.0.0.0:8554/inputstream
     - protocol:  rtsp
     - location:  0.0.0.0
     - port:      8554
  -- deviceType: ip
  -- ioType:     output
  -- codec:      H264
  -- codecType:  v4l2
  -- frameRate:  30
  -- bitRate:    4000000
  -- numBuffers: 4
  -- zeroCopy:   true
  -- latency     10
------------------------------------------------
[OpenGL] failed to open X11 server connection.
[OpenGL] failed to create X11 Window.
[gstreamer] opening gstDecoder for streaming, transitioning pipeline to GST_STATE_PLAYING
Failed to query video capabilities: Inappropriate ioctl for device
libv4l2: error getting capabilities: Inappropriate ioctl for device
[gstreamer] GST_LEVEL_WARNING nvv4l2decoder v4l2
              /dvs/git/dirty/git-master_linux/3rdparty/gst/gst-v4l2/gst-v4l2/v4l2_calls.c:94  gst_v4l2_get_capabilities
              error: Error getting capabilities for device '/dev/nvhost-nvdec': It isn't a v4l2 driver. Check if it is a v4l1 driver.
[gstreamer] GST_LEVEL_WARNING nvv4l2decoder v4l2
              /dvs/git/dirty/git-master_linux/3rdparty/gst/gst-v4l2/gst-v4l2/v4l2_calls.c:94  gst_v4l2_get_capabilities
              error: system error: Inappropriate ioctl for device
[gstreamer] GST_LEVEL_WARNING nvv4l2decoder videodecoder
              ../gst-libs/gst/video/gstvideodecoder.c:2909  gst_video_decoder_change_state
              error: Failed to open decoder
[gstreamer] gstDecoder -- failed to set pipeline state to PLAYING (error 0)
video-viewer:  shutting down...
[rtsp]   RTSP server on port 8554 is shutting down
[rtsp]   waiting for RTSP server to stop...
[rtsp]   RTSP server thread stopped
video-viewer:  shutdown complete

Thank you

Can you have a try with this command line to start the application: docker compose up -d in the document: NVIDIA-AI-IOT/mmj_genai: A reference example for integrating NanoOwl with Metropolis Microservices for Jetson (github.com)?
Seems device ‘/dev/nvhost-nvdec’ haven’t been mapped into your docker from you error log.