Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Main Support Categories > General Help
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

General Help
All your general support questions for Ubuntu, Kubuntu, Edubuntu and Xubuntu.

 
Thread Tools Display Modes
Old September 9th, 2008   #1
dimitarc
First Cup of Ubuntu
 
dimitarc's Avatar
 
Join Date: Jun 2008
Location: Skopje, Macedonia
Beans: 4
Ubuntu 8.04 Hardy Heron
Send a message via Skype™ to dimitarc
Skype crash when I start my webcam

If I try to start my webcam in a call or if I try to press the test button in skype options it crashes. Just skype. After opening it again I it works fine until I do the same thing.

After opening skype in terminal this is what I get when I press the test button in Video Options:

Code:
Skype V4L: Failed to set picture format
Skype V4L: Could not find a suitable capture format
Starting the process...
Skype Xv: Xv ports available: 1
Skype XShm: XShm support enabled
Skype Xv: Using Xv port 84
Aborted
After searching some forums I found other people with the same problem but they fixed it with installing skype-static from medibuntu. I did the same, it did not help. I steel have the same problem.

I tried searching this forum for a solution for my problem but I did not found one. I hope someone will help me and I hope I did not missed the category for this thread.

All the best, Dimitar
dimitarc is offline   Reply With Quote
Old November 24th, 2008   #2
CyberCowboy
Just Give Me the Beans!
 
CyberCowboy's Avatar
 
Join Date: Mar 2008
Beans: 68
Re: Skype crash when I start my webcam

Quote:
Originally Posted by dimitarc View Post
If I try to start my webcam in a call or if I try to press the test button in skype options it crashes. Just skype. After opening it again I it works fine until I do the same thing.

After opening skype in terminal this is what I get when I press the test button in Video Options:

Code:
Skype V4L: Failed to set picture format
Skype V4L: Could not find a suitable capture format
Starting the process...
Skype Xv: Xv ports available: 1
Skype XShm: XShm support enabled
Skype Xv: Using Xv port 84
Aborted
After searching some forums I found other people with the same problem but they fixed it with installing skype-static from medibuntu. I did the same, it did not help. I steel have the same problem.

I tried searching this forum for a solution for my problem but I did not found one. I hope someone will help me and I hope I did not missed the category for this thread.

All the best, Dimitar
Confirmed as I'm getting the exact same problems in Intrepid, were you able to fix it?
CyberCowboy is offline   Reply With Quote
Old November 24th, 2008   #3
AmyRose
Just Give Me the Beans!
 
AmyRose's Avatar
 
Join Date: Apr 2007
Location: Southeastern Wisconsin
My beans are hidden!
Ubuntu 9.04 Jaunty Jackalope
Send a message via AIM to AmyRose Send a message via MSN to AmyRose Send a message via Yahoo to AmyRose
Re: Skype crash when I start my webcam

In Intrepid, to fix this problem, I installed the libv4l-0 package and preload it with Skype like this:

Code:
env LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so skype
AmyRose is offline   Reply With Quote
Old December 4th, 2008   #4
PouncingAnt
First Cup of Ubuntu
 
Join Date: Aug 2007
Beans: 8
Re: Skype crash when I start my webcam

Thanks! That advice was spot on for me!
PouncingAnt is offline   Reply With Quote
Old December 4th, 2008   #5
sparks40
Just Give Me the Beans!
 
Join Date: Feb 2005
Beans: 51
Re: Skype crash when I start my webcam

Is the following an environment variable and if so where does it get set, (i.e. the .profile file, etc.)?

env LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so skype

TNX
sparks40 is offline   Reply With Quote
Old December 5th, 2008   #6
bradosav
First Cup of Ubuntu
 
bradosav's Avatar
 
Join Date: Feb 2008
Beans: 6
Ubuntu 8.04 Hardy Heron
Re: Skype crash when I start my webcam

Guys, I'd really appreciate some help. Thanks.

