ffmpeg -i F:/Temp/input.mov -y -vf "[in]drawtext=fontfile=HanYiYanKaiW-2.ttf:text='Frame\:%{n}':start_number=100:x=(w-text_w)/2:y=(h-text_h)/2:fontsize=80:fontcolor=red, drawtext=text='%{pts\:hms}':x=0:y=0:fontsize=80:fontcolor=red, drawtext=fontfile=HanYiYanKaiW-2.ttf:text='TOPCENTER':x=(w-text_w)/2:y=0:fontsize=80:fontcolor=red, drawtext=text='TOPRIGHT':x=w-tw:y=0:fontsize=80:fontcolor=red, drawtext=text='BOTLEFT':x=0:y=h-th:fontsize=80:fontcolor=red, drawtext=text='BOTCENTER':x=(w-text_w)/2:y=h-th:fontsize=80:fontcolor=red, drawtext=text='BOTRIGHT':x=w-tw:y=h-th:fontsize=80:fontcolor=red" -c:a copy F:/Temp/output.mov
ffmpeg -i F:/Temp/input.mov -y -vf “[in]drawtext=fontfile=HanYiYanKaiW-2.ttf:text=‘Frame:%{n}’:start_number=100:x=(w-text_w)/2:y=(h-text_h)/2:fontsize=80:fontcolor=red, drawtext=text=‘%{pts:hms}’:x=0:y=0:fontsize=80:fontcolor=red, drawtext=fontfile=HanYiYanKaiW-2.ttf:text=‘TOPCENTER’:x=(w-text_w)/2:y=0:fontsize=80:fontcolor=red, drawtext=text=‘TOPRIGHT’:x=w-tw:y=0:fontsize=80:fontcolor=red, drawtext=text=‘BOTLEFT’:x=0:y=h-th:fontsize=80:fontcolor=red, drawtext=text=‘BOTCENTER’:x=(w-text_w)/2:y=h-th:fontsize=80:fontcolor=red, drawtext=text=‘BOTRIGHT’:x=w-tw:y=h-th:fontsize=80:fontcolor=red” -c:a copy F:/Temp/output.mov
x=(w-text_w)/2:y=(h-text_h)/2
x=0:y=0 (with 10 pixel padding x=10:y=10)
x=(w-text_w)/2:y=0 (with 10 px padding x=(w-text_w)/2:y=10)
x=w-tw:y=0 (with 10 px padding: x=w-tw-10:y=10)
x=0:y=h-th (with 10 px padding: x=10:y=h-th-10)
x=(w-text_w)/2:y=h-th (with 10 px padding: x=(w-text_w)/2:y=h-th-10)
x=w-tw:y=h-th (with 10 px padding: x=w-tw-10:y=h-th-10)
参考链接
1.ffmpeg filters