[Bug 729120] Gstreamer Editing Services (GES)(1.2.1) samples Using Gstreamer 1.2.4.1 on windows

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Thu May 8 09:10:07 PDT 2014


https://bugzilla.gnome.org/show_bug.cgi?id=729120
  GStreamer | gst-editing-services | 1.2.4

Benas <el.el86> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |NOTABUG

--- Comment #1 from Benas <el.el86 at yahoo.com> 2014-05-08 16:10:04 UTC ---
I edited "test1.c" example and now it works:

#include <ges/ges.h>

int main (int argc, gchar ** argv)
{
  GESAsset *src_asset;
  GESPipeline *pipeline;
  GESTimeline *timeline;
  GESClip *source;
  GESLayer *layer;
  GMainLoop *mainloop;
  GError **error;
  gchar *uri;
  GESUriClipAsset *asset;
  /* Initialize GStreamer (this will parse environment variables and
commandline
   * arguments. */
  gst_init (&argc, &argv);

  /* Initialize the GStreamer Editing Services */
  ges_init ();

  /* Setup of a A/V timeline */

  /* This is our main GESTimeline */
  timeline = ges_timeline_new_audio_video ();

  /* We are only going to be doing one layer of clips */
  layer = ges_layer_new ();

  /* Add the tracks and the layer to the timeline */
  if (!ges_timeline_add_layer (timeline, layer))
    return -1;

  /* We create a simple asset able to extract GESTestClip */
  uri = gst_filename_to_uri (argv[1], NULL);
  asset = ges_uri_clip_asset_request_sync(uri,error);
  src_asset = GES_ASSET(asset);

  /* Add sources to our layer */
  ges_layer_add_asset (layer, src_asset, 0, 0, 4*GST_SECOND,
      GES_TRACK_TYPE_UNKNOWN);

  /* In order to view our timeline, let's grab a convenience pipeline to put
   * our timeline in. */
  pipeline = ges_pipeline_new ();

  /* Add the timeline to that pipeline */
  if (!ges_pipeline_set_timeline (pipeline, timeline))
    return -1;

  /* The following is standard usage of a GStreamer pipeline (note how you
haven't
   * had to care about GStreamer so far ?).
   *
   * We set the pipeline to playing ... */
  gst_element_set_state (GST_ELEMENT (pipeline), GST_STATE_PLAYING);

  /* .. and we start a GMainLoop. GES **REQUIRES** a GMainLoop to be running in
   * order to function properly ! */
  mainloop = g_main_loop_new (NULL, FALSE);

  /* Simple code to have the mainloop shutdown after 4s */
  g_timeout_add_seconds (4, (GSourceFunc) g_main_loop_quit, mainloop);
  g_main_loop_run (mainloop);

  return 0;
}

-- 
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