Browse Source

fixed issue with spaces in directories - inital test running on game music

master
Sean Clarke 2 years ago
parent
commit
da259ccd83
  1. 5
      mp3-to-ogg.php

5
mp3-to-ogg.php

@ -9,8 +9,9 @@
$mp3 = $mp3s_ex[$i];
$ogg = str_replace('.mp3', '.ogg', $mp3);
# Generating the list
file_put_contents($playlist, $ogg . PHP_EOL, FILE_APPEND | LOCK_EX);
shell_exec('mpg321 ' . $mp3 . ' -w raw && oggenc raw -o' . $ogg);
# The conversion command
shell_exec('mpg321 "' . $mp3 . '" -w raw && oggenc raw -o "' . $ogg . '"');
}
?>