The problem:
I've been trying to get my camera work in skype for a few weeks now. If i click on test or start my video, the program crashes.

The solution:
http://mrk.sed.pl/node/22 has a script that routes a gstreamer stream as a fake webcam into skype, appropriately called skype video hijacker. this is the script:

#!/bin/bash
#
# setup gstfakevideo preload to hijack calls made
# to /dev/video0
#
#This script runs Skype with libskype_dsp_hijacker.so "filter"
#It allows redefining of what devices Skype uses for
#microphone, speakers and mixer (especially microphone and
#speakers can use different devices)

# -- CONFIGURATION --

#default configuration when no option is specified

export HIJACKVIDEO="/dev/video0"
export GST_PIPE="videotestsrc is-live=true ! video/x-raw-yuv,width=640,height=480,framerate=10/1 ! videoscale ! ffmpegcolorspace ! vertigotv ! ffmpegcolorspace"

function help {
cat <<EOT

Redirect Skype video to gstreamer pipeline

Usage: $0 [pipeline definition, gst-launch syntax]

Edit the script for full flexibility

EOT
}


case "$1" in
-h|--help) help; exit;;
# broken
--video)
export HIJACKVIDEO="$2"
shift
shift
;;
esac

export GST_PIPE="$*"

test -n "$GST_PIPE" || unset GST_PIPE

prefix=/usr/local
exec_prefix=${prefix}

#prefer use of libskype_dsp_hijacker from current directory
if test -f ./libgstfakevideo.so; then
libdir=.
else
libdir=${exec_prefix}/lib
fi

LD_PRELOAD=${libdir}/libgstfakevideo.so
if test -f /lib/libdl.so.2; then
LD_PRELOAD=$LD_PRELOAD:/lib/libdl.so.2
fi
export LD_PRELOAD

# ! video/x-raw-yuv,width=320,height=240,format=(fourcc)YV12 ! identity"
# invoke the program with the args given

exec skype



The problem with the solution:

The author is very brief on the instructions and i don't have the knowledge to supplement. Skype doesn't crash, but instead displays a test image: vertical colored bars and a snowy field. When I run the script from the terminal, output is this:

$ ./gstfakevideo
gst.c create_pipeline (155): pipeline created
gst.c create_pipeline (159): pipeline linked
gst.c shim_ioctl (201): request=80685600 nr 0
gst.c shim_ioctl (313): result=-1 error=515 Unknown error 515

