fix filtering and mapping

This commit is contained in:
jb-alvarado 2022-02-03 21:59:13 +01:00
parent 68e7f1ba69
commit e4ea4ad0ac
2 changed files with 6 additions and 6 deletions

View File

@ -107,9 +107,9 @@ def output():
]
if playout.preview:
filtering[-1] = ',split=2[v_out1][v_out2]'
filtering += ['-map', '[v_out2]', '-map', '0:a']
preview = playout.preview_param
filtering[-1] += ',split=2[v_out1][v_out2]'
preview = ['-map', '[v_out1]', '-map', '0:a'
] + playout.preview_param + ['-map', '[v_out2]', '-map', '0:a']
elif playout.preview:
preview = playout.preview_param

View File

@ -61,9 +61,9 @@ def output():
]
if playout.preview:
filtering[-1] = ',split=2[v_out1][v_out2]'
filtering += ['-map', '[v_out2]', '-map', '0:a']
preview = playout.preview_param
filtering[-1] += ',split=2[v_out1][v_out2]'
preview = ['-map', '[v_out1]', '-map', '0:a'
] + playout.preview_param + ['-map', '[v_out2]', '-map', '0:a']
elif playout.preview:
preview = playout.preview_param