Skip to main content

Retrieves information about all available video and audio devices using FFmpeg.

pip install ffmpegdevices

Tested against Windows 10 / Python 3.10 / Anaconda

        Retrieves information about all available video and audio devices using FFmpeg.

        Args:
            ffmpegexe (str): The path to the FFmpeg executable.

        Returns:
            dict: A dictionary containing information about all available devices.
                  The dictionary has two keys: "video" and "audio".
                  The value of each key is another dictionary with all device infos

        Example:
            from pprint import pprint as pp
            from ffmpegdevices import get_all_devices
            ffmpegexe = r"C:\ffmpeg\ffmpeg.exe"
            devices = get_all_devices(ffmpegexe)
            pp(devices)

    {'audio': {0: {'alternative_name': '@device_cm_{33D9A762-90C8-11D0-BD43-00A0C911CE86}\\wave_{70C2267E-6685-4496-B3E7-23FAA519FC58}',
                   'name': 'Krisp Microphone (Krisp Audio)',
                   'options': {0: {'bits': 16, 'ch': 2, 'rate': 44100},
                               1: {'bits': 16, 'ch': 1, 'rate': 44100},
                               2: {'bits': 16, 'ch': 2, 'rate': 32000},
                               3: {'bits': 16, 'ch': 1, 'rate': 32000},
                               4: {'bits': 16, 'ch': 2, 'rate': 22050},
                               5: {'bits': 16, 'ch': 1, 'rate': 22050},
                               6: {'bits': 16, 'ch': 2, 'rate': 11025},
                               7: {'bits': 16, 'ch': 1, 'rate': 11025},
                               8: {'bits': 16, 'ch': 2, 'rate': 8000},
                               9: {'bits': 16, 'ch': 1, 'rate': 8000},
                               10: {'bits': 8, 'ch': 2, 'rate': 44100},
                               11: {'bits': 8, 'ch': 1, 'rate': 44100},
                               12: {'bits': 8, 'ch': 2, 'rate': 22050},
                               13: {'bits': 8, 'ch': 1, 'rate': 22050},
                               14: {'bits': 8, 'ch': 2, 'rate': 11025},
                               15: {'bits': 8, 'ch': 1, 'rate': 11025},
                               16: {'bits': 8, 'ch': 2, 'rate': 8000},
                               17: {'bits': 8, 'ch': 1, 'rate': 8000},
                               18: {'bits': 16, 'ch': 2, 'rate': 48000},
                               19: {'bits': 16, 'ch': 1, 'rate': 48000},
                               20: {'bits': 16, 'ch': 2, 'rate': 96000},
                               21: {'bits': 16, 'ch': 1, 'rate': 96000}}},
               1: {'alternative_name': '@device_cm_{33D9A762-90C8-11D0-BD43-00A0C911CE86}\\wave_{FC0D8211-5530-4CC1-8B8D-14AC7C65BED9}',
                   'name': 'Microphone (2- USB Advanced Audio Device)',
                   'options': {0: {'bits': 16, 'ch': 2, 'rate': 44100},
                               1: {'bits': 16, 'ch': 1, 'rate': 44100},
                               2: {'bits': 16, 'ch': 2, 'rate': 32000},
                               3: {'bits': 16, 'ch': 1, 'rate': 32000},
                               4: {'bits': 16, 'ch': 2, 'rate': 22050},
                               5: {'bits': 16, 'ch': 1, 'rate': 22050},
                               6: {'bits': 16, 'ch': 2, 'rate': 11025},
                               7: {'bits': 16, 'ch': 1, 'rate': 11025},
                               8: {'bits': 16, 'ch': 2, 'rate': 8000},
                               9: {'bits': 16, 'ch': 1, 'rate': 8000},
                               10: {'bits': 8, 'ch': 2, 'rate': 44100},
                               11: {'bits': 8, 'ch': 1, 'rate': 44100},
                               12: {'bits': 8, 'ch': 2, 'rate': 22050},
                               13: {'bits': 8, 'ch': 1, 'rate': 22050},
                               14: {'bits': 8, 'ch': 2, 'rate': 11025},
                               15: {'bits': 8, 'ch': 1, 'rate': 11025},
                               16: {'bits': 8, 'ch': 2, 'rate': 8000},
                               17: {'bits': 8, 'ch': 1, 'rate': 8000},
                               18: {'bits': 16, 'ch': 2, 'rate': 48000},
                               19: {'bits': 16, 'ch': 1, 'rate': 48000},
                               20: {'bits': 16, 'ch': 2, 'rate': 96000},
                               21: {'bits': 16, 'ch': 1, 'rate': 96000}}}},
     'video': {0: {'alternative_name': '@device_pnp_\\\\?\\usb#vid_046d&pid_0892&mi_00#8&222f6f15&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\\global',
                   'name': 'HD Pro Webcam C920',
                   'options': {0: {'fps': 30,
                                   'info': '(tv, bt470bg/bt709/unknown, topleft)',
                                   'max_s': '640x480',
                                   'min_s': '640x480',
                                   'pixel_format': 'yuyv422'},
                               1: {'fps': 30,
                                   'info': '(tv, bt470bg/bt709/unknown, topleft)',
                                   'max_s': '160x90',
                                   'min_s': '160x90',
                                   'pixel_format': 'yuyv422'},
                               2: {'fps': 30,
                                   'info': '(tv, bt470bg/bt709/unknown, topleft)',
                                   'max_s': '160x120',
                                   'min_s': '160x120',
                                   'pixel_format': 'yuyv422'},
                               3: {'fps': 30,
                                   'info': '(tv, bt470bg/bt709/unknown, topleft)',
                                   'max_s': '176x144',
                                   'min_s': '176x144',
                                   'pixel_format': 'yuyv422'},
                               4: {'fps': 30,
                                   'info': '(tv, bt470bg/bt709/unknown, topleft)',
                                   'max_s': '320x180',
                                   'min_s': '320x180',
                                   'pixel_format': 'yuyv422'},
                               5: {'fps': 30,
                                   'info': '(tv, bt470bg/bt709/unknown, topleft)',
                                   'max_s': '320x240',
                                   'min_s': '320x240',
                                   'pixel_format': 'yuyv422'},
                               6: {'fps': 30,
                                   'info': '(tv, bt470bg/bt709/unknown, topleft)',
                                   'max_s': '352x288',
                                   'min_s': '352x288',
                                   'pixel_format': 'yuyv422'},
                               7: {'fps': 30,
                                   'info': '(tv, bt470bg/bt709/unknown, topleft)',
                                   'max_s': '432x240',
                                   'min_s': '432x240',
                                   'pixel_format': 'yuyv422'},
                               8: {'fps': 30,
                                   'info': '(tv, bt470bg/bt709/unknown, topleft)',
                                   'max_s': '640x360',
                                   'min_s': '640x360',
                                   'pixel_format': 'yuyv422'},
                               9: {'fps': 30,
                                   'info': '(tv, bt470bg/bt709/unknown, topleft)',
                                   'max_s': '800x448',
                                   'min_s': '800x448',
                                   'pixel_format': 'yuyv422'},
                               10: {'fps': 24,
                                    'info': '(tv, bt470bg/bt709/unknown, topleft)',
                                    'max_s': '800x600',
                                    'min_s': '800x600',
                                    'pixel_format': 'yuyv422'},
                               11: {'fps': 24,
                                    'info': '(tv, bt470bg/bt709/unknown, topleft)',
                                    'max_s': '864x480',
                                    'min_s': '864x480',
                                    'pixel_format': 'yuyv422'},
                               12: {'fps': 15,
                                    'info': '(tv, bt470bg/bt709/unknown, topleft)',
                                    'max_s': '960x720',
                                    'min_s': '960x720',
                                    'pixel_format': 'yuyv422'},
                               13: {'fps': 15,
                                    'info': '(tv, bt470bg/bt709/unknown, topleft)',
                                    'max_s': '1024x576',
                                    'min_s': '1024x576',
                                    'pixel_format': 'yuyv422'},
                               14: {'fps': 10,
                                    'info': '(tv, bt470bg/bt709/unknown, topleft)',
                                    'max_s': '1280x720',
                                    'min_s': '1280x720',
                                    'pixel_format': 'yuyv422'},
                               15: {'fps': 7.5,
                                    'info': '(tv, bt470bg/bt709/unknown, topleft)',
                                    'max_s': '1600x896',
                                    'min_s': '1600x896',
                                    'pixel_format': 'yuyv422'},
                               16: {'fps': 5,
                                    'info': '(tv, bt470bg/bt709/unknown, topleft)',
                                    'max_s': '1920x1080',
                                    'min_s': '1920x1080',
                                    'pixel_format': 'yuyv422'},
                               17: {'fps': 2,
                                    'info': '(tv, bt470bg/bt709/unknown, topleft)',
                                    'max_s': '2304x1296',
                                    'min_s': '2304x1296',
                                    'pixel_format': 'yuyv422'},
                               18: {'fps': 2,
                                    'info': '(tv, bt470bg/bt709/unknown, topleft)',
                                    'max_s': '2304x1536',
                                    'min_s': '2304x1536',
                                    'pixel_format': 'yuyv422'},
                               19: {'fps': 30,
                                    'info': '(pc, bt470bg/bt709/unknown, center)',
                                    'max_s': '640x480',
                                    'min_s': '640x480',
                                    'vcodec': 'mjpeg'},
                               20: {'fps': 30,
                                    'info': '(pc, bt470bg/bt709/unknown, center)',
                                    'max_s': '160x90',
                                    'min_s': '160x90',
                                    'vcodec': 'mjpeg'},
                               21: {'fps': 30,
                                    'info': '(pc, bt470bg/bt709/unknown, center)',
                                    'max_s': '160x120',
                                    'min_s': '160x120',
                                    'vcodec': 'mjpeg'},
                               22: {'fps': 30,
                                    'info': '(pc, bt470bg/bt709/unknown, center)',
                                    'max_s': '176x144',
                                    'min_s': '176x144',
                                    'vcodec': 'mjpeg'},
                               23: {'fps': 30,
                                    'info': '(pc, bt470bg/bt709/unknown, center)',
                                    'max_s': '320x180',
                                    'min_s': '320x180',
                                    'vcodec': 'mjpeg'},
                               24: {'fps': 30,
                                    'info': '(pc, bt470bg/bt709/unknown, center)',
                                    'max_s': '320x240',
                                    'min_s': '320x240',
                                    'vcodec': 'mjpeg'},
                               25: {'fps': 30,
                                    'info': '(pc, bt470bg/bt709/unknown, center)',
                                    'max_s': '352x288',
                                    'min_s': '352x288',
                                    'vcodec': 'mjpeg'},
                               26: {'fps': 30,
                                    'info': '(pc, bt470bg/bt709/unknown, center)',
                                    'max_s': '432x240',
                                    'min_s': '432x240',
                                    'vcodec': 'mjpeg'},
                               27: {'fps': 30,
                                    'info': '(pc, bt470bg/bt709/unknown, center)',
                                    'max_s': '640x360',
                                    'min_s': '640x360',
                                    'vcodec': 'mjpeg'},
                               28: {'fps': 30,
                                    'info': '(pc, bt470bg/bt709/unknown, center)',
                                    'max_s': '800x448',
                                    'min_s': '800x448',
                                    'vcodec': 'mjpeg'},
                               29: {'fps': 30,
                                    'info': '(pc, bt470bg/bt709/unknown, center)',
                                    'max_s': '800x600',
                                    'min_s': '800x600',
                                    'vcodec': 'mjpeg'},
                               30: {'fps': 30,
                                    'info': '(pc, bt470bg/bt709/unknown, center)',
                                    'max_s': '864x480',
                                    'min_s': '864x480',
                                    'vcodec': 'mjpeg'},
                               31: {'fps': 30,
                                    'info': '(pc, bt470bg/bt709/unknown, center)',
                                    'max_s': '960x720',
                                    'min_s': '960x720',
                                    'vcodec': 'mjpeg'},
                               32: {'fps': 30,
                                    'info': '(pc, bt470bg/bt709/unknown, center)',
                                    'max_s': '1024x576',
                                    'min_s': '1024x576',
                                    'vcodec': 'mjpeg'},
                               33: {'fps': 30,
                                    'info': '(pc, bt470bg/bt709/unknown, center)',
                                    'max_s': '1280x720',
                                    'min_s': '1280x720',
                                    'vcodec': 'mjpeg'},
                               34: {'fps': 30,
                                    'info': '(pc, bt470bg/bt709/unknown, center)',
                                    'max_s': '1600x896',
                                    'min_s': '1600x896',
                                    'vcodec': 'mjpeg'},
                               35: {'fps': 30,
                                    'info': '(pc, bt470bg/bt709/unknown, center)',
                                    'max_s': '1920x1080',
                                    'min_s': '1920x1080',
                                    'vcodec': 'mjpeg'}}},
               1: {'alternative_name': '@device_sw_{860BB310-5D01-11D0-BD3B-00A0C911CE86}\\{4A2FEA90-B0A0-438E-8BC3-D84157660D0A}',
                   'name': 'Logi Capture',
                   'options': {}},
               2: {'alternative_name': '@device_sw_{860BB310-5D01-11D0-BD3B-00A0C911CE86}\\{A3FCE0F5-3493-419F-958A-ABA1250EC20B}',
                   'name': 'OBS Virtual Camera',
                   'options': {}}}}

