FFMPEG - Burn in frame number
Burn an arbitrary frame number into a video.
ffmpeg -i "${FILEIN}" -vf "drawtext=fontfile=InputMono-Regular.ttf: text='%{frame_num}': start_number=1000: x=20:y=h-120: fontcolor=white: fontsize=100: box=1: boxcolor=black: boxborderw=5" "${FILEOUT}"
To write out image files, change $FILEOUT
to outfile.%04d.jpg
.
Input Mono is a nice font for this.