Subject:MP3 Compression
Posted by: ALewisohn
Date:5/22/2006 2:16:37 PM
I've written a batch conversion script that converts SWA (Basically Macromedia's Proprietary MP3 format) into straight MP3s. The script loops through subfolders based upon the specified start directory, opens any SWA that is finds, creates a new file, resamples it to 22,050, and renders the new file as a 24 kbps, 22,050 Hz, 16 bit, Mono MP3 file. On my development box, this process works without a hitch. When I run it on my production box, the MP3 files come out compressed, with the sound coming near, but not actually achieving chipmunk speed. There is also some distortion and static. I've been ripping my hair out over this and cannot find a solution. Any thoughts are much appreciated. |
Subject:RE: MP3 Compression
Reply by: ForumAdmin
Date:5/23/2006 1:22:17 PM
A few thoughts, basically just breaking down the process: If opening SWA requires a specific codec, make sure it is present on both machines. Verify that a script that just opens the file is opening it properly. However you are calling resample, make sure you're actually resampling and not just setting a new sample rate. If you are using a custom preset, it must be present on both machines. If the source is stereo, you might add a convert-to-mono step prior to rendering. MP3 in Batch Converter currently has a few gotchas that allow you to apply mono templates to stereo data and vice versa (with unintended results). J. |
Subject:RE: MP3 Compression
Reply by: _TJ
Date:5/25/2006 11:59:13 AM
What code are you using to create the new file? |
Subject:RE: MP3 Compression
Reply by: ALewisohn
Date:5/31/2006 6:27:55 AM
It turns out it had nothing to do with the code, but that the template on the production machine was corrupted. I don't know how that happened, but copying the template file directly from the dev box to the production box fixed the problem. Thanks for your help. |