calin radoni's humble web presence |
homedocstoolboxabout |
Fedora Core 3 and FireWire (DV) video camera
One day I had to save some video recorded with a digital video camera. I only had the video camera, a FireWire cable and my notebook. I was a little bit confused, because I have never done it in Linux. After that I had written this short document.
Check to see if you have the following nodes: /dev/raw1394
and /dev/video1394
.
If not, let's create them by issuing the following commands:
# mknod -m660 /dev/raw1394 c 171 0 # mknod -m660 /dev/video1394 c 172 0then change the group this nodes belongs to:
# chown root:<dvusers> /dev/raw1394 # chown root:<dvusers> /dev/video1394where <dvusers> is a group of your choice.
If you want everyone to have access to these nodes, the chown
commands is not necesary
but you have to change -m660
with -m666
in the
mknod
commands.
The nodes created this way will "survive" only until the next restart. To make the nodes
permanent, in a simple way, you can add those lines to the end of the /etc/rc.d/rc.local
file.
Check to see if both raw1394
and dv1394
are loaded:
# lsmod | grep 1394If not, load them:
# /sbin/modprobe raw1394 # /sbin/modprobe dv1394
Connect your digital videocamera using the FireWire connexion.
Turn it on.
If you call dmesg
you should see something like this:
ieee1394: raw1394: /dev/raw1394 device initialized ieee1394: Node added: ID:BUS[0-00:1023] GUID[<someGuidHere>] ieee1394: Node changed: 0-00:1023 -> 0-01:1023
Fire up dvgrab
. Here are some examples:
# dvgrab --noavc foo-
starts the capture of video data from default source
disabling the use of AV/C VTR control (noavc) and store it to files foo-001.avi
,
foo-002.avi
, and so on.
# dvgrab --noavc --autoplit foo-
like previous, but cuts the data into chunks when
a new recording starts.
# dvgrab --noavc --frames 25 foo-
like the first example, but records only
25 frames (1 second for PAL video source).
man dvgrab
for more options.
Besides dvgrab, here are links to some usefull tools related to the capture and the final result:
There is a lot more to tell about making movies. I am recommending you to search the Net. One worthy "read stop" is Olexiy Tykhomyrov's article from Linux Journal, called Making Movies with Kino.
This document is copyrighted (c) 2005 by Calin Radoni. Permission is granted to copy and/or distribute this document.
No liability for the contents of this document can be accepted. Use the concepts, examples and information at your own risk. There may be errors and inaccuracies that could be damaging to your system. Proceed with caution, the author do not take any responsibility.
All copyrights are held by their respective owners, unless specifically noted otherwise. Use of a term in this document should not be regarded as affecting the validity of any trademark or service mark. Naming of particular products or brands should not be seen as endorsements.