ここを参考にPepoLinuxへffmpegをインストールしてみた
[root@ ~]# wget http://dag.wieers.com/packages/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
[root@ ~]# rpm -Uvh rpmforge-release-0.3.6-1.el5.rf.i386.rpm
[root@ ~]# rm rpmforge-release-0.3.6-1.el5.rf.i386.rpm
[root@ ~]# yum --enablerepo=rpmforge install -y ffmpeg
でもってUSBカメラを接続
[root@ ~]# tail /var/log/messages
Jun 2 21:26:57 (none) kernel: usb 1-1: USB disconnect, device number 3
Jun 2 21:27:06 (none) kernel: usb 1-1: new high-speed USB device number 4 using ehci_hcd
Jun 2 21:27:06 (none) kernel: usb 1-1: New USB device found, idVendor=056e, idProduct=700a
Jun 2 21:27:06 (none) kernel: usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Jun 2 21:27:06 (none) kernel: usb 1-1: Product: Venus USB2.0 Camera
Jun 2 21:27:06 (none) kernel: usb 1-1: Manufacturer: Vimicro Corp.
Jun 2 21:27:06 (none) kernel: uvcvideo: Found UVC 1.00 device Venus USB2.0 Camera (056e:700a)
Jun 2 21:27:06 (none) kernel: input: Venus USB2.0 Camera as /devices/pci0000:00/0000:00:11.0/0000:02:04.0/usb1/1-1/1-1:1.0/input/input5
ログからカメラを認識したところで画像をjpegモードでゲット
[root@ ~]# ffmpeg -f video4linux2 -s 640x480 -i /dev/video0 -y test.jpeg
ちなみに
[root@ ~]# ffmpeg -t 5 -f video4linux2 -s 640x480 -i /dev/video0 -y test.mpeg
とやればmpegファイルも取得できる
pepoと