How to segment seek in dynamic pipeline

Thibault Saunier tsaunier at gnome.org
Tue Sep 1 15:19:37 UTC 2020


Hi,

You should obviously be able to have several clips on a single layer,
please provide a backtrace if you get a segfault.

Note that you should use `ges_timeline_append_layer` and do not take care
of setting layer priority which is now deprecated.

Transition can happen only on a single layer, also you should use the
timeline `auto-transition` option so the feature is much more simple to use
(and usually does the right thing).

If you want to create a crossfade between layers you can interpolate the
`alpha` child property of the video source as explained in a previous mail.

- Thibault

On Tue, Sep 1, 2020 at 10:39 AM xmufzy <xmufzy at foxmail.com> wrote:

> 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/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20200901/5d84ae1d/attachment-0001.htm>


More information about the gstreamer-devel mailing list