Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: 22050 hz WAV to MP3, keep 10000-11025 hz intact (Read 4716 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

22050 hz WAV to MP3, keep 10000-11025 hz intact

I'm modding a game so I can use my own tracks and it only supports mp3 format. I have a 22050 hz (11025 hz on both channels) WAV file from a different game I've extracted. This is not the standard 44100 hz!

I've tried LAME @ max settings and it keeps cutting the frequencies above 10 khz. It sounds darker. I used to think MP3 encoders would usually cut above 16 khz, but this isn't the case. I need a converter that'll keep the frequencies between 10000 hz - 11025 hz intact.

22050 hz WAV to MP3, keep 10000-11025 hz intact

Reply #1
Try the LAME parameter
--lowpass 11

as in
-V5 --lowpass 11

22050 hz WAV to MP3, keep 10000-11025 hz intact

Reply #2
What exactly do you mean by "22050 hz (11025 hz on both channels) WAV file"?

22050 hz WAV to MP3, keep 10000-11025 hz intact

Reply #3
There may be some benefit in resampling first:
Code: [Select]
# Create test input:
sox -r 22050 -n 1.wav synth 11.025 sine 0:11025 gain -3

# Encode/resample with lame:
lame -V5 --lowpass 11 --resample 44.1 1.wav 2.mp3

# Output has some roll-off and artefacts around 11k:
sox 2.mp3 -n spectrogram -hwk -o 2.png -t lame
display 2.png

# Pre-resample using sox with steep filter:
sox 1.wav 1r.wav rate -s 44.1k

# Encode with lame:
lame -V5 1r.wav 2r.mp3

# No apparent problems:
sox 2r.mp3 -n spectrogram -hwk -o 2r.png -t "sox + lame"
display 2r.png

22050 hz WAV to MP3, keep 10000-11025 hz intact

Reply #4
Try this:

lame -V 1 --lowpass 11.025

22050 hz WAV to MP3, keep 10000-11025 hz intact

Reply #5
I would probably resample to 44.1k.

22050 hz WAV to MP3, keep 10000-11025 hz intact

Reply #6
What exactly do you mean by "22050 hz (11025 hz on both channels) WAV file"?

Not all WAV comes in the standard 44100 hz. I don't want people to assume it was 44100 hz to begin with and tell me that no one would notice too much of a difference above 16 khz anyways.

Edit: I have found the game soundtrack (didn't know it existed)! This one is 44100 hz!

22050 hz WAV to MP3, keep 10000-11025 hz intact

Reply #7
What exactly do you mean by "22050 hz (11025 hz on both channels) WAV file"?

Not all WAV comes in the standard 44100 hz. I don't want people to assume it was 44100 hz to begin with and tell me that no one would notice too much of a difference above 16 khz anyways.

Edit: I have found the game soundtrack (didn't know it existed)! This one is 44100 hz!


If its 11025 on both channels it would be a 11025 hz wav. If its 22050 then both channels are also 22050.

 

22050 hz WAV to MP3, keep 10000-11025 hz intact

Reply #8
Offtopic about samplerate: That's a common misconception. People sometimes think that a file has  2X the samplerate versus its frequency range because of it being stereo.  There's a similar misconception with 16bits.