[FFmpeg-user] Drawtext and Metadata

DopeLabs dopelabs at dubstep.fm
Tue Oct 16 22:58:12 EEST 2018


have you tried

 %{metadata=print:key=duration}




> On Oct 16, 2018, at 7:18 04AM, Grant Griffith <grant.griffith at mono-1.com> wrote:
> 
> Hey everyone
> 
> I'm hoping to wanting to create a mosaic tile for video clips. I've got the
> majority of the setup dialed in, but the drawtext metadata is fighting me.
> 
> I'd like to have my mosaic tiles with a box containing filename, duration,
> encoder and optionally file size.
> 
> So far this is where I am...
> 
> ./ffmpeg -i "$1" \
> -vf "select=gt(scene\,0.087),\
> scale=192:-1,\
> tile=10x10,\
> drawtext="fontfile=/System/Library/Fonts/Helvetica.ttc":\
> text=`basename "${1}"` :\
> fontcolor=magenta:\
> shadowx=1.5:\
> shadowy=2:\
> fontsize=60\:\
> x=(w-text_w)/2:\
> y=(h-text_h)/2:\
> box=1:\
> boxcolor=lime at .5:\
> boxborderw=240:" \
> -frames:v 1 \
> -q:v 7 \
> ~/Desktop/test.jpg
> 
> I've tested all kinds of %{metadata:%duration} kind of variants, but I'm
> not having any luck. My last grasp would be to probe, store the data in
> json and then cobble together the key values into the text field, but it
> seems like running to binaries is pointless since ffmpeg already knows
> everything I'm really after.
> 
> Can this be done?
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
> 
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".



More information about the ffmpeg-user mailing list