v4l2src: Doesn't Stop After Device Removed
This follows 777354. I have some new insights showing that this might be related to gstreamer and not the kernel.
I use two same cameras on /dev/video0
and /dev/video1
, but gstreamer only stops after /dev/video0
is disconnected.
I attach the result of GST_DEBUG="2,v4l2*:6" gst-launch-1.0 v4l2src device=/dev/video${i} ! fakesink 2> video${i}-gst.log
for i=0,1
. For video1
, I CTRL-C after 2 minutes.
video0-v4l2.txt video0-udev.txt video0-gst.log
video1-v4l2.txt video1-udev.txt video1-gst.log
ffmpeg -i /dev/video${i}
stops as intended.
Bug is still present in GStreamer 1.19.0