# 如果已安装的 FFMPEG 已经支持了 `freetype` ,那么就不需要再安装了。
brew reinstall ffmpeg --with-sdl2 --with-freetype
wget "https://github.com/LuoZijun/rustpy_demo/raw/master/data/Secret%20World%20of%20US%20Election%20-%20Julian%20Assange%20talks%20to%20John%20Pilger%20(FULL%20INTERVIEW)-_sbT3_9dJY4.mp4" -o in.mp4
ffmpeg -i in.mp4 \
-vf "drawtext=fontfile=/Library/Fonts/Times New Roman.ttf: text='%{localtime\:%Y\/%m\/%d %H\/%M\/%S}': r=25: x=16: y=48: fontsize=30: fontcolor=white@0.8: box=1: boxcolor=black@1" \
-preset medium \
-an \
-y out.mp4
ffmpeg内部有可以获得本片时长的变量吗?
比如加水印 当前时间点/总时长
00:01:00/01:23:45