Testing the webcam with gstreamer
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
Related Articles
- OpenOffice.org to use GStreamer for Multimedia (linuxjournal.com)
- Video Editing in Linux (brighthub.com)
