Gstreamer Editing Service Set Window Handle
killerrats
koreysjunkmail at gmail.com
Wed Apr 15 22:34:10 UTC 2020
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/
More information about the gstreamer-devel
mailing list