You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello and thanks for your wonderful software.
I've been using for a few years now with several raspi zeroes and it's been solid.
Yesterday, I ran into an issue where v4l2rtspserver stops streaming to already connected clients as well as new connections. VLC and ffplay both report timeouts. This happens when I try to use ffmpeg to capture one still frame from the same video device that v4l2rtspserver is using.
I am using v4l2loopback and v4l2copy from /dev/video0 to /dev/video2 as I would like to have two consumers of /dev/video2: v4l2rtspserver always and ffmpeg occasionally. I am running this on a bit of an exotic hardware as a proof of concept, Seagate Dockstar with an old Logitech C900 USB Camera that supports MJPG natively.
$ uname -a
Linux tv2 6.0.7-kirkwood-tld-1 #1.0 PREEMPT Fri Nov 4 15:08:17 PDT 2022 armv5tel GNU/Linux
$ dmesg | grep usb | grep UVC
[ 25.966606] usb 1-1.3: Found UVC 1.00 device <unnamed> (046d:0990)
[ 26.065923] input: UVC Camera (046d:0990) as /devices/platform/ocp@f1000000/f1050000.ehci/usb1/1-1/1-1.3/1-1.3:1.0/input/input0
$ v4l2-ctl --list-formats -d 0 /dev/video0
ioctl: VIDIOC_ENUM_FMT
Type: Video Capture
[0]: 'MJPG' (Motion-JPEG, compressed)
[1]: 'YUYV' (YUYV 4:2:2)
An important note: running the ffmpeg command doesn't always produce this error. It seems that it is a timing issue. Sometimes I have to run it a few times before it triggers the error, sometimes just once. When the error occurs I have to restart v4l2rtspserver as new client connections report timeouts. New client connections are reported in the v4l2rtspserver log but the clients report timeouts and no video streams are displayed.
Please advise and let me know if you need any more debug information.
The text was updated successfully, but these errors were encountered:
dragulesq
changed the title
v4l2rtspserver server stops streaming when grabbing a still from the same video device (using v4l2loopback and v4l2copy)
v4l2rtspserver stops streaming when grabbing a still from the same video device (using v4l2loopback and v4l2copy)
Jun 20, 2023
Hello and thanks for your wonderful software.
I've been using for a few years now with several raspi zeroes and it's been solid.
Yesterday, I ran into an issue where v4l2rtspserver stops streaming to already connected clients as well as new connections. VLC and ffplay both report timeouts. This happens when I try to use ffmpeg to capture one still frame from the same video device that v4l2rtspserver is using.
I am using v4l2loopback and v4l2copy from
/dev/video0
to/dev/video2
as I would like to have two consumers of/dev/video2
: v4l2rtspserver always and ffmpeg occasionally. I am running this on a bit of an exotic hardware as a proof of concept, Seagate Dockstar with an old Logitech C900 USB Camera that supports MJPG natively.Here is my software setup:
Here is the ffmpeg command I use to grab a still frame from
/dev/video2
:Here is the v4lrtspserver verbose output, there is the client connecting in the middle and then the error at the end:
An important note: running the ffmpeg command doesn't always produce this error. It seems that it is a timing issue. Sometimes I have to run it a few times before it triggers the error, sometimes just once. When the error occurs I have to restart v4l2rtspserver as new client connections report timeouts. New client connections are reported in the v4l2rtspserver log but the clients report timeouts and no video streams are displayed.
Please advise and let me know if you need any more debug information.
The text was updated successfully, but these errors were encountered: