Retrieves information about all available video and audio devices using FFmpeg.
Project description
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 where the keys are device names
and the values are device identifiers.
Example:
from ffmpegdevices import get_all_devices
ffmpegexe = r"C:\ffmpeg\ffmpeg.exe"
devices = get_all_devices(ffmpegexe)
print(devices)
{
"video": {
"HD Pro Webcam C920": "@device_pnp_\\\\?\\xxxxxxxxxxxxxxxxxx\\global",
"Logi Capture": "@device_sw_{8xxxxxxxxxxxxxxxxxxxxxxx6}\\{4xxxxxxxxxxxxxxA}",
"OBS Virtual Camera": "@device_sw_{xxxxxxxxxxxxxxxxx1CE86}\\{A3FxxxxxxxxxxxxxxxxxxEC20B}",
},
"audio": {
"Krisp Microphone (Krisp Audio)": "@device_cm_{33xxxxxxxxxxxxxxxxE86}\\wave_{7xxxxxxxxxxxxxxxx9FC58}",
"Microphone (2- USB Advanced Audio Device)": "@device_cm_{3xxxxxxxxxxx86}\\wave_{Fxxxxxxxxxxxxxxxxxxxxxxxxx7C65BED9}",
},
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ffmpegdevices-0.10.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for ffmpegdevices-0.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d40d0582030b8db0066e2c2a4894278f2bcfa6bf093d8cdb62b51da8743358f |
|
MD5 | 73f6cac74194e1fbf26b65440e5918f5 |
|
BLAKE2b-256 | 91b77efdb4c1ce67bfe9cf5d4662efed3a5f04ae2214585a872a842fa1c36c64 |