question: filter that affects its sink every N minutes

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

question: filter that affects its sink every N minutes

Roman Divacky
Hi there,

I am trying to develop a filter that will be chained like this:


        source -> my_filter -> sink


Suppose the sink in question is filesink, I need the my_filter to change
the name
of the the output file every 5 minutes. I think the my_filter will have
close the connection
to the sink and reopen a new one with the changed name. Am I correct? If
so - how to do that?
Or is there an easier way?

Specifically I am trying to record video in 1 minute chunks and the name
of the resulting files
will contain timestamp of the beginning of the recording.

Thank you for your help!

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

Re: question: filter that affects its sink every N minutes

Marco Ballesio
Hi Roman,

this might work for your case:

http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-good-plugins/html/gst-plugins-good-plugins-multifilesink.html

Regards

On Tue, May 24, 2011 at 5:35 PM, Roman Divacky <[hidden email]> wrote:
Hi there,

I am trying to develop a filter that will be chained like this:


       source -> my_filter -> sink


Suppose the sink in question is filesink, I need the my_filter to change the name
of the the output file every 5 minutes. I think the my_filter will have close the connection
to the sink and reopen a new one with the changed name. Am I correct? If so - how to do that?
Or is there an easier way?

Specifically I am trying to record video in 1 minute chunks and the name of the resulting files
will contain timestamp of the beginning of the recording.

Thank you for your help!

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


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