Help - Search - Members - Calendar
Full Version: Encode files longer than 2 GB
Hydrogenaudio Forums > Lossy Audio Compression > MP3 > MP3 - General
j7n
I have a file (movie soundtrack) that's 3.07 GB. Parameters: 48000 Hz, Stereo, 32-bit float. The file is too long to be wrapped into WAV. How do I feed it into LAME?

I tried this command line with both fixed and floating point data:
     lame.exe -r -s 48 --bitwidth 32 dts32fixed-576.raw test.mp3

Garbage was produced in the output. Also I noticed that there is no parameter to specify that source is stereo.
Slipstreem
3.07GB?! That's the video and audio surely?

If this is the case then the free universal audio and video transcoder called MediaCoder can be used to extract and transcode the audio to LAME MP3 very easily.

Install MediaCoder and set up LAME in the right-hand pane to the required bitrate, etc. Add the file you want transcoding to the job list then select "Transcode /Transcode Audio Only". Job done. smile.gif

Cheers, Slipstreem. cool.gif
j7n
It is an uncompressed soundtrack. To compress it to a reasonable size I need to use LAME. I've chosen MP3 but willing to consider other formats if need be.

Quality wouldn't hurt if I reduced the clip to 24-bits, but see no point. The total length will still be over 2 GB.
lvqcl
QUOTE(j7n @ May 31 2008, 16:39) *

I have a file (movie soundtrack) that's 3.07 GB. Parameters: 48000 Hz, Stereo, 32-bit float. The file is too long to be wrapped into WAV. How do I feed it into LAME?

I tried this command line with both fixed and floating point data:
     lame.exe -r -s 48 --bitwidth 32 dts32fixed-576.raw test.mp3

Garbage was produced in the output. Also I noticed that there is no parameter to specify that source is stereo.


Lame doesn't support 32-bit float WAV, only 32-bit integer (aka 4-byte PCM).
And try:
lame -r -s 48 --bitwidth 32 -b 192 -m j - test.mp3 < 32fixed.raw
Slipstreem
Apologies for the late edit. See above. I've just tried this with MediaCoder for the first time ever on a 6 channel, 448Kbps, 48kHz AC3 file and it worked very well for me. As long as MediaCoder supports the required standard for your audio file, it should work for you too. smile.gif

Cheers, Slipstreem. cool.gif
j7n
Thank you for your help so far.

I downloaded MediaCoder, but failed to find where to specify parameters of the raw stream. The program provides a GUI but still has to use the command line to do actual encoding.

QUOTE
lame -r -s 48 --bitwidth 32 -b 192 -m j - test.mp3 < 32fixed.raw

This produced identical file with garbage. huh.gif
Martel
QUOTE(j7n @ May 31 2008, 06:17) *

Thank you for your help so far.

I downloaded MediaCoder, but failed to find where to specify parameters of the raw stream. The program provides a GUI but still has to use the command line to do actual encoding.

QUOTE
lame -r -s 48 --bitwidth 32 -b 192 -m j - test.mp3 < 32fixed.raw

This produced identical file with garbage. huh.gif

I think he was suggesting you grab the file not as 32 bit float but as 32 bit integer.
j7n
I solved the problem. An additional parameter -x had to be specified.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.