Gstreamer Editing Service Tracks Moving and Hide video

killerrats koreysjunkmail at gmail.com
Sat Sep 28 21:35:54 UTC 2019


        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());	GESTrackElement* track_element;	GstElement
*audioSink = NULL;	GstElement *videoSink = NULL;        std::string
uri_string = std::string("file://C/temp/test.mp4");	std::string uri_string2
= std::string("file://C/temp/testing2.mp4");	GESUriClip *clip =
ges_uri_clip_new(uri_string.c_str());	GESUriClip *clip2 =
ges_uri_clip_new(uri_string2.c_str());	GESUriClipAsset* asstcl =
GES_URI_CLIP_ASSET(clip);	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.14.3
------------------------------
Windows
--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20190928/22790d1f/attachment.html>


More information about the gstreamer-devel mailing list