ffmpeg 一图流参数

ffmpeg 似乎更新之后老的参数写法全部失效了,直接导致了我昨天战 ffmpeg 战了三小时. 不过最后在国外的网站上找到了一种很简单的参数写法,效果不错,视频码率能压到 17kbps

ffmpeg -loop 1 -r 2 -i "输入图像.bmp" -i "输入音频.aac" -bsf:a aac_adtstoasc -c:v libx264 -preset medium -tune stillimage -crf 30 -c:a copy -shortest -pix_fmt yuv420p "输出文件.mp4"

不用指定时间,时间会根据音乐的长度自动调整

发表评论?

0 条评论。

发表评论


注意 - 你可以用以下 HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据