.pcm file to .wav format |
.pcm file to .wav format |
Mar 5 2010, 06:30
Post
#1
|
|
|
Group: Members Posts: 3 Joined: 4-March 10 Member No.: 78727 |
I'm working on converting a .pcm file to a .wav file with GoldWave. I'm not sure if any other programs out there support headerless raw file types, but anyway I'm not able to hear a clean version of the file. I tried opening the file as raw, 16-bit sound with a 44.1 kHz sampling rate. All I hear is a high-pitched squeal, similar to the way rewinding an old video tape sounds, so I'm assuming the sampling rate is too high.
Any tips for playing PCM files? Here's a screenshot:
This post has been edited by Cincodekyle: Mar 5 2010, 06:32 |
|
|
|
![]() |
Mar 12 2010, 20:52
Post
#2
|
|
|
Group: Members Posts: 1559 Joined: 24-June 02 From: Catalunya(Spain) Member No.: 2383 |
I thought the best way to explain it would be with an example:
I've posted in this thread four samples which demonstrate what i mean. http://www.hydrogenaudio.org/forums/index....showtopic=79384 I started with an original which is 8bit, mono, 16Khz. (What i believe the OP's file is). I've imported the file with the three alternative settings that we've talked in this thread (the one the OP has found to fit his options, and two more of mine). All four files seem to play well (at least at the appropiate speed). But it is obvious that the lower the sampling rate, the worse it sounds. Edit: Now that i have corrected the 8bit file, there is one suggestion about the file being 16bits and not 8 bits. In DOS/Windows at least, 8bit samples were unsigned (i.e. from 0 to 255), while 16bit samples are signed (from -32768 to 32767). Since the op says that the file he has is signed (as i have assumed in my example), chances are the file is 16bits. So, in conclusion, my second option. This post has been edited by greynol: Mar 12 2010, 21:38
Reason for edit: Fixed broken link.
|
|
|
|
Mar 12 2010, 21:24
Post
#3
|
|
|
Group: Members Posts: 4135 Joined: 2-September 02 Member No.: 3264 |
I started with an original which is 8bit, mono, 16Khz. (What i believe the OP's file is). I've imported the file with the three alternative settings that we've talked in this thread (the one the OP has found to fit his options, and two more of mine). All four files seem to play well (at least at the appropiate speed). But it is obvious that the lower the sampling rate, the worse it sounds. If you changed the sampling rate and the speed of the file didn't change you probably did something wrong. Perhaps you accidentally resampled? |
|
|
|
Mar 12 2010, 21:48
Post
#4
|
|
|
Group: Members Posts: 1559 Joined: 24-June 02 From: Catalunya(Spain) Member No.: 2383 |
I added the .wav files in the upload forums to clear any confusion. No, i did not resample. The size of each file should be enough to understand that the only difference is the header ( except for the 8bit unsigned file, in which case the bytes are changed from signed to unsigned).
This post has been edited by [JAZ]: Mar 12 2010, 21:49 |
|
|
|
Cincodekyle .pcm file to .wav format Mar 5 2010, 06:30
Mike Giacomelli You probably have either the bit depth, sampling r... Mar 5 2010, 07:12
.halverhahn Create a frequency spectrogram of your PCM files. ... Mar 5 2010, 10:12
pdq QUOTE (.halverhahn @ Mar 5 2010, 05:12) C... Mar 5 2010, 12:32
.halverhahn I assumed that 44.1kHz is allready a to high sampl... Mar 5 2010, 14:24
[JAZ] @halverhahn: Sorry, but your logic is erroneous.
... Mar 5 2010, 21:31
Cincodekyle Thanks for the helpful insight Mike, .halverhahn, ... Mar 7 2010, 08:20
Cincodekyle To put some finality on this thread, I got the fil... Mar 11 2010, 08:45
[JAZ] 4000Hz sounds too low for all known uses. That... Mar 11 2010, 22:15
dv1989 [JAZ], you yourself pointed out that would only do... Mar 11 2010, 23:20![]() ![]() |
|
Lo-Fi Version | Time is now: 24th May 2013 - 16:29 |