ffmpeg任意格式轉碼爲M4A

$ffmpeg = 'bin/ffmpeg-2.8-64bit-static/ffmpeg';
$neroAacEnc = 'bin/NeroAACCodec-1.5.1/linux/neroAacEnc';
$input = "a.mp3";
$rate = 320000;
$output = "{$input}.m4a";
$command = "{$ffmpeg} -vn -loglevel error -i {$input} -f wav - | {$neroAacEnc} -br {$rate} -ignorelength -if - -of {$output}";
exec($command, $message);
if (empty($message))
{
    //邏輯
}
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章