camgrab will not work

Bug #344336 reported by Peter Swinkels
28
This bug affects 5 people
Affects Status Importance Assigned to Milestone
camgrab (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

Binary package hint: camgrab

Instead of taking a snapshot camgrab fails with the following error:

=====================
setting cam pic: Invalid argument
No supported palette found.
=====================

btw: Cheese 2.24.2 can take snapshots.

kernel version: 2.6.27-11
Ubuntu 8.10
Trust WB-6250X Webcam

Changed in camgrab:
status: New → Confirmed
Revision history for this message
Pradeep (chaudharipradeep9) wrote :

Ya , I got same error

No supported palette found.

I have tried camgrab on ubuntu 9.04

Revision history for this message
Fabián Rodríguez (magicfab) wrote :

Medium importance: sever impact on a non-core application.

Further more, there is no manpage. I'll open another bug report.

Changed in camgrab (Ubuntu):
importance: Undecided → Medium
Revision history for this message
zerhacke (j-allberry) wrote :

I have found the solution.

In a terminal or with Synaptics or whatever your package manager of choice is, install the following

libv4l-0
libjasper1
libjasper-dev
libjasper-runtime

Then with your favorite camera software, launch in the terminal with the following LD_PRELOAD

LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so camgrab

The above will launch camgrab with the v4l compatibility camgrab and almost every other webcam software for Jaunty needs.

Revision history for this message
Peter Swinkels (peter-swinkels) wrote :

Thank you very much. This appears to have fixed the problem for camgrab. When I try "LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so came" or "LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so hasciicam" It seems I still have the same problems as before.

Revision history for this message
tdn (spam-thomasdamgaard) wrote :

I can confirm this bug in karmic.

Revision history for this message
pype (pype-1999-geo) wrote :

running Karmik here, stumbled upon this bug using
Bus 007 Device 002: ID 046d:08af Logitech, Inc. QuickCam Easy/Cool

and tried the solution proposed above (LD_PRELOAD=/.../v4l1compat.so)
got the following output:
ioctl VIDIOCMCAPTURE: Invalid argument
***** Imlib2 Developer Warning ***** :
    This program is calling the Imlib call:
        imlib_image_set_format();
    With the parameter:
        image
    being NULL. Please fix your program.
***** Imlib2 Developer Warning ***** :
    This program is calling the Imlib call:
        imlib_save_image_with_error_return();
    With the parameter:
        image
    being NULL. Please fix your program.

***** Imlib2 Developer Warning ***** :
    This program is calling the Imlib call:
        imlib_free_image_and_decache();
    With the parameter:
        image
    being NULL. Please fix your program.
Error saving image shot.jpg - Unknown error (15078256). Attempting to continue

(I guess the first line is the root of all evil)

Revision history for this message
Juan Gonzalez (jglopez) wrote :

Here on Maverick, same situation as pype.

Revision history for this message
Surrogard (surrogard) wrote :

Make sure you use the correct video device, on my computer the standard device (/dev/video0) is the TV-Card with capture capabilities returning the same results as pype and Juan.
Using /dev/video1 works like a charm...

Revision history for this message
pype (pype-1999-geo) wrote :

 `camgrab -help` will tell me what the manpage should tell.
only /dev/video0 here, I'm afraid.

any substitute program to suggest ?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.