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 |
Hi, I'm also interested in this 14 марта 2016 г. 21:50 пользователь "Ugur" <[hidden email]> написал:
Hi, _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Le mardi 15 mars 2016 à 08:36 +0300, Krutskikh Ivan a écrit :
> Hi, I'm also interested in this > 14 марта 2016 г. 21:50 пользователь "Ugur" <[hidden email]> написал: > > 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 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 _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel signature.asc (188 bytes) Download Attachment |
Hi Nicolas, when I click on your link I get a 404 error
Gruesse -----Ursprüngliche Nachricht----- Von: gstreamer-devel [mailto:[hidden email]] Im Auftrag von Nicolas Dufresne Gesendet: Dienstag, 15. März 2016 14:14 An: Discussion of the development of and with GStreamer Betreff: Re: HLSSINK on new segment callback Le mardi 15 mars 2016 à 08:36 +0300, Krutskikh Ivan a écrit : > Hi, I'm also interested in this > 14 марта 2016 г. 21:50 пользователь "Ugur" <[hidden email]> написал: > > 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 _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Sorry, my e-mail client made a mess of it :-(
-----Ursprüngliche Nachricht----- Von: gstreamer-devel [mailto:[hidden email]] Im Auftrag von Thornton, Keith Gesendet: Dienstag, 15. März 2016 14:49 An: [hidden email]; Discussion of the development of and with GStreamer Betreff: AW: HLSSINK on new segment callback Hi Nicolas, when I click on your link I get a 404 error Gruesse -----Ursprüngliche Nachricht----- Von: gstreamer-devel [mailto:[hidden email]] Im Auftrag von Nicolas Dufresne Gesendet: Dienstag, 15. März 2016 14:14 An: Discussion of the development of and with GStreamer Betreff: Re: HLSSINK on new segment callback Le mardi 15 mars 2016 à 08:36 +0300, Krutskikh Ivan a écrit : > Hi, I'm also interested in this > 14 марта 2016 г. 21:50 пользователь "Ugur" <[hidden email]> написал: > > 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 _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
In reply to this post by Nicolas Dufresne-4
Thanks a lot Nicolas.
I looked at it a little bit more but still couldn't find a way. Do i need to register or do something special for the message? I am checking all the messages in my bus callback but i don't see any message about the multifilesink event. |
Le mardi 15 mars 2016 à 09:49 -0700, Ugur a écrit :
> Thanks a lot Nicolas. > > I looked at it a little bit more but still couldn't find a way. Do i > need to > register or do something special for the message? I am checking all > the > messages in my bus callback but i don't see any message about the > multifilesink event. Indeed, this seems broken, can you file a bug please ? https://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer&component=gs t-plugins-bad The pipeline I have used to test is: > gst-launch-1.0 -m videotestsrc ! x264enc tune=zerolatency ! mpegtsmux > ! hlssink message-forward=true cheers, Nicolas _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel signature.asc (188 bytes) Download Attachment |
In reply to this post by Ugur
Le mardi 15 mars 2016 à 09:49 -0700, Ugur a écrit :
> Thanks a lot Nicolas. > > I looked at it a little bit more but still couldn't find a way. Do i > need to > register or do something special for the message? I am checking all > the > messages in my bus callback but i don't see any message about the > multifilesink event. Ok, in fact it's explicitly dropped. See: https://cgit.freedesktop.org/gstreamer/gst-plugins-bad/tree/ext/hls/gst hlssink.c#n316 cheers, Nicolas _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel signature.asc (188 bytes) Download Attachment |
:) i just figured it out too. I removed those lines to test the application. Dropping the message is not really the best idea if there's no custom message that can be used. Thanks for your help.
|
so the only option is to rebuild a package gst-plugins-bad? That's inconvinient 2016-03-15 21:47 GMT+03:00 Ugur <[hidden email]>: :) i just figured it out too. I removed those lines to test the application. _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Le mardi 15 mars 2016 à 22:28 +0300, Krutskikh Ivan a écrit :
> so the only option is to rebuild a package gst-plugins-bad? That's > inconvinient Or provide a patch the goes along the line of the comment I pointed out, so it can be contributed upstream. Nicolas p.s. the Open Source way. _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel signature.asc (188 bytes) Download Attachment |
Krutskikh-
Yes I think you need to build the library again but it is pretty straight forward, and you don't need to build the whole plugins library, you can just build hlssink plugin. Nicolas- Patch would be great. Thanks again. |
Free forum by Nabble | Edit this page |