dvgrab
Your first capture
Lets continue our journey by trying to grab some of the actual data that's
on your Tape / or Live from the Camera.
I used dvgrab for this task.
http://www.schirmacher.de/arne/dvgrab/
I downloaded the dvgrab-1.1b2.tar.gz tarball,
tar -vzxf dvgrab-1.1b2.tar.gz
cd dvgrab-1.1b2
./configure
make
su -
checkinstall |
[sdog@localhost sdog]$ dvgrab
Usage: dvgrab [options] [file]
Try dvgrab --help for more information |
Now for your first capture:
[root@localhost tmp]#dvgrab --format dv2 --frames 25 myfirstcapture
[root@localhost howto]# file myfirstcapture001.avi
mysecondcapture001.avi: RIFF (little-endian) data, AVI |
This command is equal to dvgrab --format dv1 --frames 25 myfirstcapture
Congratulations, you have created your first 25 frames capture.
But how do you replay this capture ?
First Lets quickly do a second one , and a third one ;)
[root@localhost tmp]#dvgrab --format raw --frames 25 mysecondcapture
[root@localhost tmp]# file mysecondcapture.dv
mysecondcapture.dv: DIF (DV) movie file (PAL) |
Libdv
http://libdv.sourceforge.net/
is the place to be for Libdv, the sourceforge page has RPM's for this
package, so why not give em a try ..
As root,
[root@localhost sdog]# rpm -vih libdv-devel-0.98-1.i586.rpm
libdv-0.98-1.i586.rpm
Preparing... ########################################### [100%]
1:libdv ########################################### [ 50%]
2:libdv-devel ########################################### [100%]
[root@localhost sdog]# |
Alternatively
tar -vxzf libdv-0.98.tar.gz
cd libdv-0.98
./configure
make
su -
checkinstall |
Ok, you successfully installed libdv, now you can play your third
capture.
playdv mysecondcapture.dv |
You should see the capture you just made with.
However the raw DV format isn't that easy to handle.
Mplayer
MPlayer is a movie player for LINUX (runs on many other Unices, and
non-x86
CPUs, see the documentation). It plays most MPEG, VOB, AVI, VIVO, ASF/WMV,
QT/MOV, FLI, NuppelVideo, yuv4mpeg, FILM, RoQ, OGG and some RealMedia files,
supported by many native, XAnim, and Win32 DLL codecs
http://www.mplayerhq.hu/homepage/dload.html
is be the tool we need to be able to view more different formats, and convert
them to even more different file types.
Mplayer will be able to play both your recordings.
mplayer myfirstcapture001.avi -vo x11
mplayer mysecondcapture.dv -vo x11 |
Converting your captured files
https://sourceforge.net/projects/dv2jpg/
contains a nifty tool that converts the raw DV you just created to an avi
that most people can see.
Actually I didn't succeed in in compiling dv2jpg myself, however it's
delivered in binary form. I just copied it to /usr/local/bin
[root@localhost howto]# dv2jpg myfirstcapture001.avi converted.avi
reading myfirstcapture001.avi
handling indx!
handling indx!
Compressor: WHAT
fps: 25.000000
video_frames: 25
video_strn: 0
audio_bytes: 128000
audio_strn: 1
width: 720
height: 576
a_fmt: 1
a_chans: 2
a_rate: 32000
a_bits: 16
Video setup: width=352, height=240, fps=25.000000
audio setup: channels=2, rate=32000, bits=16, format=1
Copying 25 frames
frame 24
Processing audio
read 128000 this time; audio left 0 |
With the newly generated converted.avi your friends that are still stuck on the
other side can also watch your recordings.