Multifilesink messages and unclear doc

Thibault Saunier tsaunier at gnome.org
Fri Jun 14 20:06:29 UTC 2019


Him

Those fields are inside the GstStructure that you can get from the message
using: gst_message_get_structure[0]. Hotodoc[1] is somehow reporting wrong
types for those fields in the python doc, something to fix there (please
report a bug)

Regards,

Thibault Saunier

[0]
https://gstreamer.freedesktop.org/documentation/gstreamer/gstmessage.html?gi-language=python#
[1] https://github.com/hotdoc/hotdoc

On Fri, Jun 14, 2019 at 4:00 PM pisymbol . <pisymbol at gmail.com> wrote:

> The doc states the following:
>
> "If the post-messages
> <https://gstreamer.freedesktop.org/documentation/multifile/multifilesink.html#multifilesink:post-messages>
> property is TRUE
> <https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS>,
> it sends an application message named GstMultiFileSink after writing each
> buffer.
>
> The message's structure contains these fields:
>
>    - int <https://docs.python.org/3/library/functions.html#int> *filename:
>    the filename where the buffer was written.
>    - int <https://docs.python.org/3/library/functions.html#int> index:
>    index of the buffer.
>    - int <https://docs.python.org/3/library/functions.html#int> timestamp:
>    the timestamp of the buffer.
>    - int <https://docs.python.org/3/library/functions.html#int>
>    stream-time: the stream time of the buffer.
>    - int <https://docs.python.org/3/library/functions.html#int>
>    running-time`: the running_time of the buffer.
>    - int <https://docs.python.org/3/library/functions.html#int> duration:
>    the duration of the buffer.
>    - int <https://docs.python.org/3/library/functions.html#int> offset:
>    the offset of the buffer that triggered the message.
>    - int <https://docs.python.org/3/library/functions.html#int> offset-end:
>    the offset-end of the buffer that triggered the message"
>
> Source:
> https://gstreamer.freedesktop.org/documentation/multifile/multifilesink.html?gi-language=python#properties
>
> But when my pipeline runs, the message I see on the bus is
> Gst.MessageType.ELEMENT with the message.src set to a GstMultiFileSink.
>
> Where can I get the application specific data? I need a callback after
> every capture file is written via multifilesink.
>
> Thanks!
>
> -aps
> _______________________________________________
> 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/fb4c5cab/attachment.html>


More information about the gstreamer-devel mailing list