Not able to play the audio streamed with gstreamer (OPUS codec) on VLC player
I want to stream live audio with gstreamer using 'opus' codec. At the transmitter end I am using the following script:
Transmitter: " gst-launch-1.0 autoaudiosrc ! audioconvert ! audioresample ! opusenc bitrate=48000 max-payload-size=101 packet-loss-percentage=0 frame-size=20 bandwidth=fullband audio-type=generic hard-resync=false inband-fec=true complexity=10 bitrate-type=constrained-vbr ! rtpopuspay ! udpsink host=224.0.0.161 port=5001 "
Receiver: At receiver I am trying to receive the stream with VLC player using the following script:
"vlc stream.sdp" SDP file content: stream.sdp
m=audio 5001 RTP/AVP 101 c=IN IP4 224.0.0.161 a=rtpmap:101 opus/48000/1 a=fmtp:101 maxplaybackrate=16000; sprop-maxcapturerate=16000; maxaveragebitrate=20000; stereo=1; useinbandfec=1; usedtx=0
But when I execute the VLC script with SDP file, nothing happens. The player remains paused. I verified the transmitter script with 'gstreamer' receiver and it works fine.
I am not getting if there is something wrong in SDP file or some configuration issue is there.
I hope I'll find some help here. thanks.