Skip to content

Commit 9065230

Browse files
committed
Explicitly include -map [0] when output has multiple mapped streams
1 parent 0d95d9b commit 9065230

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ffmpeg/_run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def _get_output_args(node, stream_name_map):
100100
for edge in node.incoming_edges:
101101
# edge = node.incoming_edges[0]
102102
stream_name = "[{}{}]".format(stream_name_map[edge.upstream_node, edge.upstream_label], "" if not edge.upstream_selector else ":{}".format(edge.upstream_selector))
103-
if stream_name != '[0]':
103+
if stream_name != '[0]' or len(node.incoming_edges) > 1:
104104
args += ['-map', stream_name]
105105

106106
kwargs = copy.copy(node.kwargs)

0 commit comments

Comments
 (0)