在我的覆盆子皮上我安装了ffmpeg。在开始时我键入
uv4l --driver raspicam --auto-video_nr --width 640 --height 480 --encoding jpeg跑开司机。然后我检查是否注册了devoce0:
ls -la /dev/video*它返回video0,所以它是注册的。然后输入命令来运行服务器:
ffmpeg -v verbose -r 5 -s 640x480 -f video4linux2 -i /dev/video0 http://localhost/webcam.ffm相机亮了一会儿,然后关掉,我就会出错,就像这样:
[video4linux2, v4l2] mmap: No such device /dev/video0: No such device我该怎么办才能解决这个问题?它看起来像是内部错误--其中一个库。
此命令工作如下:
uv4l --driver raspicam --auto-video_nr --encoding h264 --width 640 --height 480 --enable-server on发布于 2018-01-02 17:16:04
尝试在文件/etc/modules的底部添加以下行并重新启动Raspberry。
bcm2835-v4l2我的现在看起来像这样
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
bcm2835-v4l2这将确保在随后的所有重新启动时加载BroadcomVisualforLinux2 (v4l2)驱动程序。
https://stackoverflow.com/questions/48035955
复制相似问题