Multifilesink messages and unclear doc

Thibault Saunier tsaunier at gnome.org
Sat Jun 15 00:04:25 UTC 2019


This is now fixed:
https://gstreamer.freedesktop.org/documentation/multifile/multifilesink.html?gi-language=python

On Fri, Jun 14, 2019 at 4:45 PM Mathieu Duponchelle <mathieu at centricular.com>
wrote:

> On 6/14/19 10:16 PM, pisymbol . wrote:
>
> So the doc is flat out wrong. But after digging into source this worked
> for you Googlers:
>
> Register a message handler on your bus:
>
>      bus = pipeline.get_bus()
>      bus.add_watch(GLib.PRIORITY_DEFAULT, on_message)
>
> Then in on_message do:
>
>   def on_message(bus, message):
>         if message.type == Gst.MessageType.ELEMENT:
>             if message.src.name.startswith("multifilesink"):
>                 msg_struct = message.get_structure()
>                 print(msg_struct.get_string('filename')) # Prints out the
> current capture file
>
> Need MOAR doc! :-)
>
>
> Note that ideally, we would standardize the documentation for custom
> messages
> emitted by elements, but that needs doing :)
> _______________________________________________
> 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/20190614/885258e3/attachment-0001.html>


More information about the gstreamer-devel mailing list