(input_node)
| 29 | |
| 30 | |
| 31 | def _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 | |
| 49 | def _format_input_stream_name(stream_name_map, edge, is_final_arg=False): |
no test coverage detected
searching dependent graphs…