How hard can it be to change filesrc location runtime
Marc Leeman
marc.leeman at gmail.com
Tue Aug 10 12:20:46 UTC 2021
I would change to
filesrc ! inputselect ! decodebin ! autovideosink
Hook up the 2nd filesrc to inputselect, change the active-pad and remove
the old filesrc.
Alternatively,
you can use
uridecodebin ! inputselect ! autovideosink
And create a new uridecodebin for each new file src, it will enable to mix
codecs if you want to.
On Tue, 10 Aug 2021 at 13:30, marc lievens via gstreamer-devel <
gstreamer-devel at lists.freedesktop.org> wrote:
> Hi,
>
>
>
> I seems to overlook something when I change the element filesrc location
> at runtime.
>
>
>
> I tried already to change the location already in different ways and dis
> read the documentation concerning dynamic pipelines
>
>
>
> At this moment I simplified the pipeline to : filesrc | decodebin|
> autovideosink, but still I seems to do something wrong.
>
>
>
> What I already tried is :
>
>
>
> - In blocking probe on file source I changed location
> with/without filesrc state changes(GST_STATE_NULL and sync with parent )
> and pipeline changes ( GST_STATE_READY and GST_STATE_PLAY)
>
> - With 2 probes and send eos as explained in dynamic pipeline
> documentation , and this with creating new filesrc and/or decodebin.
>
> - With posting a message and change file location when message
> received to avoid deadlocks
>
>
>
> I really have no idea what I’m doing wrong or if it is even possible.
>
>
>
> I would appreciate if anyone can point me in the right direction or
> explains me the sequence of actions to take
>
>
>
> Cheers ,
>
> marc
>
--
g. Marc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20210810/1cabfd34/attachment.htm>
More information about the gstreamer-devel
mailing list