Message on a newly created chunk by multifilesink

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

Message on a newly created chunk by multifilesink

sam shmayev
Hi,

I use multifilesink element to save live stream to chunks.

But I need to know when a new chunk is created.
May be I can use post-messages property.

Assume live stream is videotestsrc.

My pipeliene is :
videotestsrc ! multifilesink post-messages=1 location="/home/sam/chunk_%d\" next-file=4 max-files=0 max-file-size=10000 name=sink

Any ideas?
Examples?

Thanks.

--
S.Shmayev

Office:  <a href="tel:%2B972-72-2777239" value="+972722777239" target="_blank">+972-72-2777239
Mobile: <a href="tel:%2B972-54-6216356" value="+972546216356" target="_blank">+972-54-6216356


_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Message on a newly created chunk by multifilesink

Jan Schmidt-6
On Fri, 2012-10-05 at 11:41 -0400, sam shmayev wrote:
> Hi,
>
>
> I use multifilesink element to save live stream to chunks.
>
>
> But I need to know when a new chunk is created.
> May be I can use post-messages property.

Yes, use the post-messages property, and listen on the bus.

Check out the docs, if you haven't already:
http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-good-plugins/html/gst-plugins-good-plugins-multifilesink.html

J.

>
>
> Assume live stream is videotestsrc.
>
>
> My pipeliene is :
> videotestsrc ! multifilesink post-messages=1
> location="/home/sam/chunk_%d\" next-file=4 max-files=0
> max-file-size=10000 name=sink
>
>
> Any ideas?
> Examples?
>
>
> Thanks.
>
>
> --
> S.Shmayev
>
>
> Office:  +972-72-2777239
> Mobile: +972-54-6216356
>
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

--
Jan Schmidt <[hidden email]>

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Message on a newly created chunk by multifilesink

sam shmayev
In reply to this post by sam shmayev
Hi,

If

File splitting modes is GST_MULTI_FILE_SINK_NEXT_MAX_SIZE

There are no messages on the BUS for a newly created file.

So listen don't listen. There is absolute silence there =)

Ideas?

On Sat, Oct 6, 2012 at 2:38 AM, Jan Schmidt <[hidden email]> wrote:
On Fri, 2012-10-05 at 11:41 -0400, sam shmayev wrote:
> Hi,
>
>
> I use multifilesink element to save live stream to chunks.
>
>
> But I need to know when a new chunk is created.
> May be I can use post-messages property.

Yes, use the post-messages property, and listen on the bus.

Check out the docs, if you haven't already:
http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-good-plugins/html/gst-plugins-good-plugins-multifilesink.html

J.

>
>
> Assume live stream is videotestsrc.
>
>
> My pipeliene is :
> videotestsrc ! multifilesink post-messages=1
> location="/home/sam/chunk_%d\" next-file=4 max-files=0
> max-file-size=10000 name=sink
>
>
> Any ideas?
> Examples?
>
>
> Thanks.
>
>
> --
> S.Shmayev
>
>
> Office:  <a href="tel:%2B972-72-2777239" value="+972722777239">+972-72-2777239
> Mobile: <a href="tel:%2B972-54-6216356" value="+972546216356">+972-54-6216356
>
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

--
Jan Schmidt <[hidden email]>

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



--
S.Shmayev

Office:  +972-72-2777239
Mobile: +972-54-6216356


_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel