Gentoo Archives: gentoo-user

From: Walter Dnes <waltdnes@××××××××.org>
To: Gentoo Users List <gentoo-user@l.g.o>
Subject: [gentoo-user] Questions about recording webcam+mic on netbook
Date: Fri, 05 Oct 2012 07:21:46
Message-Id: 20121005071946.GA1248@waltdnes.org
I'm getting really ambitious with my 3-year-old Acer netbook, now that
open source Poulsbo video support exists.  After tweaking the kernel,
I've got the webcam+mic recording with the command...

ffmpeg -y -f alsa -i plughw:0,0 -f video4linux2 -i /dev/video0 -f avi -vcodec mpeg4 output.avi

mplayer plays the output file fine with the command...

mplayer -vo x11 output.avi

  Any suggestions for better options?  Would x264 be an improvement?  Is
there a way for the video to be displayed on the screen as it's being
recorded?  Should I be looking at a program other than ffmpeg?  BTW,
here is output from "emerge -pv ffmpeg mplayer" in case anybody has
ideas for improvements in my USE flags...


[ebuild   R    ] media-video/ffmpeg-0.10.3  USE="X aac alsa bzip2 encode faac libv4l mmx mp3 oss ssse3 theora threads truetype v4l vorbis x264 zlib -3dnow -3dnowext -aacplus (-altivec) -amr -avx -bindist -cdio (-celt) -cpudetection -debug -dirac -doc -frei0r -gnutls -gsm -hardcoded-tables -ieee1394 -jack -jpeg2k -libass -mmxext -modplug (-neon) -network -openal -openssl -pic -pulseaudio -rtmp -schroedinger -sdl -speex -static-libs -test -vaapi -vdpau (-vis) -vpx -xvid" FFTOOLS="-aviocat -cws2fws -ffeval -graph2dot -ismindex -pktdumper -qt-faststart -trasher" 0 kB

[ebuild   R    ] media-video/mplayer-1.0_rc4_p20110322-r1  USE="X a52 alsa dts encode faac faad gif jpeg mmx mng mp3 opengl png real sse sse2 ssse3 theora truetype v4l vorbis win32codecs x264 xv -3dnow -3dnowext -aalib (-altivec) -amr (-aqua) -bidi -bindist -bl -bluray -bs2b -cddb -cdio -cdparanoia -cpudetection -custom-cpuopts -debug -dga -dirac -directfb -doc -dv -dvb -dvd -dvdnav -dxr3 -enca -fbcon -ftp -ggi -gsm -iconv -ipv6 -jack -joystick -jpeg2k -ladspa -libass -libcaca -libmpeg2 -lirc -live -lzo -mad -md5sum -mmxext -mpg123 -nas -network -nut -openal -osdmenu -oss -pnm -pulseaudio -pvr -quicktime -radio -rar -rtc -rtmp -samba -schroedinger -sdl -shm -speex -tga -toolame -tremor -twolame -unicode -vdpau -vidix -vpx -xanim -xinerama -xscreensaver -xvid -xvmc -zoran" VIDEO_CARDS="-mga -s3virge -tdfx -vesa" 0 kB

-- 
Walter Dnes <waltdnes@××××××××.org>
I don't run "desktop environments"; I run useful applications

Replies

Subject Author
Re: [gentoo-user] Questions about recording webcam+mic on netbook Michael Mol <mikemol@×××××.com>
[gentoo-user] Re: Questions about recording webcam+mic on netbook James <wireless@×××××××××××.com>