Page 1 of 4 123 ... LastLast
Results 1 to 10 of 37

Thread: Skype crash when I start my webcam

  1. #1
    Join Date
    Jun 2008
    Location
    Skopje, Macedonia
    Beans
    4
    Distro
    Ubuntu 8.04 Hardy Heron

    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

  2. #2
    Join Date
    Mar 2008
    Beans
    82

    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?

  3. #3
    Join Date
    Apr 2007
    Beans
    Hidden!

    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

  4. #4
    Join Date
    Aug 2007
    Beans
    16

    Re: Skype crash when I start my webcam

    Thanks! That advice was spot on for me!

  5. #5
    Join Date
    Feb 2005
    Beans
    68

    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

  6. #6
    Join Date
    Feb 2008
    Beans
    6
    Distro
    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 (208): 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 (208): 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 09:02 AM. Reason: added info and edited

  7. #7
    Join Date
    Jan 2008
    Location
    Tempe, Arizona 'merica
    Beans
    44
    Distro
    Lubuntu 12.04 Precise Pangolin

    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
    12.04 64 bit
    AMD Phenom 9600 2.3GHz /4GB DDR2 1066 / Gigabyte MA790FX-DS5 /Gecube ATI HD3850

  8. #8
    Join Date
    May 2005
    Location
    Boston, MA, United States
    Beans
    112
    Distro
    Ubuntu 11.04 Natty Narwhal

    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

  9. #9
    Join Date
    Aug 2008
    Beans
    302
    Distro
    Kubuntu 11.10 Oneiric Ocelot

    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.

  10. #10
    Join Date
    Oct 2006
    Location
    Sacramento, California
    Beans
    529
    Distro
    Ubuntu 12.04 Precise Pangolin

    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.

Page 1 of 4 123 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •