Picture filesize is 0 byte

Bug #723370 reported by Joel Dimbernat
30
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Photostory
Fix Committed
High
Unassigned

Bug Description

When I take a picture, the countdown starts and the pic is taken. But then it doesn't appear, instead there is the stock gtk "broken image" icon.

I tried to open the picture in eye of gnome, impossible to load it. The file size is also 0 byte.

Probably a problem in the gstreamer pipeline with my config, but since it works in cheese, I think it's worth reporting.

Revision history for this message
Joel Auterson (joel-auterson) wrote :

I believe this is a hardware issue, as different webcams have different delays. Will look into making Gstreamer wait until the camera is ready?

Changed in photostory:
importance: Undecided → High
Revision history for this message
calmglow (calmglow) wrote :

I also have a same problem. My laptop's model is Lenovo X201i. And the Ubuntu version is 10.10.

Revision history for this message
Javier (jnorambuena) wrote :

Same problem with maverick on acer one.

Revision history for this message
Joel Dimbernat (joel-dimbernat-gmail) wrote :

I tried

[bokal@GreenLight photostory]$ gst-launch-0.10 v4l2src ! video/x-raw-yuv,width=640,height=480 ! ffmpegcolorspace ! pngenc ! filesink location=foo.png
Définition du pipeline à PAUSED...
Le pipeline est actif et n'a pas besoin de phase PREROLL...
Passage du pipeline à la phase PLAYING...
New clock: GstSystemClock
EOS reçu de l'élément « pipeline0 ».
Execution ended after 2597575094 ns.
Définition du pipeline à PAUSED...
Définition du pipeline à READY (prêt)...
Définition du pipeline à NULL...
Libération du pipeline...

Seems like on my comp it's taking 2,5s to make the picture.
So I modified time.sleep(1) => time.sleep(3) in takePic() and it works.

Revision history for this message
Philipp Zöchner (zornp) wrote :

same problem under 10.10 with my dell studio. picture taking takes 1.6s

Revision history for this message
Joel Dimbernat (joel-dimbernat-gmail) wrote :

I've uploaded in my branch : https://code.launchpad.net/~joel-dimbernat-gmail/photostory/gettext some code to wait for the EOS event before closing the pipeline in capture().

It seems to work for me.

Revision history for this message
Christophe de Carvalho (christophe-dcpm) wrote :

just test the code of joel Dombernat and it's work for me too.

Revision history for this message
Vadim Peretokin (vperetokin) wrote :

Broken for me as well while Cheese and Skype work flawlessly.

Revision history for this message
Joel Dimbernat (joel-dimbernat-gmail) wrote :

Hi Vadim,

Did you try with the latest revision of the code? or is it 1.0?

Revision history for this message
Seria (andreas-boettger) wrote :

1,1 ms here
gst-launch-0.10 v4l2src ! video/x-raw-yuv,width=640,height=480 ! ffmpegcolorspace ! pngenc ! filesink location=foo.png
Leitung wird auf PAUSIERT gesetzt ...
Leitung ist aktiv und erfordert keinen VORLAUF …
Leitung wird auf ABSPIELEN gesetzt ...
New clock: GstSystemClock
EOS wurde von Element »pipeline0« erhalten.
Execution ended after 1113093476 ns.
Leitung wird auf PAUSIERT gesetzt ...
Leitung wird auf BEREIT gesetzt ...
Leitung wird auf NULL gesetzt ...
Leitung wird geleert ...

Revision history for this message
Enam Mijbah Noor (emnoor) wrote :

Had the same problem with the one installed via PPA. But when I replaced the /usr/bin/photostory with the one I got from `bzr branch lp:photostory` and now it works! There is some difference in the code it seems.

Josh Brown (joshbrown)
Changed in photostory:
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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