[FFmpeg-trac] #4008(avfilter:new): "main_w" value unrecognized with the new "enable" option in Drawtext

FFmpeg trac at avcodec.org
Mon Oct 6 12:40:07 CEST 2014

#4008: "main_w" value unrecognized with the new "enable" option in Drawtext
             Reporter:  beloko       |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  important    |                Component:  avfilter
              Version:  unspecified  |               Resolution:
             Keywords:  drawtext     |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |

Comment (by ubitux):

 Replying to [comment:4 beloko]:
 > Hello Ubitux,
 > Yes exactly. I use this command to enable the "drawtext" filter only
 when video input resolution has a specific width.
 > In the past, I was able to used the "draw" option available in the
 "drawtext" filter. But now, the "draw" option is discontinued and we have
 to use the "enable" option to replace it.

 > Finally the "draw" option was more efficient and usefull than this new
 "enable" option. So I don't understand why the "draw" option is
 definitively deprecated so early.

 "enable" is a system shared between a lot of other filters, it avoids
 having the same logic duplicated in every filter. "draw" wasn't kept in
 drawtext because no one thought main_w and main_h would actually be useful
 for enabling/disabling the filter. It seems we were wrong.

 Now this use case looks very specific to drawtext, so I'm not yet sure
 between simply adding variable names in the timeline system ("enable"), or
 adding an option in drawtext to say "don't draw the text if it doesn't fit
 into the frame".

 > [...]

Ticket URL: <https://trac.ffmpeg.org/ticket/4008#comment:5>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker

More information about the FFmpeg-trac mailing list