GES ges_formatter_save_to_uri example?

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

GES ges_formatter_save_to_uri example?

pdesantis
Hello all,

I'm having difficulty figuring out how to use ges_formatter_save_to_uri. How do I instantiate a GESFormatter object to pass as the first parameter?

I've tried declaring a GESFormatter variable in the stack and passing a pointer to it, but that results in a SIGSEGV.

I've also tried this:
GESXmlFormatter *formatter = GES_XML_FORMATTER(g_object_new(ges_xml_formatter_get_type(), nullptr));
But it fails on the assertion "formatter->project" when calling ges_formatter_save_to_uri

Here are the docs:

Thanks!
Pat

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

Re: GES ges_formatter_save_to_uri example?

Thibault Saunier-4
Hi,

You probably want to use `ges_timeline_save_to_uri` instead (probably
passing NULL as a formatter), that method should be probably be
deprecated.

Regards,

Thibault

On Thu, Jan 31, 2019 at 4:23 PM Pat DeSantis <[hidden email]> wrote:

>
> Hello all,
>
> I'm having difficulty figuring out how to use ges_formatter_save_to_uri. How do I instantiate a GESFormatter object to pass as the first parameter?
>
> I've tried declaring a GESFormatter variable in the stack and passing a pointer to it, but that results in a SIGSEGV.
>
> I've also tried this:
>
> GESXmlFormatter *formatter = GES_XML_FORMATTER(g_object_new(ges_xml_formatter_get_type(), nullptr));
>
> But it fails on the assertion "formatter->project" when calling ges_formatter_save_to_uri
>
> Here are the docs:
> https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer-editing-services/html/GESFormatter.html#ges-formatter-save-to-uri
>
> Thanks!
> Pat
>
> _______________________________________________
> 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