Changing filesrc location with a udpsink/udpsrc connection

mikkelmk mikkelmunk94 at gmail.com
Tue Apr 3 21:34:51 UTC 2018


I have a server pipeline:

    self.pipeline = Gst.parse_launch('filesrc name=filesource ! queue
name=queueelement ! decodebin name=decoder ! audioconvert
name=audioconverter ! audioresample ! opusenc ! rtpopuspay ! udpsink
port=40401 host=224.1.1.1')

The dynamic pad on the decodebin here is handled using the
connect("pad-added", handler) method.

I'm changing the song like this:

    def change_song(self, song_name):
        self.pipeline.set_state(Gst.State.READY) #I have also tried with
NULL here
        self.filesrc.set_property("location", song_name)
        self.pipeline.set_state(Gst.State.PLAYING)

This works locally using the alsasink.

My client pipeline is:

    self.pipeline = Gst.parse_launch('udpsrc name=udpsource
uri=udp://224.1.1.1:40401 caps="application/x-rtp, media=(string)audio,
clock-rate=(int)48000,encoding-name=(string)X-GST-OPUS-DRAFT-SPITTKA-00" !
rtpbin buffermode=none, ntpsync=true name=binname ! fakesink')

When the server changes the song, i get an internal data stream error from
the client.

How can i fix this?




--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list