How can I change filesrc location smoothly timestamp

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

How can I change filesrc location smoothly timestamp

Sang-Ho Yang
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..



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: How can I change filesrc location smoothly timestamp

Nicolas Dufresne-5


Le mer. 21 oct. 2020 05 h 30, Sang-Ho Yang <[hidden email]> 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
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel