Dynamically changing filesink location fails

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

Dynamically changing filesink location fails

Maher Omar
Hi everyone,

I've got a pipeline which looks like :
source -> decoder -> encoder -> muxer -> filesink

Is there a way to change the filesink location on the fly without restarting the pipeline, so that you can create multiple named files ?

I have tried:
* to block the muxer src pad, stop the filesink to change the location, then start the filesink again, and unblock the muxer pad, but the recording fails for the second file
* to create a new filesink with the new location

But I couldn't manage to make these work ... No matter what codecs/containers/sources being used.

Any suggestion is welcome

Maher



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Dynamically changing filesink location fails

Stefan Sauer
Hi,

Maher Omar schrieb:

> Hi everyone,
>
> I've got a pipeline which looks like :
> source -> decoder -> encoder -> muxer -> filesink
>
> Is there a way to change the filesink location on the fly without
> restarting the pipeline, so that you can create multiple named files ?
>
> I have tried:
> * to block the muxer src pad, stop the filesink to change the location,
> then start the filesink again, and unblock the muxer pad, but the
> recording fails for the second file
> * to create a new filesink with the new location
>
> But I couldn't manage to make these work ... No matter what
> codecs/containers/sources being used.
>
> Any suggestion is welcome

use multifilesink :)

Stefan

>
> Maher
>
>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel