I have a uv4l server set up on my raspi which is serving a no-name webcam. It is using the uvc driver. The server built-in web page mostly works. I can stream webrtc from the pi to my laptop browser, however the mjpeg button brings up a broken-image icon.
Most importantly, no urls seem to work directly from the server, such as http://raspberrypi:8080/stream/video.mjpeg.
Using the chrome inspection window on that url I can see a return of 200 but the server then closes the connection. VLC is unable to open the connection either.
This is my uv4l command ...
/usr/bin/uv4l -k --sched-rr --mem-lock --config-file=/etc/uv4l/uv4l-uvc.conf \
--driver uvc --driver-config-file=/etc/uv4l/uv4l-uvc.conf \
--server-option=--editable-config-file=/etc/uv4l/uv4l-uvc.conf \
--device-id=1908:2310
Any ideas?
One possible reason is that your UVC-based webcam does not support the
MJPEG
video format natively so you get a blank page fromUV4L
. As an alternative to theuv4l-uvc
userspace driver, you can tellUV4L
to make use of theuvcvideo
kernel driver. For example, supposinguvcvideo
creates/dev/video0
, the commands would be something like:However, if
uvcvideo
does not provideMJPEG
either your problem would still remain.