HowTo Compile and Use xvidcap

Compile gvidcap !

Get the last stable source code archive on xvidcap Sourceforge project page or download it from the CVS:

cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/xvidcap co -P xvidcap

Install required dependencies:

urpmi gcc automake libgtk+2-devel ffmpeg-devel liblame0-devel

Dirty compile:

make distclean [optional]
CPPFLAGS=-I/usr/include/ffmpeg LDFLAGS=-L/usr/bin/ffmpeg
./configure --with-gtk2 --with-forced-embedded-ffmpeg && make gvidcap
make gvidcap
make install [optional]

Quick test:

./src/gvidcap &

Use gvidcap !

Raw capture:

gvidcap --gui no -v --file ~/img_%04d.xwd --frames 0 --fps 10 --cap_geometry 1024x768+0+0

The following can be used but it slow down the machine (png compression require too cpu):

gvidcap --gui no -v --compress 9 --file ~/img_%04d.png --frames 0 --fps 10 --cap_geometry 1024x728+0+0

Convert .xwd images to .png images because mplayer only support .png, .jpg, .tga and .sgi image file format:

convert img_*.xwd img_%04d.png && rm -rf ./*.xwd

Preview the video:

mplayer "mf://*.png" -mf fps=10

Make a video from successive screenshots:

mencoder "mf://*.png" -mf fps=10 -ovc lavc -o ./video.avi

Documentation:

One thought on “HowTo Compile and Use xvidcap

  1. Pingback: Old Site to Blog: Merge in Progress at Coolkevmen

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Notify me of followup comments via e-mail. You can also subscribe without commenting.