diff --git a/ffplayout/output/live_switch.py b/ffplayout/output/live_switch.py index 16c04343..c1a40e72 100644 --- a/ffplayout/output/live_switch.py +++ b/ffplayout/output/live_switch.py @@ -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 diff --git a/ffplayout/output/stream.py b/ffplayout/output/stream.py index 9b988ba7..bb7dbb89 100644 --- a/ffplayout/output/stream.py +++ b/ffplayout/output/stream.py @@ -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