GES samples/tests?

Thibault Saunier tsaunier at gnome.org
Thu Sep 10 08:23:26 PDT 2015


Hello,

You are trying to convert a GESTrack into a GESVideoTransition. What
you should do is to get the GESTransitionClip (from the GESLayer) and
set the TransitionType on it.

Regards,

Thibault Sauiner

On Thu, Sep 10, 2015 at 5:04 PM, Carl Kovamees <ckovamees at novetta.com> wrote:
> Thibault Saunier-4 wrote
>> Setting the auto-transition to true worked great. Can I change the type of
>> transition? Sure, you should just retrieve the transition and set properties
>> on it.
>
> This is how I do it:
>
> GList * tracks = ges_timeline_get_tracks(timeline);
> for (GList * tmp = tracks; tmp; tmp = tmp->next) {
>   GESTrack * track = GES_TRACK(tmp->data);
>   if (track->type == GES_TRACK_TYPE_VIDEO) {
>     GESVideoStandardTransitionType t =
> ges_video_transition_get_transition_type(GES_VIDEO_TRANSITION(track));
>     if
> (!ges_video_transition_set_transition_type(GES_VIDEO_TRANSITION(track),
> GESVideoStandardTransitionType::GES_VIDEO_STANDARD_TRANSITION_TYPE_FAN_B))
>       throw std::exception("Could not set transition!");
>   }
>   gst_object_unref(track);
> }
>
> Is there an easier way? I get the following warnings:
>
> (MTest.exe:15960): GLib-GObject-WARNING **: invalid cast from
> 'GESVideoTrack' to
>  'GESVideoTransition'
>
> (MTest.exe:15960): GLib-GObject-WARNING **: invalid cast from
> 'GESVideoTrack' to
>  'GESVideoTransition'
>
> (MTest.exe:15960): GLib-GObject-WARNING **: invalid cast from
> 'GESVideoTrack' to
>  'GESTimelineElement'
>
> ** (MTest.exe:15960): CRITICAL **: ges_timeline_element_get_duration:
> assertion
> 'GES_IS_TIMELINE_ELEMENT (self)' failed
>
> (MTest.exe:15960): GLib-GObject-CRITICAL **: g_object_notify_by_pspec:
> assertion
>  'G_IS_PARAM_SPEC (pspec)' failed
>
> Thanks!
> ________________________________
> View this message in context: Re: GES samples/tests?
>
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>


More information about the gstreamer-devel mailing list