I've been playing with webcams using mencoder for a while, but now I need (2 cams at once) to try ffmpeg.
I've downloaded the SVN and built it with the following flags:
$ ./configure --extra-ldflags=-L/usr/X11R6/lib --enable-x11grab --enable-gpl
I believe it works because I can do the following ok:
$ ffmpeg -t 10 -s 1024x768 -f x11grab -i :0.0 out.mpgout.mpg
Next (or first) I try:
ffmpeg -t 5 -i /dev/dsp -f video4linux -i /dev/video0 -s 352x288 out2.mpg
It tries to start but just does nothing (but ctrl-c exits cleanly), here's the session:
$ ffmpeg -t 5 -i /dev/dsp -f video4linux -i /dev/video0 -s 352x288 out2.mpg
FFmpeg version SVN-r8169, Copyright (c) 2000-2007 Fabrice Bellard, et al.
configuration: --extra-ldflags=-L/usr/X11R6/lib --enable-x11grab --enable-gpl
libavutil version: 49.3.0
libavcodec version: 51.35.0
libavformat version: 51.10.0
built on Mar 1 2007 14:59:56, gcc: 4.0.2 20051125 (Red Hat 4.0.2-8)
No matter how long I wait, nowt happens!
I believe v4l is set up alright because I can do:
mencoder -tv driver=v4l:width=352:height=288:device=/dev/video0 -ovc lavc -lavcopts vcodec=mpeg4 -endpos 5 -o vid0.avi tv://
- At some point I uncommented my devices in 'v4l.conf', which is what made it work with mencoder / mplayer and SCANIMAGE.
- Also this is the output from dmesg (after running ffmpeg):
/x/x/x/gspcav1-20060925/gspca_core.c: [spca5xx_set_light_freq:1851] Sensor currently not support light frequency banding filters.
Anybody got any ideas please???