You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I installed PyAV from a PyPI binary wheel on both Windows and Linux (Ubuntu).
In windows 11
> python
Python 3.13.13 (tags/v3.13.13:01104ce, Apr 7 2026, 19:25:48) [MSC v.1944 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import av
>>> av.__version__
'17.0.1'
>>> av.enumerate_input_devices('dshow')
Traceback (most recent call last):
File "<python-input-2>", line 1, in <module>
av.enumerate_input_devices('dshow')
~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
File "av/device.py", line 153, in av.device.enumerate_input_devices
return _build_device_list(device_list)
^^^
File "av/device.py", line 58, in av.device._build_device_list
media_types.append(s.decode())
AttributeError: 'str' object has no attribute 'decode'. Did you mean: 'encode'?
In Ubuntu 24.04
$ python
Python 3.12.3 (main, Mar 23 2026, 19:04:32) [GCC 13.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import av
>>> av.__version__
'17.0.1'
>>> av.enumerate_input_devices('v4l2')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "av/device.py", line 153, in av.device.enumerate_input_devices
File "av/device.py", line 62, in av.device._build_device_list
AttributeError: 'str' object has no attribute 'decode'. Did you mean: 'encode'?
Activity
Fix PyAV-Org#2264
Fix PyAV-Org#2264 (Re-revised)
Fix #2264 (Re-revised)