Metadata

Release files for ffmpegdevices 0.12

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ffmpegdevices 0.12
File Size Uploaded Provenance Actions
ffmpegdevices-0.12.tar.gz 6.5 kB Without provenance Details for ffmpegdevices-0.12.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ffmpegdevices 0.12
File Interpreter ABI Platform Actions
ffmpegdevices-0.12-py3-none-any.whl Python 3 none any Details for ffmpegdevices-0.12-py3-none-any.whl

Total release size: 15.2 kB

Release files / ffmpegdevices-0.12.tar.gz

Download URL ffmpegdevices-0.12.tar.gz
Size 6.5 kB
Tags Source
SHA-256 checksum
How to use checksums
1a9d8a301331f830ee674ea01235825895990e40ab83828f1bfa38738a912efd
BLAKE2b-256 checksum
How to use checksums
a607a384b9c08908aba1b2164f3c0b690563db5b779448c0ce249537350a300b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.10

Release files / ffmpegdevices-0.12-py3-none-any.whl

Download URL ffmpegdevices-0.12-py3-none-any.whl
Size 8.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
24f92da92de355a4b871ffbee3b55a4a45faba9e01e56926f913b3b55f352692
BLAKE2b-256 checksum
How to use checksums
e4fec61c45b13a1c2ce82489b88f201de4a08aa321caf3c6844291b9a48e60e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.10

Security for ffmpegdevices 0.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.12 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page