starting with text overlay

This commit is contained in:
Jonathan Baecker 2019-06-07 16:12:09 +02:00
parent e0f829871f
commit 6fff195cd1
2 changed files with 4 additions and 1 deletions

View File

@ -1023,7 +1023,9 @@ def main():
if _playout.preview:
# preview playout to player
encoder = Popen([
'ffplay', '-hide_banner', '-nostats', '-i', 'pipe:0'],
'ffplay', '-hide_banner', '-nostats', '-i', 'pipe:0',
'-vf', "drawtext=enable='gte(t,3)':box=1:boxcolor=0x000000@0xcc:boxborderw=8:fontsize=24:fontcolor=white:textfile=live.txt:reload=1:y=(h-line_h)*0\,9:x=w-w/8*mod(t\,8*(w+tw)/w)"
],
stderr=None, stdin=PIPE, stdout=None
)
else:

1
live.txt Normal file
View File

@ -0,0 +1 @@
This is a very important news! ...