How to capture video from device

Install mplayer on Fedora Core 3

mplayer-1.0-0.14.pre6a.tar.gz

Icons are in /usr/share/mplayer/Skin/default/icons, in the event you make a launcher

 

Fedora Core 3

Connect your Video Camera and turn it on (but do not press play)

Don't care about any errors
>mknod -m 666 /dev/video1394/0 c 171 16
>mknod -m 666 /dev/raw1394 c 171 0

>rpm -i gscanbus-0.7.1-1.rhfc2.ccrma.i386.rpm

>modprobe raw1394

Use gscanbus to find the camera's GUID (let the window opened)
>gscanbus &

 
One shot to capture and compress

>mkfifo mona.avi
>gzip < mona.avi > mona.avi.gz &
>dvgrab --format dv2 --guid 0x0080458020AAF0AF --noavc - > mona.avi

Autoplay is not issued when --noavc

Simple capture to file

>dvgrab --format dv2 --guid 0x0080458020AAF0AF --noavc mona

One shot to unzip, encode and view (require a very fast cpu, my 2.66GHz Pentium 4 is a bit slow)
-mona.avi.gz is your avi file compressed
mkfifo -m777 a.avi
gunzip -c mona.avi.gz | mencoder -oac mp3lame -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=16000 -ofps 25 -o a.avi -cache 8192 - &
mplayer -cache 8192 a.avi


Press play on the gscanbus window (should be the same as press
play directly on the video camera but somethimes I get errors)

You may also put you camera in capture mode without cassette inside.


Once done press stop and Ctrl-C on dvgrab

 

CONVERT VIDEO TYPES
Suppose:
-mona001.avi, Raw source file grabbed directly from video camera
Once you installed mplayer(see above), you can use:
Generate a DIVX at maximum definition and mp3 as audio track
mencoder -oac mp3lame -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=16000 -ofps 25 -o out.avi mona001.avi

Extract only the audio in mp3
mencoder -oac mp3lame -o out.mp3 mona.avi -ovc frameno

Extract only the video in dvx format
mencoder -nosound -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=16000 -ofps 25 -o out.avi mona.avi
Other methods:
transcode.tar.gz install transcode rpm, the other rpm are probably required
tovid_0.18a.zip

 

Kino

kino-0.7.5-1.1.fc3.tar.gz (for Fedora Core 3)

*** Remeber to change extension in .dv to your grabbed files! Otherwise you get a "Failed to open media" ***

 

RedHat 9 Standard Edition

Connect your digital camera to your Firewire socket, place the camera in play mode, type:

take a few info with

    >lspci

    >lsmod

prode device

    >modprobe raw1394

>dvgrab --autosplit --format dv2 outfilename

press play to your camera, when done press stop, shutdown the camera, press control-c to terminate dvgrab listening

 

Try not to confuse VCD with Divx. VCD=mpeg1,DVD=mpeg2,divx=mpeg4 ( roughly )