Scheduled video capturing on GNU/Linux made easy

Daily Newsletters

Sign up to ZDNet UK's daily newsletter.

About this blog

Coretech

The open source revolution

My thoughts on why businesses and individuals need to start thinking about switching away from proprietary (and high maintenance) software like Windows, and look at open source and free software insteRead more »ad like GNU/Linux. All articles are based on real world and everyday experiences with Windows and GNU/Linux, for both business and personal use.

Do you ever have the need to capture video based on a schedule? I've written before about how I use Kino to capture video on my Linux workstation. It is a very fast, powerful, and simple to use video capturing and editing application.

But what if you want to capture video when you are not around? Recently I wanted to capture video from my external TV tuner and schedule it when I was away. Well, it's quite easy. Since I use an external TV tuner, it has an analog output that I hook to my capture device (which happens to be a Canopus ADVC-50 card, connected by firewire). Linux sees the capture card as a DV (digital video) device.

The magic is done by the utility called "dvgrab". And, as most GNU/Linux utilities come, dvgrab is simple yet provides a lot of functionality. dvgrab can capture video from any DV firewire device, provided that the Linux kernel sees it. As usual, I read the man pages for dvgrab, and found that it has a lot more options than I thought. It can capture DV video and output it not only as a raw DV file, but also supports other formats like AVI, Mpeg2, Quicktime, and more. You can specify the amount you want it to capture for until it stops, either by specifying the duration in time or frames. There are more options, just check out the man pages for yourself to read more about them.

So, in this case, all we need to do is schedule a task to run and use dvgrab to get the video. I use the Gnome desktop, so I prefer to use the "Scheduled Tasks" program which is basically a frontend for Cron and At (two scheduling applications commonly used on Linux/Unix systems). The Scheduled Tasks program is actually called "Gnome Schedule", and the package is called "gnome-schedule" on Fedora. What I particularly like about Gnome Schedule (or Scheduled Tasks) is that it is very simple to use. And, it has a nice templates feature where you can set up schedule templates, and use them to create tasks with a couple of clicks. This is great so that you don't have to keep track or memorize the commands you wish to run with it.

So, to capture with dvgrab, I added a new scheduled task, seleted the execute date/time and put in the command to run as:

dvgrab -f avi -d 01:10:00.00 ~/temp/capture/dvgrab

As you can see, I specified for the captured video to be saved in AVI format with "-f AVI". The "-d 01:10:00.00" parameter tells dvgrab to stop capturing after an hour and ten minutes. And finally, the last parameter tells dvgrab where to save the AVI file. By default, dvgrab will name its file "dvgrab001.avi" and will capture until the file is 2 GB in size, then will begin the second file and increment the number. It will keep doing this as necessary. I'm not sure why by default it uses a 2 GB file limit as most GNU/Linux filesystems can handle more than 2 GB files. But, I think there is a parameter to force it to combine everything to a single file if you wish. I should also mention that dvgrab will automatically select the default firewire capture device on your system. If you have multiple capturing devices, you may have to use the "-card" parameter to tell it which device to capture from. In Fedora, the devices show up as /dev/fw0 for the first device, /dev/fw1 as the second, and so on.

Back when I used Windows, I tried to do the same thing and had some adventures trying to find something that would work consistently and capture to an AVI file which is a standard format. I ended up using VirtualVCR which was shareware and ended up expiring on me. dvgrab is a wonderful, effective, and very simple tool, and does exactly one thing: capture video from a firewire DV source. And best of all since it's open source, there's no expiration! Great stuff, as always.

Post your comment

In order to post a comment you need to be registered and logged in.

You can also log in with Facebook. Log in or create your ZDNet UK account below

  • Login

Will not be displayed with your comment

By signing up for this service, you indicate that you agree to our Terms and Conditions and have read and understood our Privacy Policy. Questions about membership? Find the answers in the Community FAQ

Get ZDNet UK's daily newsletter

Enter your email address to sign up

ZDNet UK Live

Jake Rayson

@Andy Bolstridge > Unfortunately, we need the majority to work 9-5 And therein lies the lie. I work very hard indeed for my idleness, early starts...

43 minutes ago by Jake Rayson on The Idle Self-employed
Burn-IT

What happens when one hosting platform "acquires data" from another? If I forced the first one to remove it, who is responsible for chasing the...

6 hours ago by Burn-IT on Google picks holes in EU's 'right to be forgotten'
JohnTalich

iSpring Pro is a nice tool, that allows PowerPoint to SCORM conversion. They also have free tool, that also generates SCORM compliant courses.

