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

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
limpid2009
New Cone
New Cone
Posts: 2
Joined: 16 Feb 2014 04:34

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

Postby limpid2009 » 16 Feb 2014 04:44

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.

Rémi Denis-Courmont
Developer
Developer
Posts: 15318
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

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

Postby Rémi Denis-Courmont » 16 Feb 2014 10:30

Use the raw audio demuxer, yes.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

limpid2009
New Cone
New Cone
Posts: 2
Joined: 16 Feb 2014 04:34

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

Postby limpid2009 » 17 Feb 2014 15:30

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.


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: Yeshey and 47 guests