Gstreamer pipleine is not working second time for imx219

This is the pipeline used:
gst-launch-1.0 -e nvarguscamerasrc sensor-id=1 ! “video/x-raw(memory:NVMM),width=1920,height=1080,framerate=29/1” ! nvvidconv ! video/x-raw,format=I420 ! x264enc bitrate=2000 speed-preset=ultrafast ! h264parse ! mp4mux ! filesink location=cam1.mp4

It works the first time, but re-running the same pipeline doesn’t. A reboot is required to get it working again.

Board : Jetson orin nano
jetpack :
jetson@3rditech-desktop:~/jetson$ cat /etc/nv_tegra_release

R36 (release), REVISION: 4.0, GCID: 37537400, BOARD: generic, EABI: aarch64, DATE: Fri Sep 13 04:36:44 UTC 2024

KERNEL_VARIANT: oot

TARGET_USERSPACE_LIB_DIR=nvidia
TARGET_USERSPACE_LIB_DIR_PATH=usr/lib/aarch64-linux-gnu/nvidia

nvbuf_utils: dmabuf_fd -1 mapped entry NOT found
Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, threadExecute:734 NvBufSurfaceFromFd Failed.
Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, threadFunction:245 (propagating)

How about sensor-id=0?

For sensor id 0 also same observation only, pipeline is working one or 2 times, then throwing similar error.

