Opened 3 years ago

Last modified 18 months 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:

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 Balling, 3 years ago

SDL_OpenAudio ffplay already uses WASAPI. Interesting that 8.1 is apparently not supported.

comment:2 by Carl Eugen Hoyos, 18 months ago

Component: undeterminedavdevice
Priority: normalwish
Version: unspecifiedgit-master
Note: See TracTickets for help on using tickets.