Problem with my webcam in ubuntu 12.04 with xfce

Asked by Morten Hansen

Hello (sorry for my english - I'm danish)

I have searched the internet - I tried almost everything now I think - but I can't still get my webcam to show a picture...

The webcam did not work in any of theese program: Skype, Kamerka, Guvcview or Cheese
The last one "cheese" I can't start up yet - It start - but it closing down again...

I know that it is driver or something like that that I not have installed correctly - but I don't know how to fix it - I really hope that you can help me...

The output from terminal is:

dmesg|tail
[ 570.340123] [drm:i915_report_and_clear_eir] *ERROR* EIR stuck: 0x00000010, masking
[ 570.340134] render error detected, EIR: 0x00000010
[ 572.040060] [drm:i915_hangcheck_elapsed] *ERROR* Hangcheck timer elapsed... GPU hung
[ 572.040963] [drm:i915_wait_request] *ERROR* i915_wait_request returns -11 (awaiting 17044 at 17039, next 17045)
[ 572.041177] [drm:i915_reset] *ERROR* GPU hanging too fast, declaring wedged!
[ 572.041182] [drm:i915_reset] *ERROR* Failed to reset chip.
[ 1524.464877] usb 1-5: USB disconnect, device number 3
[ 1530.472058] usb 1-5: new high-speed USB device number 4 using ehci_hcd
[ 1530.633079] uvcvideo: Found UVC 1.00 device Venus USB2.0 Camera (0ac8:3420)
[ 1530.634922] input: Venus USB2.0 Camera as /devices/pci0000:00/0000:00:1d.7/usb1/1-5/1-5:1.0/input/input5

lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 004: ID 0ac8:3420 Z-Star Microelectronics Corp. Venus USB2.0 Camera
Bus 003 Device 002: ID 046d:c025 Logitech, Inc. MX500 Optical Mouse

 gstreamer-properties

(gstreamer-properties:3440): Gtk-WARNING **: Unknown property: GtkDialog.has-separator

(gstreamer-properties:3440): Gtk-WARNING **: Unknown property: GtkDialog.has-separator
gstreamer-properties-Message: Skipping unavailable plugin 'artsdsink'
gstreamer-properties-Message: Skipping unavailable plugin 'esdsink'
gstreamer-properties-Message: Skipping unavailable plugin 'sunaudiosink'
gstreamer-properties-Message: Skipping unavailable plugin 'glimagesink'
gstreamer-properties-Message: Skipping unavailable plugin 'sdlvideosink'
gstreamer-properties-Message: Skipping unavailable plugin 'v4lmjpegsrc'
gstreamer-properties-Message: Skipping unavailable plugin 'qcamsrc'
gstreamer-properties-Message: Skipping unavailable plugin 'v4lsrc'
gstreamer-properties-Message: Skipping unavailable plugin 'esdmon'
gstreamer-properties-Message: Skipping unavailable plugin 'sunaudiosrc'
libv4l2: error setting pixformat: Enheden eller ressourcen optaget (danish: In english I think it is "The device or the ressource is busy)
gstreamer-properties-Message: Error running pipeline 'Video for Linux 2 (v4l2)': Device '/dev/video0' is busy [gstv4l2object.c(2190): gst_v4l2_object_set_format (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src1:
Call to S_FMT failed for YUYV @ 1280x960: Enheden eller ressourcen optaget]

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu cheese Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Try:

sudo apt-get install mplayer

mplayer tv:// -vf eq=7:6 -tv driver=v4l2:width=640:height=480:device=/dev/video0

Do you see yourself?

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#2

What is the output of:

uname -a; lsb_release -a

Thanks

Revision history for this message
Morten Hansen (mshh80) said :
#3

Output of uname -a; lsb_release -a

012 i686 i686 i386 GNU/Linux
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04.1 LTS
Release: 12.04
Codename: precise

mplayer tv:// -vf eq=7:6 -tv driver=v4l2:width=640:height=480:device=/dev/video0
MPlayer svn r34540 (Ubuntu), built with gcc-4.6 (C) 2000-2012 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing tv://.
TV file format detected.
Selected driver: v4l2
 name: Video 4 Linux 2 input
 author: Martin Olschewski <email address hidden>
 comment: first try, more to come ;-)
v4l2: your device driver does not support VIDIOC_G_STD ioctl, VIDIOC_G_PARM was used instead.
Selected device: Venus USB2.0 Camera
 Capabilities: video capture streaming
 supported norms:
 inputs: 0 = Camera 1;
 Current input: 0
 Current format: YUYV
v4l2: ioctl set format failed: Device or resource busy
v4l2: ioctl set mute failed: Invalid argument
v4l2: 0 frames successfully processed, 0 frames dropped.

Exiting... (End of file)

Revision history for this message
Morten Hansen (mshh80) said :
#4

So the problem is still that no program can connect to my camera...

"The indicator-light" at my camera is blue - so the computer has registred that it is there...

Thank you so much actionparship for helping me :-)

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5

what is the output of:

dpkg -l | grep -i v4l

Thanks

Revision history for this message
Morten Hansen (mshh80) said :
#6

dpkg -l | grep -i v4l
ii avahi-autoipd 0.6.30-5ubuntu2 Avahi IPv4LL network address configuration daemon
ii libv4l-0 0.8.6-1ubuntu2 Collection of video4linux support libraries
ii libv4lconvert0 0.8.6-1ubuntu2 Video4linux frame format conversion library

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#7

Try:

sudo add-apt-repository ppa:libv4l/development
sudo apt-get update
sudo apt-get install v4l-utils

Revision history for this message
Morten Hansen (mshh80) said :
#8

I have install the update and then restart the computer - but it is like the programs did know that :-)