jetson@3rditech-desktop:~/jetson$ gst-launch-1.0 -e nvarguscamerasrc sensor-id=0 timeout=10 ! “video/x-raw(memory:NVMM),width=1920,height=1080,framerate=29/1” ! nvvidconv ! video/x-raw,format=I420 ! x264enc bitrate=2000 speed-preset=ultrafast ! h264parse ! mp4mux ! filesink location=cam0.mp4
Setting pipeline to PAUSED …
Pipeline is live and does not need PREROLL …
Pipeline is PREROLLED …
Setting pipeline to PLAYING …
New clock: GstSystemClock
Redistribute latency…
GST_ARGUS: Creating output stream
CONSUMER: Waiting until producer is connected…
GST_ARGUS: Available Sensor modes :
GST_ARGUS: 3280 x 2464 FR = 21.000000 fps Duration = 47619048 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: 3280 x 1848 FR = 28.000001 fps Duration = 35714284 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: 1920 x 1080 FR = 29.999999 fps Duration = 33333334 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: 1640 x 1232 FR = 29.999999 fps Duration = 33333334 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: 1280 x 720 FR = 59.999999 fps Duration = 16666667 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: Running with following settings:
Camera index = 0
Camera mode = 2
Output Stream W = 1920 H = 1080
seconds to Run = 10
Frame Rate = 29.999999
GST_ARGUS: Setup Complete, Starting captures for 10 seconds
GST_ARGUS: Starting repeat capture requests.
CONSUMER: Producer has connected; continuing.
Redistribute latency…
GST_ARGUS: Cleaning up
CONSUMER: Done Success
Got EOS from element “pipeline0”.
EOS received - stopping pipeline…
Execution ended after 0:00:10.184319668
Setting pipeline to NULL …
GST_ARGUS: Done Success
Freeing pipeline …
jetson@3rditech-desktop:~/jetson$ gst-launch-1.0 -e nvarguscamerasrc sensor-id=0 timeout=10 ! “video/x-raw(memory:NVMM),width=1920,height=1080,framerate=29/1” ! nvvidconv ! video/x-raw,format=I420 ! x264enc bitrate=2000 speed-preset=ultrafast ! h264parse ! mp4mux ! filesink location=cam0.mp4
Setting pipeline to PAUSED …
Pipeline is live and does not need PREROLL …
Pipeline is PREROLLED …
Setting pipeline to PLAYING …
New clock: GstSystemClock
Redistribute latency…
GST_ARGUS: Creating output stream
CONSUMER: Waiting until producer is connected…
GST_ARGUS: Available Sensor modes :
GST_ARGUS: 3280 x 2464 FR = 21.000000 fps Duration = 47619048 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: 3280 x 1848 FR = 28.000001 fps Duration = 35714284 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: 1920 x 1080 FR = 29.999999 fps Duration = 33333334 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: 1640 x 1232 FR = 29.999999 fps Duration = 33333334 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: 1280 x 720 FR = 59.999999 fps Duration = 16666667 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: Running with following settings:
Camera index = 0
Camera mode = 2
Output Stream W = 1920 H = 1080
seconds to Run = 10
Frame Rate = 29.999999
GST_ARGUS: Setup Complete, Starting captures for 10 seconds
GST_ARGUS: Starting repeat capture requests.
CONSUMER: Producer has connected; continuing.
Redistribute latency…
GST_ARGUS: Cleaning up
CONSUMER: Done Success
GST_ARGUS: Done Success
Got EOS from element “pipeline0”.
EOS received - stopping pipeline…
Execution ended after 0:00:10.199342174
Setting pipeline to NULL …
Freeing pipeline …
jetson@3rditech-desktop:~/jetson$ gst-launch-1.0 -e nvarguscamerasrc sensor-id=0 timeout=10 ! “video/x-raw(memory:NVMM),width=1920,height=1080,framerate=29/1” ! nvvidconv ! video/x-raw,format=I420 ! x264enc bitrate=2000 speed-preset=ultrafast ! h264parse ! mp4mux ! filesink location=cam0.mp4
Setting pipeline to PAUSED …
Pipeline is live and does not need PREROLL …
Pipeline is PREROLLED …
Setting pipeline to PLAYING …
New clock: GstSystemClock
Redistribute latency…
GST_ARGUS: Creating output stream
CONSUMER: Waiting until producer is connected…
GST_ARGUS: Available Sensor modes :
GST_ARGUS: 3280 x 2464 FR = 21.000000 fps Duration = 47619048 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: 3280 x 1848 FR = 28.000001 fps Duration = 35714284 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: 1920 x 1080 FR = 29.999999 fps Duration = 33333334 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: 1640 x 1232 FR = 29.999999 fps Duration = 33333334 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: 1280 x 720 FR = 59.999999 fps Duration = 16666667 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: Running with following settings:
Camera index = 0
Camera mode = 2
Output Stream W = 1920 H = 1080
seconds to Run = 10
Frame Rate = 29.999999
GST_ARGUS: Setup Complete, Starting captures for 10 seconds
GST_ARGUS: Starting repeat capture requests.
CONSUMER: Producer has connected; continuing.
Redistribute latency…
GST_ARGUS: Cleaning up
CONSUMER: Done Success
Got EOS from element “pipeline0”.
EOS received - stopping pipeline…
Execution ended after 0:00:10.115591541
Setting pipeline to NULL …
GST_ARGUS: Done Success
Freeing pipeline …
jetson@3rditech-desktop:~/jetson$ gst-launch-1.0 -e nvarguscamerasrc sensor-id=0 timeout=10 ! “video/x-raw(memory:NVMM),width=1920,height=1080,framerate=29/1” ! nvvidconv ! video/x-raw,format=I420 ! x264enc bitrate=2000 speed-preset=ultrafast ! h264parse ! mp4mux ! filesink location=cam1.mp4
Setting pipeline to PAUSED …
Pipeline is live and does not need PREROLL …
Pipeline is PREROLLED …
Setting pipeline to PLAYING …
New clock: GstSystemClock
Redistribute latency…
GST_ARGUS: Creating output stream
CONSUMER: Waiting until producer is connected…
GST_ARGUS: Available Sensor modes :
GST_ARGUS: 3280 x 2464 FR = 21.000000 fps Duration = 47619048 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: 3280 x 1848 FR = 28.000001 fps Duration = 35714284 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: 1920 x 1080 FR = 29.999999 fps Duration = 33333334 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: 1640 x 1232 FR = 29.999999 fps Duration = 33333334 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: 1280 x 720 FR = 59.999999 fps Duration = 16666667 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: Running with following settings:
Camera index = 0
Camera mode = 2
Output Stream W = 1920 H = 1080
seconds to Run = 10
Frame Rate = 29.999999
GST_ARGUS: Setup Complete, Starting captures for 10 seconds
GST_ARGUS: Starting repeat capture requests.
CONSUMER: Producer has connected; continuing.
nvbuf_utils: dmabuf_fd -1 mapped entry NOT found
Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, threadExecute:734 NvBufSurfaceFromFd Failed.
Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, threadFunction:245 (propagating)
Redistribute latency…
Got EOS from element “pipeline0”.
EOS received - stopping pipeline…
Execution ended after 0:00:04.024875729
Setting pipeline to NULL …
GST_ARGUS: Cleaning up
GST_ARGUS: Done Success
Freeing pipeline …

