ffmpeg任意格式转码为M4A

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/xing_____/article/details/79615604
$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))
{
    //逻辑
}

猜你喜欢

转载自blog.csdn.net/xing_____/article/details/79615604