This code accepts a URL to an MP3 file and a frameRate and outputs an XML list of Average Volume and Peak Volume by video frame as a floating point value between 0 and 1, with 0 being silence and 1 being full loudness.
"; if(isset($argv[1])) //Command-line mode { $mp3URL=$argv[1]; if(isset($argv[2])) $frameRate=$argv[2]; } if(!$mp3URL && !isset($_GET['mp3File'])) { echo "$form"; echo "