我在 ffmpeg 命令下运行,该命令在 mac 中运行良好,但在 ubuntu 中出现错误:
[aac @ 0x15187a0] The encoder 'aac' is experimental but experimental codecs are not enabled, add '-strict -2' if you want to use it.
命令:
ffmpeg -i intro.mp4 -vf "drawtext=fontfile=FutuMd.ttf: text="Audi": x=680: y=500: fontsize=55: fontcolor=white: enable='between(t,4,6)'" introfinal.mp4
提前致谢
最佳答案
因为 ubuntu 的 aac 编码器是 实验 并且默认情况下未启用。所以你应该使用-strict -2
参数以手动启用它。
将您的命令更改为:
ffmpeg -i intro.mp4 -strict -2 -vf "drawtext=fontfile=FutuMd.ttf: text="Audi": x=680: y=500: fontsize=55: fontcolor=white: enable='between(t,4,6)'" introfinal.mp4
关于laravel - 使用在mac中工作的ffmpeg命令向视频添加文本但在ubuntu中出错?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50343056/