Page 1 of 1

Having trouble getting video stream from Logitech C920

Posted: Mon Apr 15, 2013 10:51 am
by Robo
My goal is to have the Pi streaming video/audio from Logitech C920 webcam, so another computer can view the stream in Skype like quality.

I thought it would be easy because the webcam has hardware h.264 encoding, and the Pi's GPU can decode h.264, it means I should get super high quality stream right? I'm following this guide:

http://www.oz9aec.net/index.php/gstream ... -gstreamer

When I run this command:

Code: Select all

./capture -c 300 -o | gst-launch -v -e filesrc location=/dev/fd/0 ! h264parse ! decodebin2 ! xvimagesink sync=false
I get WARNING: erroneous pipeline: no element "xvimagesink". I assume it's some kind of plug-in, but haven't been able to find it.

When I run this command:

Code: Select all

./capture -c 300 -o | gst-launch -v -e filesrc location=/dev/fd/0 ! h264parse ! decodebin2 ! fpsdisplaysink fps-update-interval=5000
I get "video sink set and autovideosink is not available", and sometimes I get something about h264 decode not available as well.

What do I need to do to move to the next step? I've read many guides online, I just don't know what info is accurate any more. I'm using gstreamer instead of ffmpeg because ffmpeg is suppose to have audio syncing problem, but it doesn't seem like I'm currently even getting audio.

Re: Having trouble getting video stream from Logitech C920

Posted: Sat May 04, 2013 9:15 pm
by cjm
I'm having this same issue... Really need to figure out why xvimagesink isn't working correctly from the plugins base set.

Re: Having trouble getting video stream from Logitech C920

Posted: Sun May 05, 2013 5:00 am
by fbutler
cjm wrote:I'm having this same issue... Really need to figure out why xvimagesink isn't working correctly from the plugins base set.
I haven't experimented with the C920 since last year, but the sink that worked for me then was fbdevsink. The xvimagesink is an xwindows based sink and isn't really suitable for the Pi. You should look at using Gstreamer 1.0 which is the latest GStreamer release. Do a search on these forums and you will find more info on it. Here's a link for installing the GStreamer 1.0 packages which defiant has created:

http://www.raspberrypi.org/phpBB3/viewt ... 63#p293663

They include another sink called eglglessink which you should also be able to use.

There is also a gst-omx plugin for the 1.0 version which contains further elements for handling H264 on the Pi.