mirror of
https://github.com/kkroening/ffmpeg-python.git
synced 2025-04-06 04:15:44 +08:00
Explicitly include -map [0]
when output has multiple mapped streams
This commit is contained in:
parent
0d95d9b58d
commit
90652306ea
@ -100,7 +100,7 @@ def _get_output_args(node, stream_name_map):
|
|||||||
for edge in node.incoming_edges:
|
for edge in node.incoming_edges:
|
||||||
# edge = node.incoming_edges[0]
|
# edge = node.incoming_edges[0]
|
||||||
stream_name = "[{}{}]".format(stream_name_map[edge.upstream_node, edge.upstream_label], "" if not edge.upstream_selector else ":{}".format(edge.upstream_selector))
|
stream_name = "[{}{}]".format(stream_name_map[edge.upstream_node, edge.upstream_label], "" if not edge.upstream_selector else ":{}".format(edge.upstream_selector))
|
||||||
if stream_name != '[0]':
|
if stream_name != '[0]' or len(node.incoming_edges) > 1:
|
||||||
args += ['-map', stream_name]
|
args += ['-map', stream_name]
|
||||||
|
|
||||||
kwargs = copy.copy(node.kwargs)
|
kwargs = copy.copy(node.kwargs)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user