dpkg -l | grep -i v4l
ii avahi-autoipd 0.6.30-5ubuntu2 Avahi IPv4LL network address configuration daemon
ii libv4l-0 0.9.1+r1526-59~precise1 Collection of video4linux support libraries
ii libv4l2rds0 0.9.1+r1526-59~precise1 Video4Linux Radio Data System (RDS) decoding library
ii libv4lconvert0 0.9.1+r1526-59~precise1 Video4linux frame format conversion library
ii v4l-utils 0.9.1+r1526-59~precise1 Collection of command line video4linux utilities

For the first time I did actually get a picture on in guvcview
- very bad quality - I did only seen some shadows - I did not get the opportunity to fix the picture before the program crashed...

Problemtype
Crash
Title
guvcview crashed with SIGSEGV in SDL_CreateYuVOverlay()..

And there are still a problem with v4l2 and the device /dev/video0
- and there is a lot of plugin that I im skipping...

gstreamer-properties

(gstreamer-properties:3686): Gtk-WARNING **: Unknown property: GtkDialog.has-separator

(gstreamer-properties:3686): Gtk-WARNING **: Unknown property: GtkDialog.has-separator
gstreamer-properties-Message: Skipping unavailable plugin 'artsdsink'
gstreamer-properties-Message: Skipping unavailable plugin 'esdsink'
gstreamer-properties-Message: Skipping unavailable plugin 'sunaudiosink'
gstreamer-properties-Message: Skipping unavailable plugin 'glimagesink'
gstreamer-properties-Message: Skipping unavailable plugin 'sdlvideosink'
gstreamer-properties-Message: Skipping unavailable plugin 'v4lmjpegsrc'
gstreamer-properties-Message: Skipping unavailable plugin 'qcamsrc'
gstreamer-properties-Message: Skipping unavailable plugin 'v4lsrc'
gstreamer-properties-Message: Skipping unavailable plugin 'esdmon'
gstreamer-properties-Message: Skipping unavailable plugin 'sunaudiosrc'
libv4l2: error turning on stream: Inddata/uddata-fejl
gstreamer-properties-Message: Error running pipeline 'Video for Linux 2 (v4l2)': Error starting streaming on device '/dev/video0'. [gstv4l2object.c(2230): gst_v4l2_object_start_streaming (): /GstPipeline:pipeline3/GstV4l2Src:v4l2src1:
system error: Inddata/uddata-fejl] (I think it is the input/output-error in english)

And M-player....
Now there open a window with a green screen and then try to get on until I close it down...

Playing tv://.
TV file format detected.
Selected driver: v4l2
 name: Video 4 Linux 2 input
 author: Martin Olschewski <email address hidden>
 comment: first try, more to come ;-)
v4l2: your device driver does not support VIDIOC_G_STD ioctl, VIDIOC_G_PARM was used instead.
Selected device: Venus USB2.0 Camera
 Capabilities: video capture streaming
 supported norms:
 inputs: 0 = Camera 1;
 Current input: 0
 Current format: YUYV
