ali_mja
Posts: 2
Joined: Sun Jan 26, 2014 1:05 pm

Gstreamer + c920 h.264 + raspberrypi

Sun Jan 26, 2014 2:02 pm

Hi

I have a Logitech C920 with a raspberry pi board.
I want to stream video with normal quality and light, i read about h.264 format and i think if i want to stream with normal quality and light process it's a good choice.

now i want to know is h.264 with raspberry work well as i think..?
is there any better way or format for streaming video light and with no delay ..?

thank you.

Defiant
Posts: 175
Joined: Tue Oct 30, 2012 6:17 pm
Location: Hamburg, Germany

Re: Gstreamer + c920 h.264 + raspberrypi

Tue Jan 28, 2014 6:21 pm

Well since your Webcam can already do h264 you won't need any special omx stuff. To send the data over network try something like RTP with a rtsp (gst-rtsp-server or vlc?) or sdp file.

kansky
Posts: 5
Joined: Mon Jan 27, 2014 6:10 am

Re: Gstreamer + c920 h.264 + raspberrypi

Sat Feb 01, 2014 2:27 am

I installed vlc from the raspbian repo, connected my C920 to the RPi using a powered multi-tt USB hub (Belkin F5U234 v3).

I can stream over a cross-over Ethernet cable to my desktop, but I have corruption in the video stream no matter what c920 resolution I choose. Same problem if I record to the sd card.

Here is the vlc command for the RPi.
cvlc -vvv v4l2:///dev/video0:chroma="H264":width=640:height=480:fps=30 --sout '#rtp{sdp=rtsp://:8554/}' :demux=h264

On the host I use VLC to connect to rtsp://192.168.1.2:8554/

I'm not sure the RPi USB is good enough to support the C920 without hiccups. I'm on the latest 3.10.28+ kernel.

Defiant
Posts: 175
Joined: Tue Oct 30, 2012 6:17 pm
Location: Hamburg, Germany

Re: Gstreamer + c920 h.264 + raspberrypi

Sat Feb 01, 2014 11:40 am

Sounds like an USB problem, try another webcam

ereyes01
Posts: 3
Joined: Tue Mar 18, 2014 8:54 pm

Re: Gstreamer + c920 h.264 + raspberrypi

Tue Mar 18, 2014 8:59 pm

I've got this working, along with a streaming video web application of the webcam footage. My code is here: https://github.com/ereyes01/fishcam (I use it to watch my aquarium from work).

I am, however, standing on the shoulders of giants: https://github.com/csete/bonecam

csete's capture.c was the trick to pull H.264 bits out of the c920. There may be a cleaner, more current way of doing that now with v4l2, but this works for me.

Make sure you connect the c920 via a powered USB hub!

User avatar
fbutler
Posts: 302
Joined: Thu Mar 15, 2012 4:09 pm
Location: Surrey, England

Re: Gstreamer + c920 h.264 + raspberrypi

Mon Mar 24, 2014 7:26 pm

kansky wrote:I can stream over a cross-over Ethernet cable to my desktop, but I have corruption in the video stream no matter what c920 resolution I choose. Same problem if I record to the sd card.
I had the same issue with the c920 streaming H.264 however the new FIQ_FSM USB driver appears to have fixed it. See:

http://www.raspberrypi.org/phpBB3/viewt ... 28&t=70437

Try the new FIQ driver with dwc_otg.fiq_fsm_mask set to 0x7 to accelerate high-speed isochronous transactions.

I haven't seen any artifacts or corruption with the c920 using the new FIQ driver

kansky
Posts: 5
Joined: Mon Jan 27, 2014 6:10 am

Re: Gstreamer + c920 h.264 + raspberrypi

Mon Mar 24, 2014 7:42 pm

Excellent! Thanks. I was debating whether to try the new beta USB code. Now I have a good reason to. I wonder when it will reach the mainline kernel.

User avatar
fbutler
Posts: 302
Joined: Thu Mar 15, 2012 4:09 pm
Location: Surrey, England

Re: Gstreamer + c920 h.264 + raspberrypi

Wed Mar 26, 2014 8:47 am

kansky wrote:Excellent! Thanks. I was debating whether to try the new beta USB code. Now I have a good reason to. I wonder when it will reach the mainline kernel.
Let us know how you get on. It would be good to confirm that you see the same results with the C920.

erickpeniche
Posts: 3
Joined: Wed Apr 30, 2014 3:18 pm
Location: Mexico

Re: Gstreamer + c920 h.264 + raspberrypi

Mon Jun 30, 2014 3:35 pm

Hi, i want to capture video with the C920 at the best possible quality to a file. Do i need gstreamer in order to do it or can i do it with v4l2? Thanks

JvdP
Posts: 2
Joined: Sun Jan 24, 2016 10:50 pm

Re: Gstreamer + c920 h.264 + raspberrypi

Sun Jan 24, 2016 10:52 pm

fbutler wrote:
kansky wrote:I can stream over a cross-over Ethernet cable to my desktop, but I have corruption in the video stream no matter what c920 resolution I choose. Same problem if I record to the sd card.
I had the same issue with the c920 streaming H.264 however the new FIQ_FSM USB driver appears to have fixed it. See:

http://www.raspberrypi.org/phpBB3/viewt ... 28&t=70437

Try the new FIQ driver with dwc_otg.fiq_fsm_mask set to 0x7 to accelerate high-speed isochronous transactions.

I haven't seen any artifacts or corruption with the c920 using the new FIQ driver
How would I go about setting the dwc_otg.fiq_fsm_mask to 0x7?

Return to “Graphics, sound and multimedia”

Who is online

Users browsing this forum: No registered users and 7 guests