Gstreamer Editing Service Set Window Handle

Thibault Saunier tsaunier at gnome.org
Wed Apr 15 22:41:10 UTC 2020


The warning makes me think you either have a refcount issue, or that you
are mixing up variables.

Also, if you set the pipeline to RENDER mode you won't have the PREVIEW,
you could set `RENDER | PREVIEW` - it should work but hasen't been
extensively tested I have to admit.

BR,

Thibault

On Wed, Apr 15, 2020 at 6:34 PM killerrats <koreysjunkmail at gmail.com> wrote:

> this is before even playing the preview it will error out on setting the
> overlay. I set it to Render Mode and later will set to preview mode.
> setup...
>
>         gespipeline = ges_pipeline_new();
>
>         // Setup audio & video sinks
>         GstElement *audioSink = gst_element_factory_make("directsoundsink",
> "audio-sink");
>         ges_pipeline_preview_set_audio_sink(this->gespipeline, audioSink);
>
>         GstElement *videoSink = gst_element_factory_make("d3dvideosink",
> "video-sink");
>         ges_pipeline_preview_set_video_sink(this->gespipeline, videoSink);
>
>         GstVideoOverlay* vOverlay = GST_VIDEO_OVERLAY(gespipeline);
>         if (this->_windows_handle > 0)
>                 gst_video_overlay_set_window_handle(vOverlay,
> this->_windows_handle);
>         gst_object_unref(vOverlay);
>
>         timeline = ges_timeline_new();
>         a = GES_TRACK(ges_audio_track_new())
>                 , v = GES_TRACK(ges_video_track_new());
>         ges_pipeline_set_timeline(gespipeline, timeline);
>         ges_timeline_add_track(timeline, v);
>         ges_timeline_add_track(timeline, a);
> ... Add tracks();
>         ges_timeline_commit(timeline);
> ges_pipeline_set_render_settings(gespipeline, uri, mediacat_gen_profile());
>         this->mediacat_set_output(GES_PIPELINE_MODE_RENDER);
>
> error happens:
>
> "(CombineVideoFiles.exe:58456): GES-CRITICAL **:
> ges_pipeline_set_render_settings: assertion 'GES_IS_PIPELINE (pipeline)'
> failed
>
> (CombineVideoFiles.exe:58456): GES-CRITICAL **: ges_pipeline_set_mode:
> assertion 'GES_IS_PIPELINE (pipeline)' failed
>
> (CombineVideoFiles.exe:58456): GLib-GObject-WARNING **: invalid unclassed
> pointer in cast to 'GstElement'
> "
>
>
>
> -----
> ------------------------------
> Gstreamer 1.14.3
> ------------------------------
> Windows
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20200415/3e87ea38/attachment-0001.htm>


More information about the gstreamer-devel mailing list