Administrator
|
This post was updated on .
How to move the tracks on the timeline to make it start at a certain place?
How to make the video you add to only do audio and have the track not show video? ----- ------------------------------ Gstreamer 1.14.3 ------------------------------ Windows -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list gstreamer-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
------------------------------
Gstreamer 1.16.2 ------------------------------ Windows |
Hi How to move the tracks on the timeline to make it start at a certain place? You can move clips, tracks only represent the outputed stream, not something you can "move". You can move clip by setting their "start" property. How to make the video you add to only do audio and have the track not show When adding a clip to a layer, you can specify what track types to take into account, you can use https://gstreamer.freedesktop.org/documentation/gst-editing-services/geslayer.html?gi-language=c#ges_layer_add_asset or use https://gstreamer.freedesktop.org/documentation/gst-editing-services/gesclip.html?gi-language=c#ges_clip_set_supported_formats if you create the clip yourself. - Thibault
_______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
ges_timeline_element_set_start ges_timeline_element_set_duration // Start at a particular location within the source clip. ges_timeline_element_set_inpoint On Fri, Sep 27, 2019 at 10:55 AM Thibault Saunier <[hidden email]> wrote:
_______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Administrator
|
this might be the trick.
group.c
------------------------------
Gstreamer 1.14.3 ------------------------------ Windows Sent from the GStreamer-devel mailing list archive at Nabble.com. _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
------------------------------
Gstreamer 1.16.2 ------------------------------ Windows |
Administrator
|
This post was updated on .
In reply to this post by David Ing
GESPipeline* gespipeline = ges_pipeline_new(); GstElement* pipeline = GST_ELEMENT(gespipeline); GESTimeline *timeline = ges_timeline_new(); GESLayer *layer = ges_layer_new(), *layer2 = ges_layer_new(); GESTrack *a = GES_TRACK(ges_audio_track_new()) , *v = GES_TRACK(ges_video_track_new()); std::string uri_string = std::string("file://C/temp/test.mp4"); std::string uri_string2 = std::string("file://C/temp/testing2.mp4"); ges_timeline_add_track(timeline, v); ges_timeline_add_track(timeline, a); ges_timeline_add_layer(timeline, layer); ges_timeline_add_layer(timeline, layer2); GError* error = NULL; GESAsset* asst = GES_ASSET(ges_uri_clip_asset_request_sync(uri_string.c_str(), &error)); if (asst == NULL) { std::cout << "create uri failed " << (error != NULL) ? error->message : ""; g_clear_error(&error); return; } ges_layer_add_asset(layer , asst , GST_CLOCK_TIME_NONE , 0 , 14 * GST_SECOND , GES_TRACK_TYPE_VIDEO); gst_object_unref(asst); asst = GES_ASSET(ges_uri_clip_asset_request_sync(uri_string2.c_str(), &error)); if (asst == NULL) { std::cout << "create 2nd uri failed" << (error != NULL) ? error->message : ""; return; } ges_layer_add_asset(layer2 , asst , 14 * GST_SECOND , 0 , 27 * GST_SECOND , GES_TRACK_TYPE_AUDIO); gst_object_unref(asst);
------------------------------
Gstreamer 1.16.2 ------------------------------ Windows |
Administrator
|
In reply to this post by killerrats
Here is another example: asset.c
------------------------------
Gstreamer 1.14.3 ------------------------------ Windows Sent from the GStreamer-devel mailing list archive at Nabble.com. _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
------------------------------
Gstreamer 1.16.2 ------------------------------ Windows |
Free forum by Nabble | Edit this page |