Page 1 of 1

How to play raw audio data encoded with PCM a-law

Posted: 16 Feb 2014 04:44
by limpid2009
I want to know how to play raw audio data file encoded with PCM a-law, please give me a help.

I insert a wave header data into the raw data file, VLC may work well. But I think the VLC can work well with the raw PCM a-law data file by provide some parameters to VLC in command line.

Thanks a lot.

Re: How to play raw audio data encoded with PCM a-law

Posted: 16 Feb 2014 10:30
by RĂ©mi Denis-Courmont
Use the raw audio demuxer, yes.

Re: How to play raw audio data encoded with PCM a-law

Posted: 17 Feb 2014 15:30
by limpid2009
Use the raw audio demuxer, yes.
Thank you very much.

I have tried the following command:
vlc --demux=rawaud --rawaud-channels 1 --rawaud-samplerate 8000 my_pcm_alaw.data
but it seem it can't work correctly. Which parameters of VLC can be used to specify the audio data codec?

please give your advice.