mpromonet / v4l2rtspserver

RTSP Server for V4L2 device capture supporting HEVC/H264/JPEG/VP8/VP9
The Unlicense
1.86k stars 428 forks source link

Cannot open dev/video0 mjpegstream #165

Closed JeffIPV closed 4 years ago

JeffIPV commented 4 years ago

I am successfully able to add a mjpeg stream by uv4l. But am struggling to make the rtsp stream. What am I doing wrong? I thought vl42rtspstreamer works with jpeg?

pi@iot:~ $ uv4l --driver mjpegstream --auto-video_nr --uri "http://127.0.0.1/api/gfx/stream.jpg" --server-option=--port=80

[core] Trying to loading driver 'mjpegstream' from built-in drivers... [core] Loading driver 'mjpegstream' from external plug-in's... [core] Device detected! [core] Registering device node /dev/video0 pi@iot:~ $ ls -ltrh /dev/video* crw-rw-rw- 1 root video 243, 0 Dec 12 13:32 /dev/video0 pi@iot:~ $ v4l2rtspserver /dev/video0 log level:500 [NOTICE] /home/pi/v4l2rtspserver/src/main.cpp:607 Create V4L2 Source.../dev/video0 [ERROR] /home/pi/v4l2rtspserver/v4l2wrapper/src/V4l2Device.cpp:91 Cannot open device:/dev/video0 Input/output error [ERROR] /home/pi/v4l2rtspserver/v4l2wrapper/src/V4l2Device.cpp:74 Cannot init device:/dev/video0 [NOTICE] /home/pi/v4l2rtspserver/v4l2wrapper/src/V4l2MmapDevice.cpp:141 VIDIOC_STREAMOFF: Bad file descriptor VIDIOC_REQBUFS: Bad file descriptor Device /dev/video0pi@iot:~ $