[FFmpeg-user] Drawtext and Metadata

Carl Eugen Hoyos ceffmpeg at gmail.com
Wed Oct 17 17:31:59 EEST 2018




> Am 17.10.2018 um 16:12 schrieb Grant Griffith <grant.griffith at mono-1.com>:
> 
> I've tested many variation on the metadata flag, but per the recommendation
> earlier I've tried this. It will error out and just won't print anything.
> 
> The command I'm attempting...
> 
> ./ffmpeg -i "$1" \
> -vf "select=gt(scene\,0.087),\
> scale=192:-1,\
> tile=10x10,\
> drawtext="fontfile=/System/Library/Fonts/Helvetica.ttc":\
> text='%{metadata=print\:key=duration}' :\
> fontcolor=magenta:\
> shadowx=3:\
> shadowy=3:\
> shadowcolor=black at .7:\
> fontsize=60\:\
> x=(w-text_w)/2:\
> y=(h-text_h)/2:\
> box=1:\
> boxcolor=lime at .45:\
> boxborderw=200:" \

> -hide_banner \
> -v error \

Sorry if you don’t find this obvious:
When asking for help here, don’t use „hide_banner“ or „v error“ (unless you need support for those options).

Please find out what top-posting means and avoid it here.

Carl Eugen


More information about the ffmpeg-user mailing list