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 ...
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: developers ppa
1) The same thing happens with stock gstreamer from Natty as from gstreamer installed from the gstreamer-
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: camerabin0/ GstAutoVideoSin k:autovideosink 0/GstXvImageSin k:autovideosink 0-actual- sink-xvimage: Output window was closed c(1311) : gst_xvimagesink _handle_ xevents (): /GstCameraBin: camerabin0/ GstAutoVideoSin k:autovideosink 0/GstXvImageSin k:autovideosink 0-actual- sink-xvimage
$ 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:
Additional debug info:
xvimagesink.
Execution ended after 1695783781 ns.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...