MCPcopy Create free account
hub / github.com/kkroening/ffmpeg-python / _format_input_stream_name

Function _format_input_stream_name

ffmpeg/_run.py:49–61  ·  view source on GitHub ↗
(stream_name_map, edge, is_final_arg=False)

Source from the content-addressed store, hash-verified

47
48
49def _format_input_stream_name(stream_name_map, edge, is_final_arg=False):
50 prefix = stream_name_map[edge.upstream_node, edge.upstream_label]
51 if not edge.upstream_selector:
52 suffix = ''
53 else:
54 suffix = ':{}'.format(edge.upstream_selector)
55 if is_final_arg and isinstance(edge.upstream_node, InputNode):
56 ## Special case: `-map` args should not have brackets for input
57 ## nodes.
58 fmt = '{}{}'
59 else:
60 fmt = '[{}{}]'
61 return fmt.format(prefix, suffix)
62
63
64def _format_output_stream_name(stream_name_map, edge):

Callers 2

_get_filter_specFunction · 0.85
_get_output_argsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…