转换文件.要归档.和ffmeg在一起



我是新手,你能告诉我如何转换文件吗?要归档。使用下面的命令从我的命令提示符转换。

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