请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

使用ffmpeg 录制命令时候invalid input/output device

我输入的命令是: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 试试

0 回复 有任何疑惑可以回复我~
  • 提问者 littlechenxu #1
    非常感谢!
    回复 有任何疑惑可以回复我~ 2019-03-16 12:44:17
提问者 littlechenxu 2019-03-15 15:47:34

查到可以用这个查询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 那里好像没东西,不知道需要安装什么特殊的东西能抓取声音?

0 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信