HLSSINK on new segment callback

classic Classic list List threaded Threaded
12 messages Options
Reply | Threaded
Open this post in threaded view
|

HLSSINK on new segment callback

Ugur
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
Reply | Threaded
Open this post in threaded view
|

Re: HLSSINK on new segment callback

Krutskikh Ivan

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



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/HLSSINK-on-new-segment-callback-tp4676329.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
_______________________________________________
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
Reply | Threaded
Open this post in threaded view
|

Re: HLSSINK on new segment callback

Nicolas Dufresne-4
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

signature.asc (188 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

AW: HLSSINK on new segment callback

Thornton, Keith
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
Reply | Threaded
Open this post in threaded view
|

AW: HLSSINK on new segment callback

Thornton, Keith
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
Reply | Threaded
Open this post in threaded view
|

Re: HLSSINK on new segment callback

Ugur
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.
Reply | Threaded
Open this post in threaded view
|

Re: HLSSINK on new segment callback

Nicolas Dufresne-4
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
Reply | Threaded
Open this post in threaded view
|

Re: HLSSINK on new segment callback

Nicolas Dufresne-4
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
Reply | Threaded
Open this post in threaded view
|

Re: HLSSINK on new segment callback

Ugur
:) 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.
Reply | Threaded
Open this post in threaded view
|

Re: HLSSINK on new segment callback

Krutskikh Ivan
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.
Dropping the message is not really the best idea if there's no custom
message that can be used. Thanks for your help.



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/HLSSINK-on-new-segment-callback-tp4676329p4676355.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
_______________________________________________
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
Reply | Threaded
Open this post in threaded view
|

Re: HLSSINK on new segment callback

Nicolas Dufresne-4
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
Reply | Threaded
Open this post in threaded view
|

Re: HLSSINK on new segment callback

Ugur
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.