[Bug 646211] New: [camerabin] state changes need to be made when recording a video

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Wed Mar 30 02:13:46 PDT 2011

  GStreamer | gst-plugins-bad | 0.10.21

           Summary: [camerabin] state changes need to be made when
                    recording a video
    Classification: Platform
           Product: GStreamer
           Version: 0.10.21
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gst-plugins-bad
        AssignedTo: gstreamer-bugs at lists.freedesktop.org
        ReportedBy: ralucaelena1985 at gmail.com
         QAContact: gstreamer-bugs at lists.freedesktop.org
      GNOME target: ---
     GNOME version: ---

Cheese had a problem (bug #645975): after recording a video or taking
a screenshot, the next video recording made was black-only.
After fiddling around a while I came up with this patch:

  g_object_set (priv->camerabin, "mode", MODE_VIDEO, NULL);
+  gst_element_set_state (priv->camerabin, GST_STATE_READY);
  g_object_set (priv->camerabin, "filename", filename, NULL);
  g_signal_emit_by_name (priv->camerabin, "capture-start", 0);
+  gst_element_set_state (priv->camerabin, GST_STATE_PLAYING);
  priv->is_recording = TRUE;

It's not very clear from the documentation why this hack is needed -
or if another better one should be proposed.

I have gstreamer0.10-plugins-bad 0.10.21-1ubuntu7 from Ubuntu 11.04.
I tried installing gstreamer + plugins from git but I just managed to
make all applications fail to render video at all and reverted to the
packaged version.

Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the gstreamer-bugs mailing list