mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
launch: Add encoding profiles to the project
So it is serialized on `--save` Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-editing-services/-/merge_requests/227>
This commit is contained in:
parent
8094f8cd93
commit
6336c1bb53
1 changed files with 6 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue