【发布时间】:2019-12-12 23:09:30
【问题描述】:
我在使用 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/ 如果有人知道更好更有效的方法,请告诉我
【问题讨论】:
标签: raspberry-pi rtsp mjpeg v4l2 uv4l