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