10 hours ago by JohnTalich on How To Convert PowerPoint To SCORM Compliant Course
aaron.sloman

I think the answer to the question requires a deeper analysis of where the income can come from who else is now competing for it, who else will be...

18 hours ago by aaron.sloman on The three big questions about Facebook's IPO
Brent Pieczynski

Your correctness about Government websites not being compliant with their own websites is correct. Most criticism of other people takes so many...

24 hours ago by Brent Pieczynski on Privacy watchdog to chase big companies over cookie law
Kelvyn Taylor

802.11ac does promise some tricks to improve range & reliability, but not sure how these will work in practice until I get real products to play...

24 hours ago by Kelvyn Taylor via Facebook on Next-generation 802.11ac routers
mrudang009

My wife and I love our new Kindle Fire. It's lightweight, easy to use and has a great interface. The first thing I recommend anyone with a new...

1 day ago by mrudang009 on Waterstones to sell Kindles with in-store offers
mrudang009

It basically unlocks all the Android marketplace apps and unlocks the device. I am one very happy Kindle owner!

1 day ago by mrudang009 on Waterstones to sell Kindles with in-store offers
Burn-IT

Skittles with tapes and coffee cups. Old tapes so we didn't have to rewind them afterwards.

1 day ago by Burn-IT on Ten IT jobs to save up for those rare lulls
Fraud_fighter

What is mildly amusing to me is when someone thinks a strong password is as strong as one may need, when the truth is usernames and passwords are...

1 day ago by Fraud_fighter on Passwords are here to stay: get used to it
Andy Bolstridge

Performance isn't really the big thing at the moment - not when my ADSL connection will only provide a 8mbps bottleneck to the 3.5gbps speeds these...

1 day ago by Andy Bolstridge via Facebook on Next-generation 802.11ac routers
pjc158

So when is Amazon buying Waterstones?

1 day ago by pjc158 on Waterstones to sell Kindles with in-store offers
J.A. Watson

@JoshArg - Well, I am writing this from my N150 Plus, running Ubuntu 12.04 and using a Bluetooth mouse (well, to be totally correct it is a...

1 day ago by J.A. Watson on Samsung N150 Plus Netbook - Ubuntu Netbook Edition 10.04
J.A. Watson

@duncanjmurray - At least n the case of the specific system I put the SSD into, it is not the case. The boot time improvement is substantial, but...

1 day ago by J.A. Watson on Netbook Upgrade - SSD IN, Windows OUT
archerthom

Sounds like only those who have bought their Kindle from Waterstones will be able to use them in-store - very disappointing. I have no intention...

1 day ago by archerthom on Waterstones to sell Kindles with in-store offers
AndyPagin

From my mainframe operating days... 1) Play hoopla with write permit rings & a can of screen cleaner. 2) Make enormous paper chains (Christmas...

1 day ago by AndyPagin on Ten IT jobs to save up for those rare lulls
61253

An OS X perspective Filenames beginning with a dot/period (.) should not be equated with HFS Plus resource forks; misunderstandings around ._ (dot...

1 day ago by 61253 on SharePoint deployment: Pitfalls of a pioneer
ians1

There are many legal download sites for music at least that do not charge an arm and a leg like itunes or Napster. The "real" cost of an mp3 file...

1 day ago by ians1 on The Pirate Bay infringes copyright, High Court decides
Jon Howells

@Crupal.. How does refusing your websites cookies help my privacy? A quick look at your page script reveals four sets of code provided by 3rd...

2 days ago by Jon Howells via Facebook on Privacy watchdog to chase big companies over cookie law
Paul Carloss

There are hundreds, if not thousands of filesharing torrent sites, The Pirate Bay (TPB) is only one of them, while the TPB is blocked many more...

2 days ago by Paul Carloss via Facebook on The Pirate Bay infringes copyright, High Court decides

Community highlights

Jack Schofield

Smartphones run HTML5 a lot slower than PCs

Blog Post Benchmarks run by Spaceport.io show that HTML5 runs "six to ten times slower"...

22 May, 2012 by Jack Schofield
Jake Rayson

3 reasons why Mac is best

Blog Post You thought you’d seen the end of the Flame Wars) between Mac and PC,...

22 May, 2012 by Jake Rayson
Lucy Sherriff

Samsung draws logic-worthy on/off ratio from graphene

Blog Post Researchers at Samsung’s Advance Institute of Technology have developed a...

22 May, 2012 by Lucy Sherriff
Jack Schofield

Windows 8 could speed multi-monitor uptake

Blog Post Microsoft has announced that it will improve multi-monitor support in Windows...

22 May, 2012 by Jack Schofield