Replace the attached file to try.

libnvargus_socketserver.so.36.4 (2.6 MB)
libnvargus.so.36.4 (1.3 MB)

I have one another observation that, when I try to change file sink name immedialty this error is thrown until then it is working fine sometimes.

jetson@3rditech-desktop:~/jetson$ gst-launch-1.0 -e nvarguscamerasrc sensor-id=1 timeout=10 ! “video/x-raw(memory:NVMM),width=1920,height=1080,framerate=29/1” ! nvvidconv ! video/x-raw,format=I420 ! x264enc bitrate=2000 speed-preset=ultrafast ! h264parse ! mp4mux ! filesink location=cam1.mp4
Setting pipeline to PAUSED …
Pipeline is live and does not need PREROLL …
Pipeline is PREROLLED …
Setting pipeline to PLAYING …
New clock: GstSystemClock
Redistribute latency…
GST_ARGUS: Creating output stream
CONSUMER: Waiting until producer is connected…
GST_ARGUS: Available Sensor modes :
GST_ARGUS: 3280 x 2464 FR = 21.000000 fps Duration = 47619048 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: 3280 x 1848 FR = 28.000001 fps Duration = 35714284 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: 1920 x 1080 FR = 29.999999 fps Duration = 33333334 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: 1640 x 1232 FR = 29.999999 fps Duration = 33333334 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: 1280 x 720 FR = 59.999999 fps Duration = 16666667 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: Running with following settings:
Camera index = 1
Camera mode = 2
Output Stream W = 1920 H = 1080
seconds to Run = 10
Frame Rate = 29.999999
GST_ARGUS: Setup Complete, Starting captures for 10 seconds
GST_ARGUS: Starting repeat capture requests.
CONSUMER: Producer has connected; continuing.
Redistribute latency…
GST_ARGUS: Cleaning up
CONSUMER: Done Success
Got EOS from element “pipeline0”.
EOS received - stopping pipeline…
Execution ended after 0:00:10.111339462
Setting pipeline to NULL …
GST_ARGUS: Done Success
Freeing pipeline …
jetson@3rditech-desktop:~/jetson$ gst-launch-1.0 -e nvarguscamerasrc sensor-id=1 timeout=10 ! “video/x-raw(memory:NVMM),width=1920,height=1080,framerate=29/1” ! nvvidconv ! video/x-raw,format=I420 ! x264enc bitrate=2000 speed-preset=ultrafast ! h264parse ! mp4mux ! filesink location=cam1_0.mp4
Setting pipeline to PAUSED …
Pipeline is live and does not need PREROLL …
Pipeline is PREROLLED …
Setting pipeline to PLAYING …
New clock: GstSystemClock
Redistribute latency…
GST_ARGUS: Creating output stream
CONSUMER: Waiting until producer is connected…
GST_ARGUS: Available Sensor modes :
GST_ARGUS: 3280 x 2464 FR = 21.000000 fps Duration = 47619048 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: 3280 x 1848 FR = 28.000001 fps Duration = 35714284 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: 1920 x 1080 FR = 29.999999 fps Duration = 33333334 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: 1640 x 1232 FR = 29.999999 fps Duration = 33333334 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: 1280 x 720 FR = 59.999999 fps Duration = 16666667 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: Running with following settings:
Camera index = 1
Camera mode = 2
Output Stream W = 1920 H = 1080
seconds to Run = 10
Frame Rate = 29.999999
GST_ARGUS: Setup Complete, Starting captures for 10 seconds
GST_ARGUS: Starting repeat capture requests.
CONSUMER: Producer has connected; continuing.
nvbuf_utils: dmabuf_fd -1 mapped entry NOT found
Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, threadExecute:734 NvBufSurfaceFromFd Failed.
Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, threadFunction:245 (propagating)
Redistribute latency…
Got EOS from element “pipeline0”.
EOS received - stopping pipeline…
Execution ended after 0:00:04.024159958
Setting pipeline to NULL …
GST_ARGUS: Cleaning up
GST_ARGUS: Done Success
Freeing pipeline …

