Advertisement
Guest User

python-ffmpeg build error

a guest
Dec 12th, 2021
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.74 KB | None | 0 0
  1. ==> Extracting sources...
  2. -> Extracting python-ffmpeg-0.2.0.tar.gz with bsdtar
  3. ==> Starting build()...
  4. running build
  5. running build_py
  6. creating build
  7. creating build/lib
  8. creating build/lib/ffmpeg
  9. copying ffmpeg/__init__.py -> build/lib/ffmpeg
  10. copying ffmpeg/_ffmpeg.py -> build/lib/ffmpeg
  11. copying ffmpeg/_filters.py -> build/lib/ffmpeg
  12. copying ffmpeg/_probe.py -> build/lib/ffmpeg
  13. copying ffmpeg/_run.py -> build/lib/ffmpeg
  14. copying ffmpeg/_utils.py -> build/lib/ffmpeg
  15. copying ffmpeg/_view.py -> build/lib/ffmpeg
  16. copying ffmpeg/dag.py -> build/lib/ffmpeg
  17. copying ffmpeg/nodes.py -> build/lib/ffmpeg
  18. ==> Starting check()...
  19. ============================= test session starts ==============================
  20. platform linux -- Python 3.10.1, pytest-6.2.5, py-1.10.0, pluggy-0.13.1
  21. rootdir: /build/python-ffmpeg/src/ffmpeg-python-0.2.0, configfile: pytest.ini, testpaths: ffmpeg/tests
  22. plugins: mock-3.6.1
  23. collected 60 items
  24.  
  25. ffmpeg/tests/test_ffmpeg.py ....................F....................... [ 73%]
  26. ................ [100%]
  27.  
  28. =================================== FAILURES ===================================
  29. ____________________ test__output__video_size[video_size0] _____________________
  30.  
  31. video_size = (320, 240)
  32.  
  33. @pytest.mark.parametrize('video_size', [(320, 240), '320x240'])
  34. def test__output__video_size(video_size):
  35. > args = ffmpeg.input('in').output('out', video_size=video_size).get_args()
  36.  
  37. ffmpeg/tests/test_ffmpeg.py:349:
  38. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  39. ffmpeg/_run.py:166: in get_args
  40. operator.add, [_get_output_args(node, stream_name_map) for node in output_nodes]
  41. ffmpeg/_run.py:166: in <listcomp>
  42. operator.add, [_get_output_args(node, stream_name_map) for node in output_nodes]
  43. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  44.  
  45. node = output(filename='out', video_size=(320, 240)) <157d3172d6b2>
  46. stream_name_map = {(input(filename='in') <81abb3852fbe>, None): '0'}
  47.  
  48. def _get_output_args(node, stream_name_map):
  49. if node.name != output.__name__:
  50. raise ValueError('Unsupported output node: {}'.format(node))
  51. args = []
  52.  
  53. if len(node.incoming_edges) == 0:
  54. raise ValueError('Output node {} has no mapped streams'.format(node))
  55.  
  56. for edge in node.incoming_edges:
  57. # edge = node.incoming_edges[0]
  58. stream_name = _format_input_stream_name(
  59. stream_name_map, edge, is_final_arg=True
  60. )
  61. if stream_name != '0' or len(node.incoming_edges) > 1:
  62. args += ['-map', stream_name]
  63.  
  64. kwargs = copy.copy(node.kwargs)
  65. filename = kwargs.pop('filename')
  66. if 'format' in kwargs:
  67. args += ['-f', kwargs.pop('format')]
  68. if 'video_bitrate' in kwargs:
  69. args += ['-b:v', str(kwargs.pop('video_bitrate'))]
  70. if 'audio_bitrate' in kwargs:
  71. args += ['-b:a', str(kwargs.pop('audio_bitrate'))]
  72. if 'video_size' in kwargs:
  73. video_size = kwargs.pop('video_size')
  74. if not isinstance(video_size, basestring) and isinstance(
  75. > video_size, collections.Iterable
  76. ):
  77. E AttributeError: module 'collections' has no attribute 'Iterable'
  78.  
  79. ffmpeg/_run.py:140: AttributeError
  80. =============================== warnings summary ===============================
  81. ../../../../usr/lib/python3.10/site-packages/past/builtins/misc.py:45
  82. /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
  83. from imp import reload
  84.  
  85. ffmpeg/tests/test_ffmpeg.py:31
  86. /build/python-ffmpeg/src/ffmpeg-python-0.2.0/ffmpeg/tests/test_ffmpeg.py:31: DeprecationWarning: invalid escape sequence '\:'
  87. assert ffmpeg._utils.escape_chars('a:b', ':') == 'a\:b'
  88.  
  89. ffmpeg/tests/test_ffmpeg.py::test__get_filter_complex_input
  90. ffmpeg/tests/test_ffmpeg.py::test__multi_output_edge_label_order
  91. /build/python-ffmpeg/src/ffmpeg-python-0.2.0/ffmpeg/tests/test_ffmpeg.py:722: FutureWarning: Possible nested set at position 20
  92. m = re.search(r'\[([^]]+)\]{}(?=[[;]|$)'.format(name), flt)
  93.  
  94. -- Docs: https://docs.pytest.org/en/stable/warnings.html
  95. =========================== short test summary info ============================
  96. FAILED ffmpeg/tests/test_ffmpeg.py::test__output__video_size[video_size0] - A...
  97. =================== 1 failed, 59 passed, 4 warnings in 0.94s ===================
  98. ==> ERROR: A failure occurred in check().
  99. Aborting...
  100. ==> ERROR: Build failed, check /home/eivind/work/build/chroot/eivind/build
  101.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement