Creating a mulaw audio file from L16

Rohan0993 rohan.chawhan at matrixcomsec.com
Tue Apr 2 12:06:03 UTC 2019


Hey all,

I have a wave file with these properties.
       sampling rate = 16000 Hz
       encoding = L16
       channels = 1
       bit resolution = 16

I want to make 2 pipelines
1) I am throwing this file contents as RTP packets on port=5000
2) listen to port=500 catch the rtp packets and make an audio file with
following properties
       sampling rate = 8000 Hz
       encoding = PCMU
       channels = 1
       bit resolution = 8


What I have tried is:
*gst-launch-1.0 filesrc location=/path/to/Test.wav ! wavparse ! audioconvert
! audioresample ! audio/x-raw, rate=8000 ! mulawenc ! rtppcmupay ! udpsink
host=192.168.xxx.xxx port=5000*
Sender:

Receiver:
*gst-launch-1.0 udpsrc port=5000 ! "application/x-rtp,media=(string)audio,
clock-rate=(int)8000, encoding-name=(string)PCMU, channels=(int)1,
payload=(int)96" ! rtppcmudepay ! mulawdec ! audioconvert ! filesink
location=/path/to/Test.ulaw*


But I am getting L16 file at the Test.ulaw and not PCMU

Any suggestion?




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


More information about the gstreamer-devel mailing list