是mac笔记本,但是以前装过旧版本的xcode和commandlinetools,不知道和xcode环境是否有关。现在升级到最新版本xcode了,ffmpeg -devices命令有avfoundation输出,-list_devices还是找不到,输出如下。xcode目前版本14.0.1。
sam@B-523XMD6P-1948 ~ $ ffmpeg -devices
ffmpeg version N-108539-g451b310d4f Copyright (c) 2000-2022 the FFmpeg developers
built with Apple clang version 14.0.0 (clang-1400.0.29.102)
configuration: --prefix=/usr/local/ffmpeg --enable-debug=3 --disable-static --enable-shared
libavutil 57. 39.100 / 57. 39.100
libavcodec 59. 50.100 / 59. 50.100
libavformat 59. 34.100 / 59. 34.100
libavdevice 59. 8.101 / 59. 8.101
libavfilter 8. 49.101 / 8. 49.101
libswscale 6. 8.112 / 6. 8.112
libswresample 4. 9.100 / 4. 9.100
Devices:
D. = Demuxing supported
.E = Muxing supported
--
E audiotoolbox AudioToolbox output device
D avfoundation AVFoundation input device
D lavfi Libavfilter virtual input device
E sdl,sdl2 SDL2 output device
D x11grab X11 screen capture, using XCB