IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
22050 hz WAV to MP3, keep 10000-11025 hz intact, was: "WAV to MP3"
brncao
post Nov 27 2013, 07:28
Post #1





Group: Members
Posts: 2
Joined: 27-November 13
Member No.: 112625



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.
Go to the top of the page
+Quote Post
AndyH-ha
post Nov 27 2013, 08:22
Post #2





Group: Members
Posts: 2191
Joined: 31-August 05
Member No.: 24222



Try the LAME parameter
--lowpass 11

as in
-V5 --lowpass 11
Go to the top of the page
+Quote Post
phofman
post Nov 27 2013, 08:39
Post #3





Group: Members
Posts: 261
Joined: 14-February 12
Member No.: 97162



What exactly do you mean by "22050 hz (11025 hz on both channels) WAV file"?
Go to the top of the page
+Quote Post
bandpass
post Nov 27 2013, 09:53
Post #4





Group: Members
Posts: 321
Joined: 3-August 08
From: UK
Member No.: 56644



There may be some benefit in resampling first:
CODE
# 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
Go to the top of the page
+Quote Post
nastea
post Nov 27 2013, 17:51
Post #5





Group: Members
Posts: 38
Joined: 30-July 12
Member No.: 101867



Try this:

lame -V 1 --lowpass 11.025
Go to the top of the page
+Quote Post
saratoga
post Nov 27 2013, 20:13
Post #6





Group: Members
Posts: 4715
Joined: 2-September 02
Member No.: 3264



I would probably resample to 44.1k.
Go to the top of the page
+Quote Post
brncao
post Nov 27 2013, 20:15
Post #7





Group: Members
Posts: 2
Joined: 27-November 13
Member No.: 112625



QUOTE (phofman @ Nov 27 2013, 01:39) *
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!
Go to the top of the page
+Quote Post
saratoga
post Nov 27 2013, 20:45
Post #8





Group: Members
Posts: 4715
Joined: 2-September 02
Member No.: 3264



QUOTE (brncao @ Nov 27 2013, 15:15) *
QUOTE (phofman @ Nov 27 2013, 01:39) *
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.
Go to the top of the page
+Quote Post
[JAZ]
post Nov 27 2013, 20:57
Post #9





Group: Members
Posts: 1706
Joined: 24-June 02
From: Catalunya(Spain)
Member No.: 2383



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.
Go to the top of the page
+Quote Post
greynol
post Nov 27 2013, 20:58
Post #10





Group: Super Moderator
Posts: 10000
Joined: 1-April 04
From: San Francisco
Member No.: 13167



Data rate will change because of the number of channels, but the sample rate and bit depth will remain the same.


--------------------
Your eyes cannot hear.
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 16th April 2014 - 11:50