How to segment seek in dynamic pipeline

xmufzy xmufzy at foxmail.com
Tue Sep 1 14:39:33 UTC 2020


Hi,
I try with ges in c codes, the follow code would segmentation fault, but if
I add a new layer for each clip, it'll work fine, what's the problem?
And from examples/c/transition.c I find that I can only add transition for
single layer, is it right?

    priority=2;
    gchar *uri = gst_filename_to_uri ("./poc_backgroup.mp4", NULL);
    GESUriClip *src = ges_uri_clip_new (uri);
    g_assert (src);
    g_free (uri);
    //g_object_set (layer, "priority",priority,NULL);
    g_object_set (src, "start",offset, "priority",priority,NULL);
    ges_layer_add_clip (layer, (GESClip *) src);

    //layer = ges_layer_new ();
    //if (!ges_timeline_add_layer (timeline, layer))
    //    return -1;
    offset+=2*GST_SECOND;
    inpoint=3*GST_SECOND;
    duration=9*GST_SECOND;
    priority=1;
    uri = gst_filename_to_uri ("./poc_backgroup.mp4", NULL);
    src = ges_uri_clip_new (uri);
    g_assert (src);
    g_free (uri);
    g_object_set (src, "start",offset,"in-point", inpoint,"duration" ,
duration, "priority",priority,NULL);
    ges_layer_add_clip (layer, (GESClip *) src);
    ges_timeline_element_set_child_properties (GES_TIMELINE_ELEMENT
((GESClip*)src), "posx", 100, "posy", 100, "width",200,"height",200, NULL);






--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list