Monday, May 25, 2009
record your webcam with ffmpeg-svn
"1st just the video" for a quick test
$
./ffmpeg -f video4linux -s 352x288 -r 30000/1001 -i /dev/video0 -sameq
-aspect 4:3 -f avi -vcodec msmpeg4 -r 30000/1001 -y tvffmpeg.avi
======================
this codec only works with the ffmpeg-svn that i compiled.
because DEBIAN can be so stupid some times and not to include extra codecs........
/////////////////////////////////////////////////
/////////------- sound
no try the recording with a 3.5mm mic......
===============
" with your sound this time...."
" using -f oss -i /dev/dsp \ "
==============
now with audio
$
./ffmpeg-svn -f oss -i /dev/dsp \
-f video4linux -s 352x288 -r 30000/1001 -i /dev/video0 \
-sameq -aspect 4:3 -f avi -vcodec msmpeg4 -r 30000/1001 -y tvffmpeg--msmpeg-with-sound.avi
-------------------------------------
////////////////////////
/////---- AND NOW you can " TEST " acodec mp3
$
./ffmpeg-svn -f oss -i /dev/dsp -acodec mp3 \
-f video4linux -s 352x288 -r 30000/1001 -i /dev/video0 \
-sameq -aspect 4:3 -f avi -vcodec msmpeg4 -r 30000/1001 -y tvffmpeg--msmpeg-with-mp3sound.avi
#//////////////////////////
#/////////////////////////
#///////////////////////
#////////////////////
#/////////////////
#/////////////
#////////
# last a low quality format for a smal file this time.
$
./ffmpeg-svn -f oss -i /dev/dsp -acodec mp3 \
-f video4linux -s 352x288 -r 30000/1001 -i /dev/video0 \
-qmin 4 -qmax 4 -b 500 \
-aspect 4:3 -f avi -vcodec msmpeg4 -r 30000/1001 -y tvffmpeg--msmpeg-with-mp3sound-q4.avi
Labels:
5moy2009,
ffmpeg,
ffmpeg-svn,
LINUX,
webcam
No comments:
Post a Comment