gst.c shim_ioctl (201): request=803c7601 nr 1
gst.c shim_ioctl (20: VIDIOCGCAP
gst.c shim_ioctl (313): result=0 error=0 Success

gst.c shim_ioctl (201): request=80685600 nr 0
gst.c shim_ioctl (313): result=-1 error=515 Unknown error 515

gst.c shim_ioctl (201): request=803c7601 nr 1
gst.c shim_ioctl (20: VIDIOCGCAP
gst.c shim_ioctl (313): result=0 error=0 Success

gst.c shim_ioctl (201): request=800e7606 nr 6
gst.c shim_ioctl (236): VIDIOCGPICT
gst.c shim_ioctl (313): result=0 error=0 Success

gst.c shim_ioctl (201): request=400e7607 nr 7
gst.c shim_ioctl (243): VIDIOCSPICT depth:24, colorspace:15
gst.c shim_ioctl (313): result=0 error=0 Success

gst.c shim_ioctl (201): request=80207609 nr 9
gst.c shim_ioctl (255): VIDIOCGWIN
gst.c shim_ioctl (313): result=0 error=0 Success

gst.c shim_ioctl (201): request=4020760a nr 10
gst.c shim_ioctl (259): VIDIOCSWIN
gst.c shim_ioctl (313): result=0 error=0 Success

Starting the process...
Skype Xv: Xv ports available: 1
Skype XShm: XShm support enabled
Skype Xv: Using Xv port 84


What I have:
The webcam works very well in ekiga using a v4l2 plugin.
My hardware drivers app shows GSPCA ZC03xx/VC3xx USB Camera Driver enabled and in use.

My system
Ubuntu 8.04 running a 2.6.24-21-generic kernel
Skype version 2.0.0.72
The newest available UVC driver pack installed a few days ago from http://linuxtv.org/hg/~pinchartl/uvcvideo/file/0280330fd4a0




could someone please help?!?

Thanks

P.S.
I installed libv4l to try one of the suggestions above. i guess the v4l1compat.so resides in /usr/local/lib/libv4l on 8.04, but camera doesn't work, even with that path. the output:
$ env LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so skype
ERROR: ld.so: object '/usr/lib/libv4l/v4l1compat.so' from LD_PRELOAD cannot be preloaded: ignored.

Last edited by bradosav; December 5th, 2008 at 04:02 AM.. Reason: added info and edited
bradosav is offline   Reply With Quote
Old January 20th, 2009   #7
SGAZ
5 Cups of Ubuntu
 
Join Date: Jan 2008
Location: Tempe, Arizona 'merica
Beans: 27
Ubuntu 9.04 Jaunty Jackalope
Thumbs up Re: Skype crash when I start my webcam

Quote:
Originally Posted by AmyRose View Post
In Intrepid, to fix this problem, I installed the libv4l-0 package and preload it with Skype like this:

Code:
env LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so skype
Thanks AmyRose! Creative Webcam NX and Skype worked under 8.04 but totally failed under 8.10. This solution fixed it right up!
__________________
SGAZ
9.04 32 bit
AMD Phenom 9600 2.3GHz /4GB DDR2 1066 / Gigabyte MA790FX-DS5 /Gecube ATI HD3850
SGAZ is offline   Reply With Quote
Old March 6th, 2009   #8
ftmichael
Ubuntu Member
 
ftmichael's Avatar
 
Join Date: May 2005
Location: Boston, MA, United States
Beans: 100
Ubuntu 9.10 Karmic Koala
Send a message via ICQ to ftmichael Send a message via AIM to ftmichael Send a message via MSN to ftmichael Send a message via Yahoo to ftmichael
Talking Re: Skype crash when I start my webcam

Quote:
Originally Posted by AmyRose View Post
In Intrepid, to fix this problem, I installed the libv4l-0 package and preload it with Skype like this:

Code:
env LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so skype
This worked beautifully for me too, with my Logitech QuickCam Chat. I edited the entry in my Applications menu so it runs that command instead of just skype when I click it. Thanks so much!
__________________
'To be nobody but yourself in a world which is doing its best, night and day, to make you like everybody else means to fight the hardest battle which any human being can fight; and never stop fighting.'
--e.e. cummings
ftmichael is offline   Reply With Quote
Old March 7th, 2009   #9
sandy8925
Gee! These Aren't Roasted!
 
Join Date: Aug 2008
Beans: 172
Ubuntu 9.04 Jaunty Jackalope
Send a message via Skype™ to sandy8925
Re: Skype crash when I start my webcam

Thanks a lot man! I was having the same problem with Skype video and this fixed it.
sandy8925 is offline   Reply With Quote
Old April 23rd, 2009   #10
MockY
Quad Shot of Ubuntu
 
MockY's Avatar
 
Join Date: Oct 2006
Location: Sacramento, California
Beans: 439
Ubuntu 9.10 Karmic Koala
Send a message via MSN to MockY
Re: Skype crash when I start my webcam

Thanksk,
this was unfortunately needed in Jauty as well.
However, this fixed the problem with the vertical green lines. Now I hope it fixed the crashing issues as well.
__________________
Mapex: Asus A8R-MVP 939 | Athlon 64 3800+ 2.6GHz | 2GB Kingston pc3200 | Passive Cooled GeForce 8500 | 74GB WD Raptor SATA2 | 750GB Seagate SATA2 | Antec Solo | SilverStone Strider 600W
Tama (new): Sony Vaio VGN-NW150J Notebook
MockY is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:30 PM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry