mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
implemented custom drawtext and timecode constants
This commit is contained in:
parent
8c75c74cde
commit
8e86f6e37a
1 changed files with 9 additions and 0 deletions
|
|
@ -27,6 +27,15 @@ FFPROBE = (
|
|||
'{} -v quiet -print_format json -show_format -show_streams %(source)s'
|
||||
).format(os.path.normpath(ffmpeg_path + "ffprobe"))
|
||||
|
||||
DRAWTEXT = (
|
||||
"drawtext=text=\\'%(text)s\\':x=%(x)s:y=%(y)s:fontcolor="
|
||||
"%(color)s@%(opacity).1f:fontsize=%(size)d:fontfile='%(font)s'"
|
||||
)
|
||||
TIMECODE = (
|
||||
"drawtext=text=\\'%(text)s\\':timecode=\\'%(timecode)s\\'"
|
||||
":timecode_rate=%(fps).2f:x=%(x)s:y=%(y)s:fontcolor="
|
||||
"%(color)s@%(opacity).1f:fontsize=%(size)d:fontfile='%(font)s'"
|
||||
)
|
||||
|
||||
def _streams(source):
|
||||
"""Reimplemented from otio burnins to be able use full path to ffprobe
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue