[FFmpeg-devel] [PATCH] added expr evaluation to drawtext - fontsize
Michael Niedermayer
michael at niedermayer.cc
Sat Aug 27 12:36:55 EEST 2016
On Fri, Aug 26, 2016 at 02:37:42PM -0700, Brett Harrison wrote:
> Allows expr evaluation in the fontsize parameter for drawtext.
>
> examples (fontsize 1/3 of video height):
>
> ffmpeg -i http://i.giphy.com/kwAi4WrChkSfm.gif -vf
> "drawtext=fontfile=/Library/Fonts/Verdana
> Bold.ttf:text='HI':fontcolor=yellow:x=(w-tw)/2:y=(h-th)/1.3:fontsize=h/3"
> out.gif
>
> ffmpeg -i http://i.giphy.com/3o6ozzX4mAcwkkgzG8.gif -vf
> "drawtext=fontfile=/Library/Fonts/Verdana
> Bold.ttf:text='HI':fontcolor=yellow:x=(w-tw)/2:y=(h-th)/1.3:fontsize=h/3"
> out.gif
>
> ---
> libavfilter/vf_drawtext.c | 89
> +++++++++++++++++++++++++++++++++++++++++++----
> 1 file changed, 82 insertions(+), 7 deletions(-)
The patch is corrupted by newlines
Applying: Allows expr evaluation in the fontsize parameter for drawtext.
fatal: patch fragment without header at line 20: @@ -209,7 +211,7 @@ static const AVOption drawtext_options[]= {
error: could not build fake ancestor
Patch failed at 0001 Allows expr evaluation in the fontsize parameter for drawtext.
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Concerning the gods, I have no means of knowing whether they exist or not
or of what sort they may be, because of the obscurity of the subject, and
the brevity of human life -- Protagoras
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160827/c836f6bf/attachment.sig>
More information about the ffmpeg-devel
mailing list