Nvv4l2camerasrc gstnvv4l2camerasrc.cpp:475:gst_nvv4l2camera_buffer_pool_acquire_buffer:<nvv4l2camerabufferpool0> Timeout Error

Hello! I am trying to split the video obtained using nvv4l2camerasrc element using nvtee, one of the streams will be used for inference and the other transmitted using utp. However, when I execute the following pipeline, I get an error:

gst-launch-1.0 \
    \
    \
    nvv4l2camerasrc \
        device=/dev/video0 \
        do-timestamp=1 \
        bufapi-version=1 \
        cap-buffers=16 \
    ! "video/x-raw(memory:NVMM), format=(string)UYVY, width=(int)1920, height=(int)1080, framerate=(fraction)30/1" \
    \
    \
    ! nvtee name=splitter0 \
    ! queue \
    ! fakesink \
    \
    \
    splitter0.vid_src \
    ! queue \
    ! fakesink \
    \
    \
    

Error:

Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
0:00:06.438825977  4926   0x5579b61990 ERROR        nvv4l2camerasrc gstnvv4l2camerasrc.cpp:475:gst_nvv4l2camera_buffer_pool_acquire_buffer:<nvv4l2camerabufferpool0> Timeout Error
Got EOS from element "pipeline0".
Execution ended after 0:00:06.354966121
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
0:00:06.446233798  4926   0x5579b73290 ERROR        nvv4l2camerasrc gstnvv4l2camerasrc.cpp:605:gst_nvv4l2camera_buffer_pool_release_buffer:<nvv4l2camerabufferpool0> VIDIOC_QBUF failed :Invalid argument
Setting pipeline to NULL ...
Freeing pipeline ...

(I actually removed the blocks to produce the minimum failing example.)

I am running on Jetson Nano.

$ cat /etc/nv_tegra_release 
# R32 (release), REVISION: 7.3, GCID: 31982016, BOARD: t210ref, EABI: aarch64, DATE: Tue Nov 22 17:30:08 UTC 2022
$ uname -r
4.9.299-tegra

Jetpack 4.6.3 Deepstream 6.0

The camera used is:

Thank you in advance!

hello dominik.gronkiewicz,

please narrow down the issue.
are you able to use V4L2 IOCTL to verify basic functionality,
for example, $ v4l2-ctl -d /dev/video0 --set-fmt-video=width=1920,height=1080,pixelformat=RG10 --set-ctrl bypass_mode=0 --stream-mmap --stream-count=100

you may see-also developer guide for reference, Applications Using V4L2 IOCTL Directly.
thanks

Hello, Jerry!

The command you suggested seems to be working okay:

$ v4l2-ctl -d /dev/video0 --set-fmt-video=width=1920,height=1080,pixelformat=RG10 --set-ctrl bypass_mode=0 --stream-mmap --stream-count=100
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 30.09 fps
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 30.04 fps
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 30.03 fps
<<<<<<<<

Dominik

There is no update from you for a period, assuming this is not an issue anymore. Hence we are closing this topic. If need further support, please open a new one. Thanks

hello dominik.gronkiewicz,

that’s due to you’re running with bayer camera sensor, which doesn’t supported by NvV4l2CameraSrc plugin.
I assume you’re able to enable camera preview with nvarguscamerasrc.
please also check…
$ gst-launch-1.0 nvarguscamerasrc sensor-id=0 ! 'video/x-raw(memory:NVMM),width=1920, height=1080, framerate=30/1, format=NV12' ! nvoverlaysink -ev

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