I could see only these are available

/usr/lib/aarch64-linux-gnu/nvidia/libnvargus.so
/usr/lib/aarch64-linux-gnu/nvidia/libnvargus_socketserver.so

Can I rename it to these ?

Yes, replace them by attached files.

Now for sensor id 1 it worked for 5 times continuously , for sensor ide 0 it worked for 32 times.

After that I need to reboot to make it work.

jetson@3rditech-desktop:~/jetson$ gst-launch-1.0 -e nvarguscamerasrc sensor-id=1 timeout=10 ! “video/x-raw(memory:NVMM),width=1920,height=1080,framerate=29/1” ! nvvidconv ! video/x-raw,format=I420 ! x264enc bitrate=2000 speed-preset=ultrafast ! h264parse ! mp4mux ! filesink location=cam1_6.mp4
Setting pipeline to PAUSED …
Pipeline is live and does not need PREROLL …
Pipeline is PREROLLED …
Setting pipeline to PLAYING …
New clock: GstSystemClock
Redistribute latency…
GST_ARGUS: Creating output stream
CONSUMER: Waiting until producer is connected…
GST_ARGUS: Available Sensor modes :
GST_ARGUS: 3280 x 2464 FR = 21.000000 fps Duration = 47619048 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: 3280 x 1848 FR = 28.000001 fps Duration = 35714284 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: 1920 x 1080 FR = 29.999999 fps Duration = 33333334 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: 1640 x 1232 FR = 29.999999 fps Duration = 33333334 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: 1280 x 720 FR = 59.999999 fps Duration = 16666667 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: Running with following settings:
Camera index = 1
Camera mode = 2
Output Stream W = 1920 H = 1080
seconds to Run = 10
Frame Rate = 29.999999
GST_ARGUS: Setup Complete, Starting captures for 10 seconds
GST_ARGUS: Starting repeat capture requests.
CONSUMER: Producer has connected; continuing.
nvbuf_utils: dmabuf_fd -1 mapped entry NOT found
Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, threadExecute:734 NvBufSurfaceFromFd Failed.
Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, threadFunction:245 (propagating)
Redistribute latency…
Got EOS from element “pipeline0”.
EOS received - stopping pipeline…
Execution ended after 0:00:04.027671186
Setting pipeline to NULL …
GST_ARGUS: Cleaning up
GST_ARGUS: Done Success
Freeing pipeline …
jetson@3rditech-desktop:~/jetson$

jetson@3rditech-desktop:~/jetson$ gst-launch-1.0 -e nvarguscamerasrc sensor-id=0 timeout=10 ! “video/x-raw(memory:NVMM),width=1920,height=1080,framerate=29/1” ! nvvidconv ! video/x-raw,format=I420 ! x264enc bitrate=2000 speed-preset=ultrafast ! h264parse ! mp4mux ! filesink location=cam0_3.mp4
Setting pipeline to PAUSED …
Pipeline is live and does not need PREROLL …
Pipeline is PREROLLED …
Setting pipeline to PLAYING …
New clock: GstSystemClock
Redistribute latency…
GST_ARGUS: Creating output stream
CONSUMER: Waiting until producer is connected…
GST_ARGUS: Available Sensor modes :
GST_ARGUS: 3280 x 2464 FR = 21.000000 fps Duration = 47619048 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: 3280 x 1848 FR = 28.000001 fps Duration = 35714284 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: 1920 x 1080 FR = 29.999999 fps Duration = 33333334 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: 1640 x 1232 FR = 29.999999 fps Duration = 33333334 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: 1280 x 720 FR = 59.999999 fps Duration = 16666667 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: Running with following settings:
Camera index = 0
Camera mode = 2
Output Stream W = 1920 H = 1080
seconds to Run = 10
Frame Rate = 29.999999
GST_ARGUS: Setup Complete, Starting captures for 10 seconds
GST_ARGUS: Starting repeat capture requests.
CONSUMER: Producer has connected; continuing.
nvbuf_utils: dmabuf_fd -1 mapped entry NOT found
Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, threadExecute:734 NvBufSurfaceFromFd Failed.
Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, threadFunction:245 (propagating)
Redistribute latency…
Got EOS from element “pipeline0”.
EOS received - stopping pipeline…
Execution ended after 0:00:04.023228216
Setting pipeline to NULL …
GST_ARGUS: Cleaning up
GST_ARGUS: Done Success
Freeing pipeline …

