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

Function get_stream_map

ffmpeg/nodes.py:124–133  ·  view source on GitHub ↗
(stream_spec)

Source from the content-addressed store, hash-verified

122
123
124def get_stream_map(stream_spec):
125 if stream_spec is None:
126 stream_map = {}
127 elif isinstance(stream_spec, Stream):
128 stream_map = {None: stream_spec}
129 elif isinstance(stream_spec, (list, tuple)):
130 stream_map = dict(enumerate(stream_spec))
131 elif isinstance(stream_spec, dict):
132 stream_map = stream_spec
133 return stream_map
134
135
136def get_stream_map_nodes(stream_map):

Callers 2

get_stream_spec_nodesFunction · 0.85
__init__Method · 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…