Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
目前我可以将图像序列转换为视频。但目前的要求是将一张图像转换为视频。并且可以实现一些特殊效果。
例如:
淡入/淡出
闪入/闪出
平移顶部/底部/左/右
放大/缩小
放大示例:
ffmpeg -i infile -filter_complex "scale=iw*10:-1,zoompan=z='zoom+0.01':x='iw/2-(iw/zoom/2)':y='ih/2-(ih/zoom/2)':s={output_width}x{output_height}" -t {duration} -y -shortest -c:v libx264 outfile