-2

我在使用 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/ 如果有人知道更好更有效的方法,请告诉我

4

2 回答 2

3

我想到了。忘记安装 uv4l-server。‍♂️</p>

你可以让我知道,而不是对我投反对票:(

这条评论对我帮助最大

https://raspberrypi.stackexchange.com/questions/7446/how-can-i-stream-h-264-video-from-the-raspberry-pi-camera-module-via-a-web-serve/99626# 99626

于 2019-12-13T18:19:03.590 回答
-1

只是apt-get install uv4l-mjpegstream

于 2020-11-25T11:47:05.037 回答