peview mode as argument

This commit is contained in:
Jonathan Baecker 2019-10-15 14:46:30 +02:00
parent 78b411364d
commit d1b92f5574

View File

@ -56,6 +56,10 @@ stdin_parser.add_argument(
'-c', '--config', help='file path to ffplayout.conf'
)
stdin_parser.add_argument(
'-d', '--desktop', help='preview on desktop', action='store_true'
)
stdin_parser.add_argument(
'-f', '--folder', help='play folder content'
)
@ -1368,7 +1372,7 @@ def main():
]
try:
if _playout.preview:
if _playout.preview or stdin_args.desktop:
# preview playout to player
encoder = Popen([
'ffplay', '-hide_banner', '-nostats', '-i', 'pipe:0'