Re: [Toolame-devel] Mp2 in a .wav file format and parallel encoding
Status: Alpha
Brought to you by:
mikecheng
|
From: Jesse S. <sc...@gm...> - 2004-07-30 16:14:43
|
I've been having lots of problems with noise in my output. see below. Snip, snip > > Batch converting is trivially simple on Linux -- it just takes a little shell > scripting. Something like: > > #!/bin/bash > for i in /some_dir/*.wav; > do toolame -m s -b 256 "$i"; > done I did quite a bit of expirimentation last night (I actualy got past research and started building ) but I could not output an acceptable quality file. I grabbed libmad (a high quality decoder ???) and libmad-dev with my friendly apt-get, I also grabbed madllb which should output pcm from a .wav file. The problem was that though I could create an acceptable sounding .aiff file with madlld and sox, I could not do the same with toolame and your patch (didnt' try without your patch). Generating the .aiff file with madlld ./madlld < This_land_is_your_land.mp2 |sox -r 44100 -t cdr - test.aiff madlld: 256000 kb/s audio MPEG layer II stream without CRC, normal LR stereo with no emphasis at 44100 Hz sample rate madlld: end of input stream madlld: 7299 frames decoded (3:10.667). Various toolame attempts ./madlld <This_land_is_your_land.mp2| toolame -t 2 -p 2 -v 10 -s 44.1 -e -b 256 -W - out.mp2 -------------------------------------------- Input File : 'stdin' 44.1 kHz Output File: 'out.mp2' 256 kbps MPEG-1 Layer II stereo Psycho model=2 (Mode_Extension=0) [De-emph:Off Copyright:No Original:No CRC:On] [Padding:Off Byte-swap:Off Chanswap:Off DAB:Off] VBR Enabled. Using MNR boost of 10.000000 ATH adjustment 0.000000 -------------------------------------------- encode_init: using tablenum 1 with sblimit 30 madlld: 256000 kb/s audio MPEG layer II stream without CRC, normal LR stereo with no emphasis at 44100 Hz sample rate absthr[][] sampling frequency index: 1 madlld: end of input stream madlld: 7299 frames decoded (3:10.667). Hit end of audio data VBR stats: 32 48 56 64 80 96 112 128 160 192 224 256 320 384 0 0 0 0 0 0 0 0 0 52 116 67 7064 0 Avg slots/frame = 1034.129; b/smp = 7.18; bitrate = 316.702 kbps Done toolame -b 256 test.aiff outMP2.mp2 >>> Using Audio IFF sound file headers Parsing AIFF audio file >>> 44100.000000 Hz sampling frequency selected -------------------------------------------- Input File : 'test.aiff' 44.1 kHz Output File: 'outMP2.mp2' 256 kbps MPEG-1 Layer II j-stereo Psy model 1 [De-emph:Off Copyright:No Original:No CRC:Off] [Padding:Normal Byte-swap:Off Chanswap:Off DAB:Off] ATH adjustment 0.000000 -------------------------------------------- encode_init: using tablenum 1 with sblimit 30 [2200]] Hit end of audio data Avg slots/frame = 835.918; b/smp = 5.80; bitrate = 256.000 kbps Done |