有没有一种方法可以将ffplay的音频输出设备手动设置为macOS(coreaudio)中默认音频设备以外的任何其他设备?据说ffmpeg使用SDL库来播放音频。因此,根据SDL的envvars文档,我正在设置:
export SDL_AUDIODRIVER=coreaudio
export AUDIODEV="PX7 Bowers & Wilkins"
我也尝试过使用macOS的内部音频设备ID(例如96)。没有效果。
为了完整起见,以下是我从ffmpeg获得的设备列表:
Devices:
D. = Demuxing supported
.E = Muxing supported
--
D avfoundation AVFoundation input device
D lavfi Libavfilter virtual input device
E sdl,sdl2 SDL2 output device