Acquisition doesn't work on DVCAM nor WEBCAM

Bug #498619 reported by Raffaella Traniello
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Luciole
Fix Released
High
NicoInattendu
0.8
Fix Released
High
NicoInattendu
luciole (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: luciole

After creating a new project or reloading an old one, either with Webcam or DVCam, when pressing the "Acquire" button I get the following error:

"Acquisition error. Resource busy or not available. :Could not initialise Xv output"

I can't see any video preview in the window and I can't capture.

Used to work perfectly. Worked on Nov 30 (After pressing the "Acquire" button I could see the preview and I was able to take shots). On Dec 14 didn't work.

Webcam works in cheese and DVcams caputre in Kino (I tested 2 different cameras).

The problem was found on package 0.7.3 and persists in 0.7.4.
Found on my Ubuntu Karmic 32bit desktop, on my Ubuntu Karmic 64bit laptop, on my Ubuntu Karmic 32bit PENDRIVE.

Thank you!
Raffaella

Related branches

Revision history for this message
NicoInattendu (nico-inattendu) wrote :

Please can you try this command and upload luciole.log file :
luciole -v > luciole.log 2>&1

Luciole starts, than reproduce the Accqusition error, after leave luciole. And upload here the luciole.log file

Revision history for this message
NicoInattendu (nico-inattendu) wrote :

I have some complementary questions :
Which kind of video card is used ? Ati, nvidia, other ?
Is compiz activated ?

Revision history for this message
NicoInattendu (nico-inattendu) wrote :

For the webcam is the following command, on a terminal, operates properly ?
gst-launch-0.10 v4l2src ! ffmpegcolorspace ! ximagesink

Revision history for this message
Raffaella Traniello (raffaella-traniello) wrote :

Salut!
Here is my #1 test result:

Laptop Ubuntu 9.10 64bit,
NvidiaQuadro video card,
Nvidia proprietary driver disabled,
compiz disabled.

The command
  gst-launch-0.10 v4l2src ! ffmpegcolorspace ! ximagesink
activates the webcam correctly.

I created the (attached) log file with the following operations:
- open Luciole with luciole -v > luciole.log 2>&1
- Create new project (webcam)
- Press the luciole button
- Get the scary error message ;-)
- Close the project
- Exit

Thank you very much for your work on this bug.
Raffaella

Revision history for this message
NicoInattendu (nico-inattendu) wrote :

Thanks for the indo and log.

With this command modified a bit : it still operate ok :

gst-launch-0.10 v4l2src ! ffmpegcolorspace ! xvimagesink

( xvimagesink instead of ximagesink)

Revision history for this message
NicoInattendu (nico-inattendu) wrote :

After reading the log I think the problem is about xv usage.

Can you return the result of command xvinfo.
and in particular the number of available ports

Revision history for this message
Raffaella Traniello (raffaella-traniello) wrote :

   Yay! :-)

   I get:

$ gst-launch-0.10 v4l2src ! ffmpegcolorspace ! xvimagesink

(gst-launch-0.10:2804): GLib-WARNING **: g_set_prgname() called multiple times
Impostazione della pipeline a PAUSED ...
ERRORE: la pipeline non vuole mettersi in pausa.
ERRORE: dall'elemento /GstPipeline:pipeline0/GstXvImageSink:xvimagesink0: Could not initialise Xv output
Informazioni di debug aggiuntive:
xvimagesink.c(1414): gst_xvimagesink_get_xv_support (): /GstPipeline:pipeline0/GstXvImageSink:xvimagesink0:
No port available
Impostazione della pipeline a NULL ...
Esecuzione di free sulla pipeline...

  and

raffa@raffa-laptop:~$ xvinfo
X-Video Extension version 2.2
screen #0
 no adaptors present

Revision history for this message
NicoInattendu (nico-inattendu) wrote :

Ok thanks for the info and command results
We are going on the right direction ;-)
I go to replace xvimagsink by autovideosink or ximagesink .

I go also to look forward the differences between al this xxxSinks stuff.

Did you a correct result with ? :
gst-launch-0.10 v4l2src ! ffmpegcolorspace ! autovideosink

Revision history for this message
Raffaella Traniello (raffaella-traniello) wrote :

