我在用uv4l mjpegstream制作虚拟相机时遇到问题。这个mjpegstream不是相机,而是我创建的图形。
pi@iot:~ $uv4l --driver mjpegstream --auto-video_nr --verbosity=8 -f --uri "http://10.1.7.191/api/gfx/stream.jpg" --server-option=--port=80
<notice> [core] Trying to loading driver 'mjpegstream' from built-in drivers...
<notice> [core] Loading driver 'mjpegstream' from external plug-in's...
<info> [driver] Specified URI:
URI: http://10.1.7.191/api/gfx/stream.jpg
UserInfo:
Scheme: http
Host: 10.1.7.191
Port: 80
Path: /api/gfx/stream.jpg
Query:
<notice> [core] Device detected!
<notice> [core] Trying to load the the Streaming Server plug-in...
<warning> [core] libserver.so: cannot open shared object file: No such file or directory
<warning> [core] Continuing without Streaming Server...
<notice> [core] Registering device node /dev/video0
pi@iot:~ $ dd if=/dev/video0 of=snapshot.jpeg bs=11M count=1
dd: failed to open '/dev/video0': Input/output error
我这样做的全部原因是将mjpeg流转换为rtsp。我相信我应该能够轻松做到这一点。但是我的实现似乎有问题https://kevinsaye.wordpress.com/2018/10/17/making-a-rtsp-server-out-of-a-raspberry-pi-in-15-minutes-or-less/如果有人知道更好,更有效的方法,请让我知道
我知道了。忘记安装uv4l-server。 🤦♂️
您可以让我知道而不是拒绝我:(
此评论最有效地帮助了我