Hello,
I have a working pipeline like (with sound) :
filesrc name=source0 location=localisation/{place}/sounds/output.wav !
wavparse ! opusenc ! rtpopuspay !
application/x-rtp,media=audio,encoding-name=OPUS,payload=96,clock-rate=48000,channels=2
! webrtcbin name=sendrecv bundle-policy=max-bundle
But, when I try to split this pipeline into 2 bins and add/link them to
my pipeline, I can get the audio stream but there is no sound :
/// code /////////////////////////////////////////////////////////////
pipeline = Gst.Pipeline()
bin1 = Gst.parse_bin_from_description('filesrc name=source0
location=localisation/bruxelles/sounds/output.wav ! wavparse', True)
bin2 = Gst.parse_bin_from_description('opusenc ! rtpopuspay !
application/x-rtp,media=audio,encoding-name=OPUS,payload=96,clock-rate=48000,channels=2
! webrtcbin name=sendrecv bundle-policy=max-bundle', True)
pipeline.add(bin1)
pipeline.add(bin2)
bin1.link(bin2)
webrtc = pipeline.get_by_name('sendrecv')
webrtc.connect('on-negotiation-needed', self.on_negotiation_needed)
webrtc.connect('on-ice-candidate', self.on_ice_candidate)
pipeline.set_state(Gst.State.PLAYING)
/// end code /////////////////////////////////////////////////////////
Any idea of what is the problem here ?
++
Jack
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel