Monday, March 4, 2013

Convert MP3 to Wav then to PCM

PCM (pulse control modulation) is a raw (uncompressed) audio file format. It is is a digital representation of that audio wave at a specified sample rate. Its data is usually signed stereo or mono, 16-bit seems to be the most common sample size, byte ordering often is little endian. For example, signed 16-bit little-endian stereo @ 44.1kHz.

A PCM test data can be generated from a Wav file, which has some header on the top of PCM file. ffmpeg can be used for the conversion:

ffmpeg -i test.wav -f s16le -acodec pcm_s16le test.pcm

A MP3 file can be converted to a Wav file using Ogg Converter.

No comments:

Followers

About Me

My photo
HD Multimedia Technology player