Browse Source

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

master
Sean Clarke 1 year ago
parent
commit
da259ccd83
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      mp3-to-ogg.php

+ 3
- 2
mp3-to-ogg.php View File

@@ -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 . '"');
}
?>