implemented custom drawtext and timecode constants

This commit is contained in:
iLLiCiTiT 2020-02-06 10:50:18 +01:00
parent 8c75c74cde
commit 8e86f6e37a

View file

@ -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