Changing filesrc location with a udpsink/udpsrc connection

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Changing filesrc location with a udpsink/udpsrc connection

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=')

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)

This works locally using the alsasink.

My client pipeline is:

    self.pipeline = Gst.parse_launch('udpsrc name=udpsource
uri=udp:// 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:
gstreamer-devel mailing list
[hidden email]