v4l2: ioctl set format failed: Invalid argument
v4l2: ioctl set format failed: Invalid argument
v4l2: ioctl set format failed: Invalid argument
tv.c: norm_from_string(pal): Bogus norm parameter, setting default.
v4l2: ioctl enum norm failed: Invalid argument
Error: Cannot set norm!
Selected input hasn't got a tuner!
v4l2: ioctl set mute failed: Invalid argument
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
[vdpau] Error when calling vdp_device_create_x11: 1
Opening video filter: [eq brightness=7 contrast=6]
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
Movie-Aspect is undefined - no prescaling applied.
[swscaler @ 0x9338000] using unscaled yuyv422 -> yuv420p special converter
VO: [xv] 640x480 => 640x480 Planar YV12
Selected video codec: [rawyuy2] vfm: raw (RAW YUY2)
==========================================================================
Audio: no sound
Starting playback...
v4l2: select timeout
V: 0.0 2/ 2 ??% ??% ??,?% 0 0
v4l2: select timeout
V: 0.0 4/ 4 ??% ??% ??,?% 0 0
v4l2: select timeout
V: 0.0 5/ 5 ??% ??% ??,?% 0 0
v4l2: select timeout
V: 0.0 7/ 7 ??% ??% ??,?% 0 0
v4l2: select timeout
V: 0.0 9/ 9 ??% ??% ??,?% 0 0
v4l2: select timeout
V: 0.0 11/ 11 ??% ??% ??,?% 0 0
v4l2: select timeout
V: 0.0 13/ 13 ??% ??% ??,?% 0 0
v4l2: select timeout
V: 0.0 15/ 15 ??% ??% ??,?% 0 0
v4l2: select timeout
V: 0.0 17/ 17 ??% ??% ??,?% 0 0
v4l2: select timeout
V: 0.0 19/ 19 ??% ??% ??,?% 0 0
v4l2: select timeout
V: 0.0 21/ 21 ??% ??% ??,?% 0 0
v4l2: select timeout
V: 0.0 23/ 23 ??% ??% ??,?% 0 0
v4l2: select timeout
V: 0.0 24/ 24 ??% ??% ??,?% 0 0
v4l2: select timeout
V: 0.0 26/ 26 ??% ??% ??,?% 0 0
v4l2: select timeout
V: 0.0 28/ 28 ??% ??% ??,?% 0 0
v4l2: select timeout
V: 0.0 30/ 30 ??% ??% ??,?% 0 0
v4l2: select timeout
V: 0.0 32/ 32 ??% ??% ??,?% 0 0
v4l2: select timeout
V: 0.0 34/ 34 ??% ??% ??,?% 0 0
v4l2: select timeout
V: 0.0 36/ 36 ??% ??% ??,?% 0 0
v4l2: select timeout
V: 0.0 38/ 38 ??% ??% ??,?% 0 0
v4l2: select timeout
V: 0.0 39/ 39 ??% ??% ??,?% 0 0
v4l2: select timeout
V: 0.0 41/ 41 ??% ??% ??,?% 0 0
v4l2: select timeout
V: 0.0 43/ 43 ??% ??% ??,?% 0 0
v4l2: select timeout
V: 0.0 45/ 45 ??% ??% ??,?% 0 0
v4l2: select timeout
V: 0.0 47/ 47 ??% ??% ??,?% 0 0
v4l2: select timeout
V: 0.0 49/ 49 ??% ??% ??,?% 0 0
v4l2: select timeout
V: 0.0 51/ 51 ??% ??% ??,?% 0 0
v4l2: select timeout
V: 0.0 53/ 53 ??% ??% ??,?% 0 0
v4l2: select timeout
V: 0.0 55/ 55 ??% ??% ??,?% 0 0
v4l2: select timeout
V: 0.0 56/ 56 ??% ??% ??,?% 0 0
v4l2: select timeout
V: 0.0 58/ 58 ??% ??% ??,?% 0 0
v4l2: select timeout
V: 0.0 60/ 60 ??% ??% ??,?% 0 0
v4l2: select timeout
V: 0.0 62/ 62 ??% ??% ??,?% 0 0
v4l2: select timeout
V: 0.0 64/ 64 ??% ??% ??,?% 0 0
v4l2: select timeout
V: 0.0 66/ 66 ??% ??% ??,?% 0 0
v4l2: select timeout
V: 0.0 68/ 68 ??% ??% ??,?% 0 0
v4l2: select timeout
V: 0.0 70/ 70 ??% ??% ??,?% 0 0
v4l2: select timeout
V: 0.0 71/ 71 ??% ??% ??,?% 0 0
v4l2: select timeout
v4l2: ioctl set mute failed: Invalid argument
v4l2: 0 frames successfully processed, 1 frames dropped.

Exiting... (Quit)

Revision history for this message
Morten Hansen (mshh80) said :
#9

Promise me that you don't laughing of my english - I do my very best... :-)

I have a picture on in guvcview - And Im trying to make it gut...

But right now I can only get shadows of my self - 4 - 5 half heads beside each other...

But this is a start and more than when I was beginning :-)

It is not very easy to get a better picture - I have try to make new settings...
but it only make the quality of the picture more bad :-)

So I think I still need the right driver to get my camera make the right fokus.... :-) ???

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#10

Not sure then, you have a bleeding edge libv4l-0 which may have helped. I suggest you run:

ubuntu-bug cheese

and report the issue. The bug guys may get you to remove the PPA and use the default libv4l-0 version in the official repos.

Revision history for this message
Morten Hansen (mshh80) said :
#11

The camera works fine in guvcview now - I'm working on to make work in skype also...
I don't care that it not work with cheese - I only need to use it with skype...

I hope that I can give you "Problem solved" very soon....

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#12

What is the output of:

uname -a

Thanks

Revision history for this message
Morten Hansen (mshh80) said :
#13

This is the output:

 3.2.0-32-generic-pae #51-Ubuntu SMP Wed Sep 26 21:54:23 UTC 2012 i686 i686 i386 GNU/Linu

I have searched the internet and It looks like many have trouble with make their webcamera works correctly in skype...
especially after upgrading to 12.04

I found this in many other discussion:
LD_PRELOAD=/usr/lib/i386-linux-gnu/libv4l/v4l1compat.so /usr/bin/skype

I have change this in the file... but I still can't get a test-button on in the option of skype...
I did only get a black picture

Maybe it will work when I call someone - but I don't think so :-)

Can you help with this problem?

Provide an answer of your own, or ask Morten Hansen for more information if necessary.

To post a message you must log in.