you cannot access the same sensor stream with v4l2-ctl and gstreamer command simultaneously.
please enable fpsdisplaysink plugin to shows frame-rate in the gstreamer pipeline.
for example,
Thanks for the information. We are working with L4T 32.4.2.
Can you suggest best method to test patches suggested for solving v4l2 subsystem crash on fauty preview here ?
Issue :
a. I successfully previewed a CSI capture using - $ gst-launch-1.0 nvarguscamerasrc sensor_id=1 ! ‘video/x-raw(memory:NVMM),width=3820, height=2464, framerate=21/1, format=NV12’ ! nvvidconv flip-method=0 ! ‘video/x-raw,width=960, height=616’ ! nvvidconv ! nvegltransform ! nveglglessink -e
b. Simultaneously ran preview for sensor_id = 0.
c. On disconnecting CSI camera /dev/video1 and retrying preview error log from dmesg -wH is attached.
d. Thereafter no CSI-preview or capture worked.
may I know what’s the exactly step while you disconnect the camera sensor, are you actually remove camera hardware to disconnect it physically?
BTW, I’m not able to access the logs.
Yes you’re correct I actually disconnect the camera(module supports Hotplug) and try previewing from the same, which gives me this log : v4l2_crash (14.7 KB)
All I want to fix is handling v4l2 crash, when we run faulty preview on non-existing camera, so that the existing ones should work asusual.
I would suggest you moving to the latest JetPack SDK, JetPack-4.5 is the latest production release, supporting all Jetson modules.
there’s error handling mechanism added to r32.5, which should able to support your use-case.
thanks