Could you verify by fakesink like below command.

gst-launch-1.0 nvarguscamerasrc ! 'video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080' ! nvvidconv ! fpsdisplaysink video-sink=fakesink -v

This one works fine

Confirm by below command.

gst-launch-1.0 -e nvarguscamerasrc sensor-id=0 timeout=10 ! 'video/x-raw(memory:NVMM),width=1920,height=1080,framerate=29/1' ! nvvidconv ! video/x-raw,format=I420 ! x264enc bitrate=2000 speed-preset=ultrafast ! h264parse ! fakesink -v

This one also works well

Try qtmux

gst-launch-1.0 -e nvarguscamerasrc sensor-id=0 timeout=10 ! 'video/x-raw(memory:NVMM),width=1920,height=1080,framerate=29/1' ! nvvidconv ! video/x-raw,format=I420 ! x264enc bitrate=2000 speed-preset=ultrafast ! h264parse ! h264parse ! qtmux ! filesink location=t.mp4

This one also not working after 3 times

/jetson$ gst-launch-1.0 -e nvarguscamerasrc sensor-id=0 timeout=10 ! ‘video/x-raw(memory:NVMM),width=1920,height=1080,framerate=29/1’ ! nvvidconv ! video/x-raw,format=I420 ! x264enc bitrate=2000 speed-preset=ultrafast ! h264parse ! h264parse ! qtmux ! filesink location=t0_3.mp4
Setting pipeline to PAUSED …
Pipeline is live and does not need PREROLL …
Pipeline is PREROLLED …
Setting pipeline to PLAYING …
New clock: GstSystemClock
Redistribute latency…
GST_ARGUS: Creating output stream
CONSUMER: Waiting until producer is connected…
GST_ARGUS: Available Sensor modes :
GST_ARGUS: 3280 x 2464 FR = 21.000000 fps Duration = 47619048 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: 3280 x 1848 FR = 28.000001 fps Duration = 35714284 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: 1920 x 1080 FR = 29.999999 fps Duration = 33333334 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: 1640 x 1232 FR = 29.999999 fps Duration = 33333334 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: 1280 x 720 FR = 59.999999 fps Duration = 16666667 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: Running with following settings:
Camera index = 0
Camera mode = 2
Output Stream W = 1920 H = 1080
seconds to Run = 10
Frame Rate = 29.999999
GST_ARGUS: Setup Complete, Starting captures for 10 seconds
GST_ARGUS: Starting repeat capture requests.
CONSUMER: Producer has connected; continuing.
nvbuf_utils: dmabuf_fd -1 mapped entry NOT found
Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, threadExecute:734 NvBufSurfaceFromFd Failed.
Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, threadFunction:245 (propagating)
Redistribute latency…
Got EOS from element “pipeline0”.
EOS received - stopping pipeline…
Execution ended after 0:00:04.025642063
Setting pipeline to NULL …
GST_ARGUS: Cleaning up
GST_ARGUS: Done Success
Freeing pipeline …
jetson@3rditech-desktop:~/jetson$

I run this command more than 10 times without problem.

Try changing something in the pipeline , like example remove speed parameter and see

Any input on this?

Remove the “speed-preset=ultrafast” without problem to run more than 10 times. I run with IMX477 thought.

But for me it is not working second time always, anyway to debug this?

Try restart the nvargus-daemon if help on it.

gst-launch-1.0 -e nvarguscamerasrc sensor-id=0 timeout=10 ! 'video/x-raw(memory:NVMM),width=1920,height=1080,framerate=29/1' ! nvvidconv ! video/x-raw,format=I420 ! x264enc bitrate=2000 speed-preset=ultrafast ! h264parse ! h264parse ! qtmux ! filesink location=t.mp4

sudo service nvargus-daemon restart

gst-launch-1.0 -e nvarguscamerasrc sensor-id=0 timeout=10 ! 'video/x-raw(memory:NVMM),width=1920,height=1080,framerate=29/1' ! nvvidconv ! video/x-raw,format=I420 ! x264enc bitrate=2000 speed-preset=ultrafast ! h264parse ! h264parse ! qtmux ! filesink location=t.mp4