Cylarcy
Posts: 11
Joined: Fri Oct 05, 2012 11:50 pm

Problem Streaming webcam

Fri Oct 05, 2012 11:55 pm

Hi all

i am newbie in linux and i am trying to stream my Webcam from the Rpi. Please bear in mind that i followed i think all the tutorials in the forum

I have tried so far

motion, ffmpeg and GStreamer

Although motion is not streaming i tried it to play around and i had some success but i could only get a very dark image and did find a solution.

ffmpeg i couldnt get it to work

I tried to get GStreamer to work and open the stream in vlc but the only thing i get is a green screen

Can you help to get atleast GStreamer to work. i really dont know where to go from here. ofcourse i googled, checked the forum etc

thank you

shuckle
Posts: 565
Joined: Sun Aug 26, 2012 11:49 am
Location: Finland

Re: Problem Streaming webcam

Sat Oct 06, 2012 7:10 am

Show first lsusb and the last lines of dmesg so that we can see what camera you are using. I am just testing my webcam also and it seems to work, but the quality is bad.

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

Re: Problem Streaming webcam

Sat Oct 06, 2012 7:15 am

Cylarcy wrote:Hi all

i am newbie in linux and i am trying to stream my Webcam from the Rpi. Please bear in mind that i followed i think all the tutorials in the forum

I have tried so far

motion, ffmpeg and GStreamer

Although motion is not streaming i tried it to play around and i had some success but i could only get a very dark image and did find a solution.

ffmpeg i couldnt get it to work

I tried to get GStreamer to work and open the stream in vlc but the only thing i get is a green screen

Can you help to get atleast GStreamer to work. i really dont know where to go from here. ofcourse i googled, checked the forum etc

thank you
What make and model of webcam are you using?

Have you examined the webcam properties using the v4l2-ctl command?

Cylarcy
Posts: 11
Joined: Fri Oct 05, 2012 11:50 pm

Re: Problem Streaming webcam

Sat Oct 06, 2012 9:31 am

shuckle wrote:Show first lsusb and the last lines of dmesg so that we can see what camera you are using. I am just testing my webcam also and it seems to work, but the quality is bad.
Hi mate


pi@raspberrypi ~ $ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN Adapter
Bus 001 Device 005: ID 1a40:0201 Terminus Technology Inc. FE 2.1 7-port Hub
Bus 001 Device 006: ID 1c4f:0002 SiGma Micro Keyboard TRACER Gamma Ivory
Bus 001 Device 007: ID 045e:0737 Microsoft Corp. Compact Optical Mouse 500
Bus 001 Device 008: ID 0c45:6270 Microdia PC Camera (SN9C201 + MI0360/MT9V011 or MI0360SOC/MT9V111) U-CAM PC Camera NE878, Whitcom WHC017, ...


here is the dmesg output

[ 372.106388] usb 1-1.3.5: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[ 372.106406] usb 1-1.3.5: Product: USB20 Camera
[ 372.170110] Linux video capture interface: v2.00
[ 372.179151] gspca_main: v2.14.0 registered
[ 372.186939] gspca_main: sn9c20x-2.14.0 probing 0c45:6270
[ 372.265254] gspca_sn9c20x: MT9V011 sensor detected
[ 372.274236] input: sn9c20x as /devices/platform/bcm2708_usb/usb1/1-1/1-1.3/1-1.3.5/input/input3
[ 372.277696] usbcore: registered new interface driver sn9c20x

Cylarcy
Posts: 11
Joined: Fri Oct 05, 2012 11:50 pm

Re: Problem Streaming webcam

Sat Oct 06, 2012 9:38 am

fbutler wrote:
Cylarcy wrote:Hi all

i am newbie in linux and i am trying to stream my Webcam from the Rpi. Please bear in mind that i followed i think all the tutorials in the forum

I have tried so far

motion, ffmpeg and GStreamer

Although motion is not streaming i tried it to play around and i had some success but i could only get a very dark image and did find a solution.

ffmpeg i couldnt get it to work

I tried to get GStreamer to work and open the stream in vlc but the only thing i get is a green screen

Can you help to get atleast GStreamer to work. i really dont know where to go from here. ofcourse i googled, checked the forum etc

thank you
What make and model of webcam are you using?

Have you examined the webcam properties using the v4l2-ctl command?

hi this is the v4l2-ctl --info output mate. i have never used it before though as i told you i am a newbie :D

pi@raspberrypi ~ $ v4l2-ctl --info
Driver Info (not using libv4l2):
Driver name : sn9c20x
Card type : USB20 Camera
Bus info : usb-bcm2708_usb-1.3.5
Driver version: 3.2.27
Capabilities : 0x05000001
Video Capture
Read/Write
Streaming

The camera is a Canyon CNP-WCAM313G

If you can assist me through these details that would be great

thank you so much

User avatar
pluggy
Posts: 3635
Joined: Thu May 31, 2012 3:52 pm
Location: Barnoldswick, Lancashire,UK
Contact: Website

Re: Problem Streaming webcam

Sat Oct 06, 2012 9:50 am

shuckle wrote:Show first lsusb and the last lines of dmesg so that we can see what camera you are using. I am just testing my webcam also and it seems to work, but the quality is bad.
Some camera work better than others but safe to say none of them are better than "satisfactory" and thats if you don't set the bar too high. Crippled USB subsytem (it drops packets) and a puny processor means the Pi doesn't do webcams very well. The USB is betting better with ever improving drivers but personally I'm not holding my breath for it to work properly. I'm holding out for the dedicated camera module (which doesn't use USB and makes use of the very good GPU in the Pi).
Don't judge Linux by the Pi.......
I must not tread on too many sacred cows......

Cylarcy
Posts: 11
Joined: Fri Oct 05, 2012 11:50 pm

Re: Problem Streaming webcam

Sun Jan 06, 2013 7:36 pm

I managed to get the camera working somehow using the arch image but quality is really bad. I guess i should play with the settings more but the camera works nonetheless

Return to “Troubleshooting”