I’ve just finished a new addon for Linux - DV video capture. Unfortunately the Unicap library currently used as video capture for Linux doesn’t yet support DV capture…so this release will hopefully ease that pain for a select few.
This is basically hooking OF to the dvgrab application for recording DV from a camera to hard drive.
I’ve stripped dvgrab of most of the DV recording stuff to make it just a DV frame grabber. It runs on its own thread and performs well. If you are using a PAL camera you should get 720x576 @ 25fps, or 720 x 480 @ 30fps if you have an NTSC camera.
Because the dvgrabber is threaded, your application will run at an independent (and probably much higher) framerate.
However, if you run this addon with the ofUCUtils.cpp file compiled, then you will experience a 5-7 second delay on start up…something in the Unicap library conflicts with the libavc1394 avc1394_check_subunit_type function call used in dvgrab, causing it to sleep mysteriously several times (any ideas Arturo?).
The solution to this is to remove the ofVideoGrabber and ofUCUtils files from your project. You won’t need the ofVideoGrabber because ofDVUtils will be your new grabber. I’ve already done this in the accompanying CodeBlocks project.
When setting up, make sure to put the ofxDVgrab folder in with the rest of the addons.
When you initialise the dvgrabber, you have a choice of 2 different deinterlacing functions…or you can run it without deinterlacing.
There’s still some redundant code in the addon files that I haven’t stripped out, but it should run fine nonetheless.
Additional extras which are missing are things like IEEE 1394 transport control (AV/C) for tape-based grabbing, HDV grabbing support and more interlacing functions…
download the addon at http://www.digitalstar.net/openframeworks/ofxDVgrab.zip
Any bugs, problems…let me know!
oh yeah, and the obligatory mug shot: