Creating a mulaw audio file from L16

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

Creating a mulaw audio file from L16

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 port=5000*

*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

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

Any suggestion?

Sent from:
gstreamer-devel mailing list
[hidden email]