[FFmpeg-user] Burn Frame Number/Time Code onto Image Sequence
Indian Maiden
theindianmaiden at gmail.com
Thu Jan 31 03:14:49 CET 2013
On Wed, Jan 30, 2013 at 4:59 PM, Stefano Sabatini <stefasab at gmail.com>wrote:
> 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
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Thanks! That put me in the right direction. DO you know of any
documentation that outlines the varables such as n that can be passed to
drawtext?
More information about the ffmpeg-user
mailing list