GES specify Clip starting?
killerrats
koreysjunkmail at gmail.com
Tue May 5 18:31:46 UTC 2020
I used as you said and worked perfectly. i put "clipStart" in replace with
the "0" i had in the assign to layer.
bool AddingTracksWithLayer(std::string filePath, GESTrackType mediatype,
guint64 startPos, GstClockTime LengthOfVideo, GESLayer* layer, GstClockTime
clipStart)
{
GError* error = NULL;
GESAsset* asst = NULL;
GESClip* clip = NULL;
gchar* source;
source = g_strdup_printf("%s", filePath.c_str());
asst = GES_ASSET(ges_uri_clip_asset_request_sync(source, &error));
if (asst == NULL)
{
std::cout << "create uri failed " << (error != NULL) ?
error->message :
"";
g_clear_error(&error);
return false;
}
clip = ges_layer_add_asset(layer
, asst
, startPos*GST_SECOND
, clipStart
, LengthOfVideo
, mediatype);
gst_object_unref(asst);
g_free(source);
return true;
}
-----
------------------------------
Gstreamer 1.14.3
------------------------------
Windows
--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
More information about the gstreamer-devel
mailing list