mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 21:32:15 +01:00
_drawtext must count text sizes with timecode text
This commit is contained in:
parent
defe60e556
commit
ca2279e710
1 changed files with 5 additions and 1 deletions
|
|
@ -201,8 +201,12 @@ class ModifiedBurnins(ffmpeg_burnins.Burnins):
|
|||
'color': options['font_color'],
|
||||
'size': options['font_size']
|
||||
}
|
||||
timecode_text = options.get("timecode") or ""
|
||||
text_for_size = text + timecode_text
|
||||
data.update(options)
|
||||
data.update(ffmpeg_burnins._drawtext(align, resolution, text, options))
|
||||
data.update(
|
||||
ffmpeg_burnins._drawtext(align, resolution, text_for_size, options)
|
||||
)
|
||||
if 'font' in data and ffmpeg_burnins._is_windows():
|
||||
data['font'] = data['font'].replace(os.sep, r'\\' + os.sep)
|
||||
data['font'] = data['font'].replace(':', r'\:')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue