Opened 20 months ago

Last modified 7 weeks ago

#7948 new defect

drawtext don't use last line from text file

Reported by: jb_alvarado Owned by:
Priority: normal Component: avfilter
Version: git-master Keywords: drawtext
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no


Summary of the bug:
Editors like nano, Atom or other put automatically a line at the end of an text file.

When drawtext now drawing a box behind the text the box is bigger then the text, because of this empty line in the text file at the end.

It would be nice if the filter would ignore the very last empty line.

Change History (3)

comment:1 Changed 7 months ago by cehoyos

  • Keywords newline removed
  • Priority changed from normal to wish

comment:2 Changed 7 weeks ago by ITgustel

  • Priority changed from wish to normal
  • Type changed from enhancement to defect

Hi, we have the same problem with CentOS 8, nano and cURL generated text files. There is always an additional line at the end of those files. This extra line is not visible in the editors itself and not deleteable. Unfortunately ffmpeg/drawtext reads this as a regular line and draws the box one line bigger.

With RaspberryPi? OS this phenomenon does not appear. It seems the extra line is distribution relatable.

Therefore, an option how ffmpeg treats the last line in a text file would be much appreciated! In other words, the box function is not useable combinded with a textfile, affected by the "extra line problem".


Note: See TracTickets for help on using tickets.