使用ffmpeg 录制命令时候invalid input/output device
来源:2-3 FFmpeg基本信息查询命令实战

littlechenxu
2019-03-15
我输入的命令是:ffmpeg -f avfoundation -i 1 -r 30 out.yuv
然后报错
[AVFoundation input device @ 0x7ffb59500500] Invalid device index
1: Input/output error
查询ffmpeg -devices 之后结果是
Devices:
D. = Demuxing supported
.E = Muxing supported
D avfoundation AVFoundation input device
D lavfi Libavfilter virtual input device
E sdl,sdl2 SDL2 output device
问下老师这是什么原因?
2回答
-
插上耳机和mic 试试
012019-03-16 -
littlechenxu
提问者
2019-03-15
查到可以用这个查询device index
ffmpeg -f avfoundation -list_devices true -i ""
[AVFoundation input device @ 0x7fc4f4d06a00] AVFoundation video devices:
[AVFoundation input device @ 0x7fc4f4d06a00] [0] Capture screen 0
[AVFoundation input device @ 0x7fc4f4d06a00] AVFoundation audio devices:
老师我现在用的是mac mini就是那个盒子机,然后那个audio device 那里好像没东西,不知道需要安装什么特殊的东西能抓取声音?
00
相似问题