![Logitech E2500 上的网络摄像头流无法工作](https://linux22.com/image/1341126/Logitech%20E2500%20%E4%B8%8A%E7%9A%84%E7%BD%91%E7%BB%9C%E6%91%84%E5%83%8F%E5%A4%B4%E6%B5%81%E6%97%A0%E6%B3%95%E5%B7%A5%E4%BD%9C.png)
我目前正在尝试使用 ffmpeg 在 Logitech E2500 上进行网络摄像头流媒体播放。
运行该命令会出现某种缓冲区长度错误。
pi@raspberrypi ~/ffmpeg-dmo-1.0 $ sudo /usr/sbin/webcam.sh
该脚本包含以下内容:
ffserver -f /etc/ffserver.conf & ffmpeg -v verbose -r 5 -s 320x240 -f video4linux2 -i /dev/video0 http://localhost/webcam.ffm
它给出以下输出:
ffserver version 1.0 Copyright (c) 2000-2012 the FFmpeg developersffmpeg version 1.0 Copyright (c) 2000-2012 the FFmpeg developers
built on Dec 2 2012 17:56:37 with gcc 4.6 (Debian 4.6.3-12+rpi1)
configuration:
libavutil 51. 73.101 / 51. 73.101
built on Dec 2 2012 17:56:37 with gcc 4.6 (Debian 4.6.3-12+rpi1)
configuration:
libavutil 51. 73.101 / 51. 73.101
libavcodec 54. 59.100 / 54. 59.100
libavformat 54. 29.104 / 54. 29.104
libavcodec 54. 59.100 / 54. 59.100
libavformat 54. 29.104 / 54. 29.104
libavdevice 54. 2.101 / 54. 2.101
libavfilter 3. 17.100 / 3. 17.100
libswscale 2. 1.101 / 2. 1.101
libswresample 0. 15.100 / 0. 15.100
libavdevice 54. 2.101 / 54. 2.101
libavfilter 3. 17.100 / 3. 17.100
libswscale 2. 1.101 / 2. 1.101
libswresample 0. 15.100 / 0. 15.100
[video4linux2,v4l2 @ 0x250a620] [3]Capabilities: 5000001
[video4linux2,v4l2 @ 0x250a620] The V4L2 driver changed the video from 320x240 to 320x232
[video4linux2,v4l2 @ 0x250a620] Buffer len [0] = 40960 != 74240
/dev/video0: Operation not permitted
/etc/ffserver.conf 的内容:
Port 1025
BindAddress 0.0.0.0
MaxClients 10
MaxBandwidth 50000
NoDaemon
<Feed webcam.ffm>
file /tmp/webcam.ffm
FileMaxSize 10M
</Feed>
<Stream webcam.mjpeg>
Feed webcam.ffm
Format mjpeg
VideoSize 320x240
VideoFrameRate 10
VideoBitRate 2000
VideoQMin 1
VideoQMax 10
</Stream>
这是怎么回事?我该如何解决这个问题?非常感谢您的回答。