HLSSINK on new segment callback

Nicolas Dufresne nicolas.dufresne at gmail.com
Tue Mar 15 13:14:09 UTC 2016


Le mardi 15 mars 2016 à 08:36 +0300, Krutskikh Ivan a écrit :
> Hi, I'm also interested in this
> 14 марта 2016 г. 21:50 пользователь "Ugur" <ugur at younow.com> написал:
> > Hi,
> > 
> > I have the following pipeline x264enc -> mpegtsmux -> hlssink
> > 
> > I want to get notified when a a segment is completed (written to
> > the disk).
> > How can i do this?
> > 
> > Thanks

hlssink uses multifilesink internally and enable the post-message
property. This means, you get notified when files are created through
GStreamer bus messages. The messages are described here:

https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-g
ood-plugins/html/gst-plugins-good-plugins-multifilesink.html#gst-
plugins-good-plugins-multifilesink.description

Note, I don't see any messages that will tell you when a file is being
removed. Another way of getting notification, is to use GFileMonitor
which is part of GLib GIO library.

cheers,
Nicolas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160315/1e93f812/attachment.sig>


More information about the gstreamer-devel mailing list