macos - Mac OS X 10.8 上的 AVCaptureScreen

标签 macos avfoundation screen-capture

我一直在尝试在 Mountain Lion 10.8 上使用 AVCaptureScreenInput 类:

https://developer.apple.com/library/mac/#documentation/AVFoundation/Reference/AVCaptureScreenInput_Class/Reference/Reference.html

我下载了Apple提供的以下示例代码:

http://developer.apple.com/library/mac/#samplecode/AVScreenShack/Introduction/Intro.html

但是当我运行它时,它没有捕获我的屏幕。相反,它只是在我的屏幕应该在的地方显示了一个绿屏。

其他人注意到了这里的问题:http://openradar.appspot.com/12220970

有人知道如何解决这个问题吗?

最佳答案

执行以下操作“修复”了该问题。我不知道为什么:

默认写入 com.apple.cmio CMIO_Unit_Input_ASC.DoNotUseOpenCL -bool YES

我在这里提交了一个错误:https://bugreport.apple.com/cgi-bin/WebObjects/RadarWeb.woa/41/wo/Dtr5y1Zj8ikA0Rjw6xYON0/6.83.28.0.9

错误 ID = 13917881

关于macos - Mac OS X 10.8 上的 AVCaptureScreen,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16453929/

相关文章:

avfoundation - AVAssetWriter 无法使用 AVVideoProfileLevelKey 对视频进行编码

image-processing - 无法让 AVFoundation 使用 AVCaptureSessionPresetPhoto 分辨率

iphone - AVFoundation 相机预览屏幕给出错误的缩放

ios - 截图时相机 Controller 不工作

Android NDK 位置在 MAC 的首选项中无效

python - 将命令行输出写入文件

linux - Linux 上的屏幕截图

phantomjs - phantomjs中奇怪的页面宽度

c - 我应该如何编译这个C代码?

java - 如何在MAC中使用Libre Office打开文档?