ffmpeg -i in.mp4 -filter_complex "drawtext='fontfile=font.ttf : text=%{localtime\:%Y/%m/%d %H%M%S} : fontsize=24 : fontcolor=white : x=10: y=10'" out.mp4
作品。
ffmpeg -i in.mp4 -filter_complex "drawtext='fontfile=font.ttf : text=%{localtime\:%Y/%m/%d %H\:%M\:%S} : fontsize=24 : fontcolor=white : x=10: y=10'" out.mp4
返回
%{localtime} 最多需要 1 个参数
错误。
唯一的区别是\: