Comment 6 for bug 734600

Revision history for this message
Simon Vermeersch (simonvermeersch) wrote :

I have the same issue and figured out the cause of it (but not yet how to solve this). When you comment out the following line:

self.camerabin.set_property("image-encoder",gst.element_factory_make("pngenc", "png_encoder"))

it works fine, except that it'll save as jpeg then instead of png.

As for the questions:
1) The same thing happens with stock gstreamer from Natty as from gstreamer installed from the gstreamer-developers ppa

2) I commented out the following: imagesink.set_xwindow_id(self.video_window.window.xid), which made gstreamer creates its own window to show the webcam output. I also tried using a fakesink so that nothing is shown. Both methods don't fix this problem.

3) Going to attach those to this bug.

4) That works fine, I launched it and afterwards closed the window once I could view my webcam:
$ gst-launch camerabin
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
ERROR: from element /GstCameraBin:camerabin0/GstAutoVideoSink:autovideosink0/GstXvImageSink:autovideosink0-actual-sink-xvimage: Output window was closed
Additional debug info:
xvimagesink.c(1311): gst_xvimagesink_handle_xevents (): /GstCameraBin:camerabin0/GstAutoVideoSink:autovideosink0/GstXvImageSink:autovideosink0-actual-sink-xvimage
Execution ended after 1695783781 ns.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...