(It's so exciting to chase bugs!) ;-)

   $ gst-launch-0.10 v4l2src ! ffmpegcolorspace ! autovideosink

activates the webcam correctly.

I have the feeling that it works slower than

   $ gst-launch-0.10 v4l2src ! ffmpegcolorspace ! ximagesink

First time I got the "autovideosink" image after 10 seconds, then after 3 seconds like the "ximagesink" one.

But for sure it works!!!

Revision history for this message
NicoInattendu (nico-inattendu) wrote :

I agree that ximagesink is faster than autovideosink

But when i set ximagesink in luciole the acquisition does not feet in the window ( only a part of the image acquired is show).
So I think I go to use autovideosink. Bur before I'll go to take a look in cheese to know how they do that.

Changed in luciole:
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → NicoInattendu (nico-inattendu)
importance: Medium → High
milestone: none → 0.8.1
status: Confirmed → In Progress
Revision history for this message
NicoInattendu (nico-inattendu) wrote :

Better to ise autovideosink . I think because it scans the availabe videosink before displaying.

Changed in luciole:
status: In Progress → Fix Committed
Revision history for this message
Raffaella Traniello (raffaella-traniello) wrote :

Hi!

Just by curiosity I tried capturing again from webcam in Luciole 0.7.3 (31) on my Ubuntu Karmic laptop (64bit, Intel).
Again, no acquisition was possible.

I tried enabling hardware acceleration (enabling the proprietary nVidia Quadro driver)
This time webcam acquisition worked properly.

I hope this information can be useful.
Ciao
Raffaella

Revision history for this message
Raffaella Traniello (raffaella-traniello) wrote :
Download full text (3.7 KiB)

Comparing the xvinfo output without and with nVidia proprietary driver:

      nVidia driver disabled:

raffa@raffa-laptop:~$ xvinfo
X-Video Extension version 2.2
screen #0
 no adaptors present

      nVidia driver enabled:

raffa@raffa-laptop:~$ xvinfo
X-Video Extension version 2.2
screen #0
  Adaptor #0: "NV17 Video Texture"
    number of ports: 32
    port base: 280
    operations supported: PutImage
    supported visuals:
      depth 24, visualID 0x21
      depth 24, visualID 0x24
      depth 24, visualID 0x25
      depth 24, visualID 0x26
      depth 24, visualID 0x27
      depth 24, visualID 0x28
      depth 24, visualID 0x29
      depth 24, visualID 0x2a
      depth 24, visualID 0x2b
      depth 24, visualID 0x2c
      depth 24, visualID 0x2d
      depth 24, visualID 0x2e
      depth 24, visualID 0x2f
      depth 24, visualID 0x30
      depth 24, visualID 0x31
      depth 24, visualID 0x32
      depth 24, visualID 0x33
      depth 24, visualID 0x34
      depth 24, visualID 0x35
      depth 24, visualID 0x36
      depth 24, visualID 0x37
      depth 24, visualID 0x38
      depth 24, visualID 0x39
      depth 24, visualID 0x3a
      depth 24, visualID 0x3b
      depth 24, visualID 0x3c
      depth 24, visualID 0x3d
      depth 24, visualID 0x3e
      depth 24, visualID 0x22
      depth 24, visualID 0x3f
      depth 24, visualID 0x40
      depth 24, visualID 0x41
      depth 24, visualID 0x42
      depth 24, visualID 0x43
      depth 24, visualID 0x44
      depth 24, visualID 0x45
      depth 24, visualID 0x46
      depth 24, visualID 0x47
      depth 24, visualID 0x48
      depth 24, visualID 0x49
      depth 24, visualID 0x4a
      depth 24, visualID 0x4b
      depth 24, visualID 0x4c
      depth 24, visualID 0x4d
      depth 24, visualID 0x4e
      depth 24, visualID 0x4f
      depth 24, visualID 0x50
      depth 24, visualID 0x51
      depth 24, visualID 0x52
      depth 24, visualID 0x53
      depth 24, visualID 0x54
      depth 24, visualID 0x55
      depth 24, visualID 0x56
      depth 24, visualID 0x57
      depth 24, visualID 0x58
      depth 24, visualID 0x59
    number of attributes: 7
      "XV_SET_DEFAULTS" (range 0 to 0)
              client settable attribute
      "XV_ITURBT_709" (range 0 to 1)
              client settable attribute
              client gettable attribute (current value is 0)
      "XV_SYNC_TO_VBLANK" (range 0 to 1)
              client settable attribute
              client gettable attribute (current value is 1)
      "XV_BRIGHTNESS" (range -512 to 511)
              client settable attribute
              client gettable attribute (current value is 0)
      "XV_CONTRAST" (range 0 to 8191)
              client settable attribute
              client gettable attribute (current value is 4096)
      "XV_SATURATION" (range 0 to 8191)
              client settable attribute
              client gettable attribute (current value is 4096)
      "XV_HUE" (range 0 to 360)
              client settable attribute
              client gettable attribute (current value is 0)
    maximum XvImage size: 2046 x 2046
    Number of image formats: 4
      id: 0x32595559 (YUY2)
        guid: 59555932-0000-0010-8000-00aa0...

Read more...

Revision history for this message
Raffaella Traniello (raffaella-traniello) wrote :

Just to be clear:

The bug is fixed in version 0.8 and I can acquire also with no proprietary driver enabled.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package luciole - 0.8.2-0ubuntu1

---------------
luciole (0.8.2-0ubuntu1) lucid; urgency=low

  * New upstream release. Fixes:
    - LP: #498619 Acquisition doesn't work on DVCAM nor WEBCAM
    - LP: #500649 Excessive CPU use while capturing
    - LP: #500158 Impossible to change export path
    - LP: #500652 Weird Mixer behavior
    - LP: #505288 Error when opening existing project
  * Switch to dpkg-source 3.0 (quilt) format
  * debian/README.source: deleted as it's not useful anymore
  * debian/quilt: deleted build dependency on quilt
  * debian/compat: bumped version to 7
  * debian/rules: Converted to debhelper 7 style
  * debian/manpages: created to install luciole.1 manpage
 -- Fabrice Coutadeur <email address hidden> Mon, 08 Feb 2010 20:09:50 +0100

Changed in luciole (Ubuntu):
status: New → Fix Released
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.