How can I change filesrc location smoothly timestamp

Nicolas Dufresne nicolas at ndufresne.ca
Wed Oct 21 12:26:39 UTC 2020


Le mer. 21 oct. 2020 05 h 30, Sang-Ho Yang <sea5727 at naver.com> a écrit :

> Hi. This is my first post.
>
> This is about change state and live source..
>
> this is my pipeline :
> rtpbin name=rtpbin filesrc name=filesrc_0 location=/home/me/FirstFile.wav
> !
> wavparse name=wavparse_0 ! alawdec name=alawdec_0 ! amrnbenc ! rtpamrpay
> pt=104 !  rtpbin.send_rtp_sink_0 rtpbin.send_rtp_src_0 ! udpsink
> host=192.168.0.219 port=5000
>
> then I start state to "play"
> then I can play vlc with sdp
> and then I listen it! Good!!
>
> but
>
> I want change the filesrc_0 location=/home/me/FirstFile.wav to
> location=/home/me/SecondFile.wav
>
> therefore I change pipeline state to "ready" and then change location and
> then change pipeline state to "play".
>
> this rtp is sent but timestamp is reset.. ( because filesrc is non-live
> source right? )
>
> how can I change filesrc location??
>
> I want to listen smoothly sound file1 -> file2
>
> thanks..
>

For the very simple case of playing one after another, you can use concat
element. Just link all your sources to it, and concat will consume from
each pads till EOS, and will fix the timestamp to be contiguous.

You can also append more at runtime.


>
>
> --
> 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 --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20201021/9a7c26a4/attachment.htm>


More information about the gstreamer-devel mailing list