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

Function _get_input_args

ffmpeg/_run.py:31–46  ·  view source on GitHub ↗
(input_node)

Source from the content-addressed store, hash-verified

29
30
31def _get_input_args(input_node):
32 if input_node.name == input.__name__:
33 kwargs = copy.copy(input_node.kwargs)
34 filename = kwargs.pop('filename')
35 fmt = kwargs.pop('format', None)
36 video_size = kwargs.pop('video_size', None)
37 args = []
38 if fmt:
39 args += ['-f', fmt]
40 if video_size:
41 args += ['-video_size', '{}x{}'.format(video_size[0], video_size[1])]
42 args += convert_kwargs_to_cmd_line_args(kwargs)
43 args += ['-i', filename]
44 else:
45 raise ValueError('Unsupported input node: {}'.format(input_node))
46 return args
47
48
49def _format_input_stream_name(stream_name_map, edge, is_final_arg=False):

Callers 1

get_argsFunction · 0.85

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…