<div dir="ltr"><div>Hi,</div><div><br></div><div>You should be able to simply do:</div><div><br></div><div><br></div><div>``` python</div><div>splitmux = Gst.ElementFactory.make("splitmuxsink")                                                                                                                                                                                                                                                                    <br>....<br>splitmux.emit("split-now")                                                                                                                                                                                                                                                                                            <br></div><div>```</div><div><br></div><div>The documentation[0] is broken for action signals and I opened a bug about that[1].</div><div><br></div><div>Regards</div><div><br></div><div>- Thibault<br></div><div><br></div><div>[0] <a href="https://gstreamer.freedesktop.org/documentation/multifile/splitmuxsink.html?gi-language=python#splitmuxsink::split-now" target="_blank">https://gstreamer.freedesktop.org/documentation/multifile/splitmuxsink.html?gi-language=python#splitmuxsink::split-now</a></div><div>[1] <a href="https://github.com/hotdoc/hotdoc/issues/211">https://github.com/hotdoc/hotdoc/issues/211</a></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Sep 29, 2020 at 8:45 PM wzhouuuu <<a href="mailto:wei.zhou1001@gmail.com" target="_blank">wei.zhou1001@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi all,<br>
<br>
I'm using splitmuxsink to save chunk of videos. I'd like to use its signal<br>
`split-now`. However, how should I send that signal using Python? I saw<br>
there's a C++ implementation,  but i can't find any python implementation. <br>
      signals[SIGNAL_SPLIT_NOW] =<br>
      g_signal_new ("split-now", G_TYPE_FROM_CLASS (klass),<br>
      G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,<br>
      G_STRUCT_OFFSET (GstSplitMuxSinkClass, split_now), NULL, NULL, NULL,<br>
      G_TYPE_NONE, 0);<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://gstreamer-devel.966125.n4.nabble.com/" rel="noreferrer" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div>
<br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><font color="#888888">Thibault Saunier, Igalia - <a href="http://www.igalia.com" target="_blank">www.igalia.com</a><a href="http://www.centricular.com" rel="noreferrer" target="_blank"><span></span></a></font></div></div>