Ok, I'm trying to stream a webcam with Arch on my Pi, but I keep getting this:
$this->bbcode_second_pass_code('', '[video4linux2,v4l2 @ 0x126620] [3]Capabilities: 5000001
[video4linux2,v4l2 @ 0x126620] The driver changed the time per frame from 1/5 to 1/30
libv4l2: error allocating conversion buffer
[video4linux2,v4l2 @ 0x126620] mmap: Cannot allocate memory
/dev/video0: Cannot allocate memory')
Here is my ffserver.conf:
$this->bbcode_second_pass_code('', 'Port 80
BindAddress 0.0.0.0
MaxClients 4
MaxBandwidth 10000
NoDaemon
<Feed webcam.ffm>
File /tmp/webcam.ffm
FileMaxSize 5M
</Feed>
<Stream status.html>
Format status
# Only allow local people to get the status
ACL allow localhost
ACL allow 192.168.0.0 192.168.255.255
</Stream>
<Stream webcam.mjpeg>
Feed webcam.ffm
Format mjpeg
VideoSize 640x480
VideoFrameRate 30
VideoBitRate 10000
VideoQMin 1
VideoQMax 10
</Stream>
')
And here is how I run ffmpeg:
$this->bbcode_second_pass_code('', 'ffmpeg -v verbose -r 5 -s 640x480 -f video4linux2 -i /dev/video0 http://localhost/webcam.ffm')
I've searched and seen all kinds of posts with this error, but no resolution. Any help would be awesome.