Using concat to switch src

Nicolas Dufresne nicolas at ndufresne.ca
Wed Oct 10 13:15:41 UTC 2018


Le mercredi 10 octobre 2018 à 03:40 -0500, TheGiamig a écrit :
> Hi all,
> I created a "mybin" containing a filesrc + rawaudioparse to read a PCM file.
> It works fine.
> Another requirement is the play/pause/stop/loop control, just to control my
> bin, not the whole pipeline.
> To implement the loop function, I catched the EOS event and sended a seek
> event to rawaudioparse so the file will correctly restart.
> The problem is the running time that restarts too. The rest of pipeline
> don't know about the seek because I want just restart one file, so eg. a
> mixer after the rawaudioparse stops mixing another connected audio source
> because the timestamps.
> 
> I'm thinking using concat to switch from two filesrc to implement the loop
> (or from a filesrc and a fakesrc to implement a stop), but don't sounds good
> to me..
> 
> Any cue? I'm stuck on this problem from many days ago :(

I've used this approach once, though you need to make sure to cleanup
the sources and pads when done. Maybe for this case you want to try and
multifilesrc loop=1 ?

> 
> 
> 
> 
> 
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20181010/7586d366/attachment.sig>


More information about the gstreamer-devel mailing list