multiple input files with input selector

Sebastian Dröge sebastian at centricular.com
Wed Nov 9 07:41:42 UTC 2016


On Tue, 2016-11-08 at 05:45 -0800, userAr wrote:
> so you are saying to connect the input-selector between the filesrc
> to
> decodebin:
> 
> 
>                     |-----------------------|
> filesrc_1 ------|                            |
>                     |                            |
> filesrc_2 ------|                            |
> .                   |     input-selector    |
> .                   |                            |---- decoder ---
> sink
> .                   |                            |
> .                   |                            |
> filesrc_n ------|                            |
>                     |-----------------------|
> 
> this should reduce the delay?

No, you have to put it *after* the decoder. Then you only have the
buffering inside the sink left.

> so when I get EOS from filesrc_1, I switch to filesrc_2 (which in some state
> of ready?) 
> it will automatically pass the stream from filesrc_2 to input-selector on
> switching command?

Your goal is to switch on EOS? Then use the concat element, it does
exactly that. Put it *after* the decoder and before the sink.

-- 
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 931 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20161109/fd53f48c/attachment.sig>


More information about the gstreamer-devel mailing list