|
From: Daniel J. <da...@gm...> - 2009-12-12 08:14:33
|
Hi, I'm looking for help on how to prepare the end of songs using the SILENCE and PAD command. The material is normal Top40 radio hits that sometimes end with fade and sometimes with a hard ending. It should be processed so that I can overlap each file by 6 seconds. Overlong fades should be cut, short hard endings should be padded with silence. I am trying to do this: Step 1: Add 6.0 seconds of silence to the end, so I always have something to cut. (pad 0 6) Step 2: Locate 2 cutpoints First cutpoint: At the end of song, 1.00 second after the audio level has dropped below -26db permanently Second cutpoint: At the end of song, 5.50 seconds after the audio level has dropped below -16db permanently Step 3: Optimal solution Cut audio at the later cutpoint of the two. If SOX can't do that, cutting any cutpoint would be OK (as I could run SoX twice with different values and then select the best result later by examining the file size) My biggest problem is to cut audio x seconds after the found cutpoint. Is this do-able in SoX ? |