[FFmpeg-trac] #541(avfilter:new): Constant in drawtext not working

FFmpeg trac at avcodec.org
Mon Oct 10 19:01:51 CEST 2011


#541: Constant in drawtext not working
----------------------------------+-------------------------------------
             Reporter:  offset8   |                     Type:  defect
               Status:  new       |                 Priority:  important
            Component:  avfilter  |                  Version:  0.8.5
             Keywords:            |               Blocked By:
             Blocking:            |  Reproduced by developer:  0
Analyzed by developer:  0         |
----------------------------------+-------------------------------------
 I'm trying to use some constants in x= and y= parameters as explained in
 the documentation.
 But none working. Always get the following message :

 drawtext @ 0x23774e0] [Eval @ 0x7fff82a777b0] Undefined constant or
 missing '(' in 'h/2)'
 [drawtext @ 0x23774e0] Unable to parse option value "(h/2)"
 [drawtext @ 0x23773e0] Error parsing options string:
 'fontsize=40:fontcolor=white at 1:box=1:boxcolor=black at 0.2:fontfile=/usr/share/fonts/truetype/freefont/FreeSerif.ttf:text=hello:x=50:y=(h/2)'


 Command line :

 $ ffmpeg-0.8.5 -i test.mp4 -vf
 'drawtext=fontsize=40:fontcolor=white at 1:box=1:boxcolor=black at 0.2:fontfile=/usr/share/fonts/truetype/freefont/FreeSerif.ttf:text=hello:x=50:y=(h/2)'
 -s 800x600 -b 2000k -ss 60 test.mpg

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/541>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list