使用 ffmpeg 将 file.ts 转换为 file.aac

Convert file.ts to file.aac with ffmeg

我是新手,你能告诉我通过 FFmpeg 将 file.ts 转换为 file.aac 并使用下面的命令从我的命令提示符转换。

ffmpeg.exe -i file.ts -acodec copy file.aac

我得到这个错误:

[NULL @ 000002693d53d380] Unable to find a suitable output format for 'file.aac'
file.aac: Invalid argument

谢谢

我找到答案了

-a 用于音频编解码器,“copy”用于复制同一流

ffmpeg.exe -i file.ts -acodec copy file.aac

在下面的命令中 -f 是格式,-y 是接受覆盖

ffmpeg.exe -i file.ts -f adts -y file.aac