SOLVED: Gstreamer Editing Service Tracks Moving and Hide video

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

SOLVED: Gstreamer Editing Service Tracks Moving and Hide video

killerrats
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
Reply | Threaded
Open this post in threaded view
|

Re: Gstreamer Editing Service Tracks Moving and Hide video

Thibault Saunier-4
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
video?


- Thibault



-----
------------------------------
Gstreamer 1.14.3
------------------------------
Windows
--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Gstreamer Editing Service Tracks Moving and Hide video

David Ing
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:
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
video?


- Thibault



-----
------------------------------
Gstreamer 1.14.3
------------------------------
Windows
--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Gstreamer Editing Service Tracks Moving and Hide video

killerrats
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
Reply | Threaded
Open this post in threaded view
|

Re: Gstreamer Editing Service Tracks Moving and Hide video

killerrats
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
Reply | Threaded
Open this post in threaded view
|

Re: Gstreamer Editing Service Tracks Moving and Hide video

killerrats
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