我的这个命令有什么问题?“ffmpeg crop and drawtext”

我的这个命令有什么问题?“ffmpeg crop and drawtext”

我有一些用于处理视频的命令行,但出现了一些错误,你能帮我修复它吗?

@ECHO OFF
Setlocal EnableDelayedExpansion
set INPUT=D:\Shorts\code\INPUT
set OUTPUT=D:\Shorts\code\OUTPUT
:: encode video:
for %%a in ("%INPUT%\*.*") DO ffmpeg -i "%%a" -vcodec libx264 -pix_fmt yuv420p -g 60 -r 30 -b:v 1000k -acodec libmp3lame -b:a 128k -ar 48000 -metadata title="" -metadata artist="" -metadata album_artist="" -metadata album="" -metadata date="" -metadata track="" -metadata genre="" -metadata publisher="" -metadata encoded_by="" -metadata copyright="" -metadata composer="" -metadata performer="" -metadata TIT1="" -metadata TIT3="" -metadata disc="" -metadata TKEY="" -metadata TBPM="" -metadata language="eng" -metadata encoder="" -filter_complex "drawtext=text='Centered Text':x=(w-text_w)/2:y=(h-text_h)/2:fontsize=24:fontcolor=white, crop=ih*(9/16):ih" -crf 21 -c:a copy -f segment -segment_time 12 -reset_timestamps 1 -preset ultrafast "%output%\%%~na_%%03d.mp4"
pause

这是错误信息在此处输入图片描述

相关内容