After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 645427 - camerabin throws an error in gst_camerabin_capture_start gstcamerabin.c(4036)
camerabin throws an error in gst_camerabin_capture_start gstcamerabin.c(4036)
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
0.10.21
Other Linux
: Normal normal
: NONE
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2011-03-21 17:53 UTC by Pedro Villavicencio
Modified: 2012-10-21 13:13 UTC
See Also:
GNOME target: ---
GNOME version: 2.31/2.32



Description Pedro Villavicencio 2011-03-21 17:53:36 UTC
this bug report has been filed here:

https://bugs.launchpad.net/ubuntu/+source/gst-plugins-bad0.10/+bug/734600

"An easy way to observe the error is using web_cam_box.py

Steps:
1. bzr branch lp:quidgets
2. cd quidgets/quickly/widgets
3. python web_cam_box.py, note that the default web cam is displaying properly
4. Click the "picture" button, this emits the capture-start signal

Result, an error message is retrieved from the bus:
Error: GStreamer encountered a general core library error. gstcamerabin.c(4036): gst_camerabin_capture_start (): /GstCameraBin:camera-source

Expected:
An "image-captured" message is sent on the bus

Package: gstreamer0.10-plugins-bad 0.10.21-1ubuntu4
"

"Running with GST_DEBUG=2 ...

rick@rick-mini10v:~/Projects/quidgets/quickly/widgets$ GST_DEBUG=2 python web_cam_box.py
0:00:00.079447007 1812 0x9c799e0 WARN GST_REGISTRY gstregistry.c:1184:gst_registry_scan_path_level:<registry0> ignoring old plugin /usr/lib/gstreamer-0.10/libgstvalve.so which has been merged into the corelements plugin
** Message: pygobject_register_sinkfunc is deprecated (GstObject)
0:00:01.155537967 1812 0xa223b58 WARN default xoverlay.c:354:gst_x_overlay_set_xwindow_id:<autovideosink0-actual-sink-xvimage> Using deprecated gst_x_overlay_set_xwindow_id()

0:00:08.351641219 1812 0x9c799e0 WARN camerabin camerabinimage.c:620:gst_camerabin_image_link_elements:<camerabinimage0> linking element failed
0:00:08.351846865 1812 0x9c799e0 WARN camerabin gstcamerabin.c:1042:gst_camerabin_change_mode:<camera-source> state change failed
0:00:08.351947067 1812 0x9c799e0 WARN camerabin gstcamerabin.c:4036:gst_camerabin_capture_start:<camera-source> error: starting capture failed
Error: GStreamer encountered a general core library error. gstcamerabin.c(4036): gst_camerabin_capture_start (): /GstCameraBin:camera-source
"

Thanks in advance,
Comment 1 Stefan Sauer (gstreamer, gtkdoc dev) 2011-04-20 21:05:19 UTC
1.) Please try with the latest GStreamer from the PPA.
2.) Fix some of the unrelated errors (remove stale /usr/lib/gstreamer-0.10/libgstvalve.so, don't use deprecated api in web_cam_box.py - gst_x_overlay_set_xwindow_id())
3.) Please attach the output from v4l-info and xvinfo.
4.) can you run gst-launch camerabin ?
Comment 2 Akhil Laddha 2011-05-10 06:53:31 UTC
Pedro, any response with respect to comment#1 ?
Comment 3 Pedro Villavicencio 2011-05-13 07:31:42 UTC
We got a comment from an affected user but not from the original reporter. Pasting the information:

"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 ...
"
https://bugs.launchpad.net/ubuntu/+source/gst-plugins-bad0.10/+bug/734600/+attachment/2123130/+files/v4linfo

https://bugs.launchpad.net/ubuntu/+source/gst-plugins-bad0.10/+bug/734600/+attachment/2123131/+files/xvinfo
Comment 4 Tim-Philipp Müller 2012-10-21 13:13:41 UTC
This bug seems to relate to the old 0.10 camerabin1, which hasn't really been maintained for some time now. It is superseded by camerabin2 in 0.10 aka 'camerabin' in 1.0. Please file new bugs if there are still issues with those in 1.0.x, thanks!