#9408(undetermined:new): WASAPI Audio Input/Output Support
#9408: WASAPI Audio Input/Output Support -------------------------------------+------------------------------------- Reporter: Brad Isbell | Type: | enhancement Status: new | Priority: normal Component: | Version: undetermined | unspecified Keywords: | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- 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: - [https://docs.microsoft.com/en-us/windows/win32/api/mmreg/ns-mmreg- waveformatextensible Multi-channel support] - [https://docs.microsoft.com/en-us/windows/win32/coreaudio/loopback- recording Loopback capture], for both entire output devices and for individual streams from applications - [https://docs.microsoft.com/en-us/windows/win32/api/audioclient/nf- audioclient-iaudioclient-initialize Low-latency I/O] without the need for proprietary ASIO - [https://docs.microsoft.com/en-us/windows/win32/coreaudio/exclusive- mode-streams 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" … }}} -- Ticket URL: <https://trac.ffmpeg.org/ticket/9408> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#9408: WASAPI Audio Input/Output Support -------------------------------------+------------------------------------- Reporter: Brad Isbell | Owner: (none) Type: enhancement | Status: new Priority: normal | Component: | undetermined Version: unspecified | Resolution: Keywords: | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Comment (by Balling): SDL_OpenAudio ffplay already uses WASAPI. Interesting that 8.1 is apparently not supported. -- Ticket URL: <https://trac.ffmpeg.org/ticket/9408#comment:1> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#9408: WASAPI Audio Input/Output Support -------------------------------------+------------------------------------ Reporter: Brad Isbell | Owner: (none) Type: enhancement | Status: new Priority: wish | Component: avdevice Version: git-master | Resolution: Keywords: | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------ Changes (by Carl Eugen Hoyos): * priority: normal => wish * version: unspecified => git-master * component: undetermined => avdevice -- Ticket URL: <https://trac.ffmpeg.org/ticket/9408#comment:2> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#9408: WASAPI Audio Input/Output Support -------------------------------------+------------------------------------ Reporter: Brad Isbell | Owner: (none) Type: enhancement | Status: new Priority: wish | Component: avdevice Version: git-master | Resolution: Keywords: | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------ Comment (by Glenn C Newell): This is a problem in that modern immersive surround formats have more than 8 channels, not to mention High Order Ambisonics. Other aspects of ffmpeg have channel support up to 22.2, but for playback SDL2 is a bottleneck. A Related note, even given dshow and WASAPI support, it is very difficult/impossible to find windows binary builds with support for those. -- Ticket URL: <https://trac.ffmpeg.org/ticket/9408#comment:3> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
±1.0 can be captured with WASAPI in exclusive mode. Gstreamer supports
#9408: WASAPI Audio Input/Output Support -------------------------------------+------------------------------------ Reporter: Brad Isbell | Owner: (none) Type: enhancement | Status: new Priority: wish | Component: avdevice Version: git-master | Resolution: Keywords: | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------ Comment (by Brad Isbell): Another use case that's popped up is capturing in 32-bit float. Several prosumer audio interfaces and recorders now support floating point audio capture. 32-bit float can be captured with WASAPI. Samples with values this today. If FFmpeg adds support, that goes a long way to enabling floating point capture in all the applications built on FFmpeg. -- Ticket URL: <https://trac.ffmpeg.org/ticket/9408#comment:4> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#9408: WASAPI Audio Input/Output Support -------------------------------------+------------------------------------ Reporter: Brad Isbell | Owner: (none) Type: enhancement | Status: new Priority: wish | Component: avdevice Version: git-master | Resolution: Keywords: | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------ Comment (by Federico Gratti): It would be great to have WASAPI on ffmpeg. Mainly to capture loopback from entire system and use it with the Screen Recording feature -- Ticket URL: <https://trac.ffmpeg.org/ticket/9408#comment:5> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#9408: WASAPI Audio Input/Output Support -------------------------------------+------------------------------------ Reporter: Brad Isbell | Owner: (none) Type: enhancement | Status: new Priority: wish | Component: avdevice Version: git-master | Resolution: Keywords: | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------ Comment (by Juan Domingo): ヽ༼ຈل͜ຈ༽ノ currently requesting for WASAPI ヽ༼ຈل͜ຈ༽ノ I need it for ... a private project lol -- Ticket URL: <https://trac.ffmpeg.org/ticket/9408#comment:6> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
participants (1)
-
FFmpeg