Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ==> Extracting sources...
- -> Extracting python-ffmpeg-0.2.0.tar.gz with bsdtar
- ==> Starting build()...
- running build
- running build_py
- creating build
- creating build/lib
- creating build/lib/ffmpeg
- copying ffmpeg/__init__.py -> build/lib/ffmpeg
- copying ffmpeg/_ffmpeg.py -> build/lib/ffmpeg
- copying ffmpeg/_filters.py -> build/lib/ffmpeg
- copying ffmpeg/_probe.py -> build/lib/ffmpeg
- copying ffmpeg/_run.py -> build/lib/ffmpeg
- copying ffmpeg/_utils.py -> build/lib/ffmpeg
- copying ffmpeg/_view.py -> build/lib/ffmpeg
- copying ffmpeg/dag.py -> build/lib/ffmpeg
- copying ffmpeg/nodes.py -> build/lib/ffmpeg
- ==> Starting check()...
- ============================= test session starts ==============================
- platform linux -- Python 3.10.1, pytest-6.2.5, py-1.10.0, pluggy-0.13.1
- rootdir: /build/python-ffmpeg/src/ffmpeg-python-0.2.0, configfile: pytest.ini, testpaths: ffmpeg/tests
- plugins: mock-3.6.1
- collected 60 items
- ffmpeg/tests/test_ffmpeg.py ....................F....................... [ 73%]
- ................ [100%]
- =================================== FAILURES ===================================
- ____________________ test__output__video_size[video_size0] _____________________
- video_size = (320, 240)
- @pytest.mark.parametrize('video_size', [(320, 240), '320x240'])
- def test__output__video_size(video_size):
- > args = ffmpeg.input('in').output('out', video_size=video_size).get_args()
- ffmpeg/tests/test_ffmpeg.py:349:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ffmpeg/_run.py:166: in get_args
- operator.add, [_get_output_args(node, stream_name_map) for node in output_nodes]
- ffmpeg/_run.py:166: in <listcomp>
- operator.add, [_get_output_args(node, stream_name_map) for node in output_nodes]
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- node = output(filename='out', video_size=(320, 240)) <157d3172d6b2>
- stream_name_map = {(input(filename='in') <81abb3852fbe>, None): '0'}
- def _get_output_args(node, stream_name_map):
- if node.name != output.__name__:
- raise ValueError('Unsupported output node: {}'.format(node))
- args = []
- if len(node.incoming_edges) == 0:
- raise ValueError('Output node {} has no mapped streams'.format(node))
- for edge in node.incoming_edges:
- # edge = node.incoming_edges[0]
- stream_name = _format_input_stream_name(
- stream_name_map, edge, is_final_arg=True
- )
- if stream_name != '0' or len(node.incoming_edges) > 1:
- args += ['-map', stream_name]
- kwargs = copy.copy(node.kwargs)
- filename = kwargs.pop('filename')
- if 'format' in kwargs:
- args += ['-f', kwargs.pop('format')]
- if 'video_bitrate' in kwargs:
- args += ['-b:v', str(kwargs.pop('video_bitrate'))]
- if 'audio_bitrate' in kwargs:
- args += ['-b:a', str(kwargs.pop('audio_bitrate'))]
- if 'video_size' in kwargs:
- video_size = kwargs.pop('video_size')
- if not isinstance(video_size, basestring) and isinstance(
- > video_size, collections.Iterable
- ):
- E AttributeError: module 'collections' has no attribute 'Iterable'
- ffmpeg/_run.py:140: AttributeError
- =============================== warnings summary ===============================
- ../../../../usr/lib/python3.10/site-packages/past/builtins/misc.py:45
- /usr/lib/python3.10/site-packages/past/builtins/misc.py:45: DeprecationWarning: the imp module is deprecated in favour of importlib and slated for removal in Python 3.12; see the module's documentation for alternative uses
- from imp import reload
- ffmpeg/tests/test_ffmpeg.py:31
- /build/python-ffmpeg/src/ffmpeg-python-0.2.0/ffmpeg/tests/test_ffmpeg.py:31: DeprecationWarning: invalid escape sequence '\:'
- assert ffmpeg._utils.escape_chars('a:b', ':') == 'a\:b'
- ffmpeg/tests/test_ffmpeg.py::test__get_filter_complex_input
- ffmpeg/tests/test_ffmpeg.py::test__multi_output_edge_label_order
- /build/python-ffmpeg/src/ffmpeg-python-0.2.0/ffmpeg/tests/test_ffmpeg.py:722: FutureWarning: Possible nested set at position 20
- m = re.search(r'\[([^]]+)\]{}(?=[[;]|$)'.format(name), flt)
- -- Docs: https://docs.pytest.org/en/stable/warnings.html
- =========================== short test summary info ============================
- FAILED ffmpeg/tests/test_ffmpeg.py::test__output__video_size[video_size0] - A...
- =================== 1 failed, 59 passed, 4 warnings in 0.94s ===================
- ==> ERROR: A failure occurred in check().
- Aborting...
- ==> ERROR: Build failed, check /home/eivind/work/build/chroot/eivind/build
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement