mirror of
https://github.com/kkroening/ffmpeg-python.git
synced 2025-04-05 04:22:51 +08:00
Label-based order of outputs from multiple-output filters
This commit is contained in:
parent
faca0ee87b
commit
732bf21397
@ -84,7 +84,7 @@ def _allocate_filter_stream_names(filter_nodes, outgoing_edge_maps, stream_name_
|
|||||||
stream_count = 0
|
stream_count = 0
|
||||||
for upstream_node in filter_nodes:
|
for upstream_node in filter_nodes:
|
||||||
outgoing_edge_map = outgoing_edge_maps[upstream_node]
|
outgoing_edge_map = outgoing_edge_maps[upstream_node]
|
||||||
for upstream_label, downstreams in list(outgoing_edge_map.items()):
|
for upstream_label, downstreams in sorted(outgoing_edge_map.items()):
|
||||||
if len(downstreams) > 1:
|
if len(downstreams) > 1:
|
||||||
# TODO: automatically insert `splits` ahead of time via graph transformation.
|
# TODO: automatically insert `splits` ahead of time via graph transformation.
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
|
@ -100,7 +100,7 @@ def get_incoming_edges(downstream_node, incoming_edge_map):
|
|||||||
|
|
||||||
def get_outgoing_edges(upstream_node, outgoing_edge_map):
|
def get_outgoing_edges(upstream_node, outgoing_edge_map):
|
||||||
edges = []
|
edges = []
|
||||||
for upstream_label, downstream_infos in list(outgoing_edge_map.items()):
|
for upstream_label, downstream_infos in sorted(outgoing_edge_map.items()):
|
||||||
for downstream_info in downstream_infos:
|
for downstream_info in downstream_infos:
|
||||||
downstream_node, downstream_label, downstream_selector = downstream_info
|
downstream_node, downstream_label, downstream_selector = downstream_info
|
||||||
edges += [
|
edges += [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user