gst editing service pipeline preview with Gst pipeline
Shishir Pokharel
akaccr at gmail.com
Mon Mar 20 17:27:21 UTC 2023
Hi devs,
I am trying to manipulate the ges preview to inject the gst-pipeline
(audio/video) to appsrc.
I am initializing pipeline as
*pipeline = GES.Pipeline() *
I am setting audio and video sink for preview as:
*video_sink = Gst.parse_bin_from_description(f"tee name=vtee ! queue !
fakesink",True)*
*audio_sink = Gst.parse_bin_from_description(f"tee name=atee ! queue !
fakesink",True)
pipeline.preview_set_video_sink(video_sink)pipeline.preview_set_audio_sink(audio_sink)*
Here is my pipe line for Gst bin
mybin = *Gst.parse_bin_from_description(f" queue name=vqueue ! videoconvert
! vp8enc ! webmmux name=webmuxer ! queue ! appsink queue name=aqueue !
audioconvert ! audioresample !
audio/x-raw,format=S16LE,layout=interleaved,rate=48000,channels=1 ! opusenc
! webmuxer.",False)*
I am trying to add this mybin to the pipeline and trying to connect Video
sink tee to video encoder and audio sink tee from pipeline to audio
encoder.
I have created required ghost pads and added to mybin and mybin added to
the pipeline, but when I try to connect mybin ghostpads from mybin to
ghostpad of tee on audio/video preview pipeline. I get "*<enum
GST_PAD_LINK_WRONG_HIERARCHY of type Gst.PadLinkReturn>*".
It seems like adding mybin to ges pipeline is not sufficient, can someone
lead me - how can I achieve this.
Thank you all in advance.
Thanks
/Shishir
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20230320/d4cf32aa/attachment.htm>
More information about the gstreamer-devel
mailing list