Opened 3 years ago
Last modified 2 years ago
#9408 new enhancement
WASAPI Audio Input/Output Support
Reported by: | Brad Isbell | Owned by: | |
---|---|---|---|
Priority: | wish | Component: | avdevice |
Version: | git-master | Keywords: | |
Cc: | Brad Isbell | Blocked By: | |
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
The Windows Audio Session API (WASAPI) is a modern API for audio playback/capture under Windows. It offers several benefits over the current DirectShow implementation in FFmpeg:
- Multi-channel support
- Loopback capture, for both entire output devices and for individual streams from applications
- Low-latency I/O without the need for proprietary ASIO
- Exclusive mode for further reducing latency
Sample Usage
Capture from multichannel soundcard:
ffmpeg -f wasapi -ar 96000 -ac 8 -i device="My Multichannel Soundcard" …
Capture in exclusive mode from soundcard named 'Soundcard':
ffmpeg -f wasapi -exclusive_mode true -i device="Soundcard" …
Capture loopback from soundcard named 'Soundcard':
ffmpeg -f wasapi -i loopback_device="Soundcard" …
Capture loopback from entire system:
ffmpeg -f wasapi -i loopback_system=true …
Capture loopback from app by name or PID:
ffmpeg -f wasapi -i loopback_application_pid=54321 … ffmpeg -f wasapi -i loopback_application_name="Skifree" …
Change History (2)
comment:1 by , 3 years ago
comment:2 by , 2 years ago
Component: | undetermined → avdevice |
---|---|
Priority: | normal → wish |
Version: | unspecified → git-master |
Note:
See TracTickets
for help on using tickets.
SDL_OpenAudio ffplay already uses WASAPI. Interesting that 8.1 is apparently not supported.