请稍等 ...
×

采纳答案成功!

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

在avformat_open_input()处报错

xcode打印如下

2023-08-14 23:46:32.691423+0800 myapp[13092:5032347] Metal API Validation Enabled
2023-08-14 23:47:16.478459+0800 myapp[13092:5032347] [plugin] AddInstanceForFactory: No factory registered for id <CFUUID 0x60000025e100> F8BB1C28-BAE8-11D6-9C31-00039315CD46
2023-08-14 23:47:16.571563+0800 myapp[13092:5032347] HALC_ShellDriverPlugIn::Open: Can’t get a pointer to the Open routine
2023-08-14 23:47:16.657498+0800 myapp[13092:5032347] [] CMIO_DAL_PlugInManagement.cpp:191:Initialize Missing device-camera entitlement
[AVFoundation indev @ 0x102409a40] Invalid audio device index

其中,用ffmpeg -f avfoundation -list_devices true -i ““打印可用的设备中,内建麦克风是1,devicename=”:1”

$ ffmpeg -f avfoundation -list_devices true -i ""
ffmpeg version 6.0 Copyright © 2000-2023 the FFmpeg developers
built with Apple clang version 12.0.0 (clang-1200.0.32.29)
configuration: --prefix=/usr/local/ffmpeg --enable-debug=3 --enable-shared --disable-static
libavutil 58. 2.100 / 58. 2.100
libavcodec 60. 3.100 / 60. 3.100
libavformat 60. 3.100 / 60. 3.100
libavdevice 60. 1.100 / 60. 1.100
libavfilter 9. 3.100 / 9. 3.100
libswscale 7. 1.100 / 7. 1.100
libswresample 4. 10.100 / 4. 10.100
[AVFoundation indev @ 0x7f9a8d40d2c0] AVFoundation video devices:
[AVFoundation indev @ 0x7f9a8d40d2c0] [0] FaceTime HD Camera
[AVFoundation indev @ 0x7f9a8d40d2c0] [1] Capture screen 0
[AVFoundation indev @ 0x7f9a8d40d2c0] AVFoundation audio devices:
[AVFoundation indev @ 0x7f9a8d40d2c0] [0] ZoomAudioDevice
[AVFoundation indev @ 0x7f9a8d40d2c0] [1] Built-in Microphone
[AVFoundation indev @ 0x7f9a8d40d2c0] [2] WeMeet Audio Device
: Input/output error

正在回答 回答被采纳积分+3

1回答

李超 2023-08-15 00:02:06

到课程的git 上下载我上传的工程,试试是否是ok 的

0 回复 有任何疑惑可以回复我~
  • 我下载后打开工程,编译。报错
    
    Showing All Messages
    The operation couldn’t be completed. Unable to log in with account 'xxxxx@qq.com'. The login details for account 'xxxxx@qq.com' were rejected.
    
    No signing certificate "Mac Development" found: No "Mac Development" signing certificate matching team ID "DKJK2UTR58" with a private key was found.
    回复 有任何疑惑可以回复我~ 2023-08-15 23:56:46
  • 李超 回复 提问者 weixin_慕斯卡8568554 #2
    把这书换成你自己的
    回复 有任何疑惑可以回复我~ 2023-08-16 07:07:05
  • 提问者 weixin_慕斯卡8568554 回复 李超 #3
    请问这个要怎么更换,抱歉原来没有接触过这块
    回复 有任何疑惑可以回复我~ 2023-08-16 21:39:03

相似问题

登录后可查看更多问答,登录/注册

问题已解决,确定采纳
还有疑问,暂不采纳
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号