Archive

Archive for the ‘GStreamer’ Category

Testing the webcam with gstreamer

April 18, 2009 2 comments
gstreamer0.10-schroedinger

Image by markuz via Flickr

We need to get ready an interactive installation by Wednesday next week. The client wants us to use an spare server and he wants us to use Linux, Ubuntu 8.10 for this particular installation.

So no big deal, it was a good opportunity to test Moldeo in a production setting with Linux. It was the golden opportunity for testing it. So we installed the development libraries (more on that on a latter post) and the webcam.

Testing the camera looked to be troublesome. Camorama could not see the camera. Same with Skype. Until we tested it with GStreamer. Only one line in the terminal did the trick:

gst-launch v4l2src device=/dev/video0 ! decodebin ! ffmpegcolorspace ! autovideosink

And voila! The camera was shown in an small window. GStreamer saved me hours of testing and installing and unistalling drivers.

Hope this trick will help you in future endeavors with Linux

Follow

Get every new post delivered to your Inbox.