首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >从我的IKPictureTaker应用程序获得奇怪的视频警告

从我的IKPictureTaker应用程序获得奇怪的视频警告
EN

Stack Overflow用户
提问于 2009-11-11 03:28:47
回答 1查看 437关注 0票数 0

我有一个简单的小osx应用程序,只需启动一个IKPictureTaker,然后将生成的图片保存为.tiff文件。这一切似乎都很好,但每次我拍摄照片时,我都会反复收到这个错误:

代码语言:javascript
复制
2009-11-10 12:25:38.890 Take A Picture[855:9c23] *** QTCaptureSession warning: Session received the following error while decompressing video: Error Domain=NSOSStatusErrorDomain Code=-67441 "Operation could not be completed. (OSStatus error -67441.)". Make sure that the formats of all video outputs are properly configured.

代码非常简单:

代码语言:javascript
复制
- (void)awakeFromNib
{


IKPictureTaker *sharedPictureTaker = [IKPictureTaker pictureTaker];

[sharedPictureTaker setValue:[NSNumber numberWithBool:YES] forKey:IKPictureTakerShowEffectsKey];

[sharedPictureTaker beginPictureTakerWithDelegate:self didEndSelector:@selector(pictureTakerDidEnd:returnCode:contextInfo:) contextInfo:nil];
}


- (void) pictureTakerDidEnd:(IKPictureTaker *) picker
             returnCode:(NSInteger) code
            contextInfo:(void*) contextInfo
{

NSImage *image = [picker outputImage];
NSString *folder = @"/Users/Mike/Library/Application Support/file.tiff";
folder = [folder stringByExpandingTildeInPath];
[[image TIFFRepresentation] writeToFile:@"~/Library/Application Support/file2.tiff" atomically:NO];
}
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2009-11-11 06:26:22

听起来你的机器可能有一些配置问题。你能在另一个上测试它吗?你的应用程序中还发生了什么吗?如果你选择不同类型的图像文件,或者只在捕获时,你会得到同样的结果吗?

您的字符串在编写方法中有点混淆,但除此之外,代码在其他原始应用程序中工作得很好。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/1710551

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档