Friday, January 12, 2007

Forget DirectShow, we're using Linux

So, it turns out that there's actually a lot of stuff out there for Linux video/webcam capture. This stuff is also much easier than trying to deal with DirectShow. For instance, this shows a ffmpeg command that will convert the webcam input to a series of grayscale PGM images, one per frame. I can even use prerecorded video instead of the camera by using the filename of the video instead of /dev/video0. With some well-written scripts and the actual detection application, a GUI for the entire system isn't even needed.

Oh yeah, and Linux supports the Logitech camera using the uvcvideo driver. Excellent. :)

Anyways, we'll record some video for testing this weekend.

1 comment:

Bundaboy said...

I don't understand why you do this. Why are you comparing DirectShow with FFMpeg? DirectShow is a mutimedia programming API, whereas FFMpeg is a command line application - the difference is chalk and cheese.
One is a development tool and the other a user tool.

There is NOTHING in Linux that remotely resembles DirectShow and that, from a developers point of view, is extremely limiting.