[FFmpeg-user] Burn Frame Number/Time Code onto Image Sequence
Stefano Sabatini
stefasab at gmail.com
Thu Jan 31 01:59:39 CET 2013
On date Wednesday 2013-01-30 11:12:53 -0800, Indian Maiden wrote:
> I am trying to burn at least the frame number on an exported image sequence
> and cannot quite figure it out.
>
> The closest I have come in my yahoo searching is
> ffmpeg -i D:/imagesequence/background.jpg -vf
> "movie='D\:/imagesequence/dpx/thumbnail.jpg' [watermark]; [in][watermark]
> overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/3[water];[water]
> drawtext=fontsize=18:fontcolor=Yellow:fontfile=/Windows/Fonts/arial.ttf:text='shotcam':x=(w)/2:y=(h)-25,drawtext=fontsize=18:fontcolor=Yellow:fontfile=/Windows/Fonts/arial.ttf:text='Frame
> \:':x=(w)/1.2:y=(h)-25[out]" D:/imagesequence/dpx/final_with_text_mod_04.jpg
>
> But even with this example it does not work.
>
> This makes no sense to me:
> 'Frame \:':x=(w)/1.2:y=(h)-25[out]
>
> Can some explain to me how this could burn frame number into my exported
This works here:
ffplay -f lavfi -i "color=s=qcif,drawtext=text=%{n}:fontcolor=white:fontsize=20"
Or you could use %{expr:n+1} or whatever.
Make sure to read the fine documentation for the drawtext filter.
--
FFmpeg = Fabulous & Faithless Minimal Powered Efficient Gadget
More information about the ffmpeg-user
mailing list