remove try from ffplay process
This commit is contained in:
parent
edc81f471f
commit
1c851fda13
15
ffplayout.py
15
ffplayout.py
@ -678,16 +678,11 @@ def main():
|
|||||||
try:
|
try:
|
||||||
if _playout.preview:
|
if _playout.preview:
|
||||||
# preview playout to player
|
# preview playout to player
|
||||||
try:
|
playout = Popen(
|
||||||
playout = Popen(
|
['ffplay', '-i', 'pipe:0'],
|
||||||
['ffplay', '-i', 'pipe:0'],
|
stdin=mbuffer.stdout,
|
||||||
stdin=mbuffer.stdout,
|
bufsize=0
|
||||||
bufsize=0
|
)
|
||||||
)
|
|
||||||
except OSError as e:
|
|
||||||
logger.error(e)
|
|
||||||
mbuffer.terminate()
|
|
||||||
sys.exit(1)
|
|
||||||
else:
|
else:
|
||||||
# playout to rtmp
|
# playout to rtmp
|
||||||
if _pre_comp.copy:
|
if _pre_comp.copy:
|
||||||
|
Loading…
Reference in New Issue
Block a user