From 6336c1bb534bd3b24264d6a68f1c13d74560f35c Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Fri, 15 Jan 2021 15:27:30 -0300 Subject: [PATCH] launch: Add encoding profiles to the project So it is serialized on `--save` Part-of: --- tools/ges-launcher.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tools/ges-launcher.c b/tools/ges-launcher.c index acfd38eb71..baf8ae745c 100644 --- a/tools/ges-launcher.c +++ b/tools/ges-launcher.c @@ -477,13 +477,14 @@ _set_rendering_details (GESLauncher * self) return TRUE; } + proj = + GES_PROJECT (ges_extractable_get_asset (GES_EXTRACTABLE (self-> + priv->timeline))); + /* Setup profile/encoding if needed */ if (opts->outputuri) { GstEncodingProfile *prof = NULL; if (!opts->format) { - GESProject *proj = - GES_PROJECT (ges_extractable_get_asset (GES_EXTRACTABLE (self->priv-> - timeline))); const GList *profiles = ges_project_list_encoding_profiles (proj); if (profiles) { @@ -542,6 +543,8 @@ _set_rendering_details (GESLauncher * self) ""); describe_encoding_profile (prof); g_print ("\n"); + + ges_project_add_encoding_profile (proj, prof); } opts->outputuri = ensure_uri (opts->outputuri);