How to specify output container / resolution / bitrate in GES

Hi i found this example.

But creating this container_profile throws TypeError: constructor returned NULL

How could i export video to webm with specified resolution and bitrate?

    container_profile = \
        GstPbutils.EncodingContainerProfile.new("pitivi-profile",
                                                "Pitivi encoding profile",
                                                Gst.Caps("video/webm"),
                                                None)

    video_profile = GstPbutils.EncodingVideoProfile.new(Gst.Caps("video/x-vp8"),
                                                        None,
                                                        Gst.Caps("video/x-raw"),
                                                        0)

You need to add the profile and the output path to the pipeline using pipeline.set_render_settings.

Link: GESPipeline

As for the resolution, you need to add the params specified in caps, like “video/webm,width=1280,height=720,…”

Use gst-inspect-1.0 to find the properties to set for the mime type you’re using.

See my post here about setting encoder properties in GES…