DONE!

Information

If it cannot redirect itself, click HERE

"; echo "If the conversion crashed, it might be you haven't correctly setup the FFmpeg or your PHP buffer is not enough.
"; foreach (glob("uploads/*.mp4") as $filename) { $mp4filename = $filename; echo $mp4filename . "

"; $mp3filename = str_replace(".mp4",".mp3",$mp4filename); echo shell_exec('ffmpeg -i "'.$mp4filename.'" -b:a 320K "'.$mp3filename.'" 2>&1'); //Replace the above line with the line below for Raspberry pi with libav-tools //echo shell_exec("avconv -i ".$mp4filename." -b:a 320K ".$mp3filename." 2>&1"); //unlink($mp4filename); } /* foreach (glob("uploads/*.aac") as $filename) { $aacfilename = $filename; echo $aacfilename . "

"; $mp3filename = str_replace(".aac",".mp3",$aacfilename); echo shell_exec("ffmpeg -i ".$aacfilename." -b:a 320K ".$mp3filename." 2>&1"); //Replace the above line with the line below for Raspberry pi with libav-tools //echo shell_exec("avconv -i ".$aacfilename." -b:a 320K ".$mp3filename." 2>&1"); unlink($aacfilename); } */ //header('Location: index.php'); ?>


Information

If it cannot redirect itself, click HERE