Log in

View Full Version : PCM Analyzer


a451guy451
27th July 2009, 18:50
Anybody know of a tool to derive the word size, bit & byte orientations of a .RAW pcm file?

Thanks!

Midzuki
28th July 2009, 01:40
How did you obtain that .raw pcm stream?

It doesn't have a container header, so if you don't already know if it's 16-bit or 24-bit, mono, stereo or multichannel, big-endian or little-endian, then you have to open it in an adequate audio editor, and try until you can hear something understandable.

a451guy451
28th July 2009, 01:57
Output is from Audacity 1.3beta. Any input helps me, as I'm mostly a video guy and fail in the audio realm. What I'm attempting to do is mux it into a MPG2 TS as a SMTPE302m stream. The Muxer I've got requires that I know the info, but since the files were just given to me, I wasn't sure how to analyze. I'll just do process of elimination then; I think it's Signed 24bit stereo, 48khz, little-endian. Sounds like I have some more reading to do though, because I don't know how those relate to the parameters the muxer is giving me. My choices are:

-Validity (Yes/No)
-BitReversed (Yes/No)
-ByteReversed (Yes/No)
-BytesPerWord(1,2,3,4)
-MSjustified (yes/no)
-WordSize (24,20,16)

Some combo of those has got to work, so I'll just plug away at it till I get it right.

Thanks for the input!

SomeJoe
28th July 2009, 20:56
Do you know the length of the matching video (hh:mm:ss:ff) ? And the size of the PCM file in bytes? If so, we may be able to derive some likely values.

a451guy451
29th July 2009, 00:23
Actually, yeah. Here we go:
Video = 00:01:00.01
Audio = 17,568,000 bytes

If you can, thats awesome!

Thank you for any input you can provide.