2009-11-10 4 views
0

나는 IKPictureTaker를 시작한 다음 간단한 그림을 .tiff 파일로 저장하는 간단한 작은 osx 응용 프로그램을 가지고 있습니다. 모든 것이 잘 작동하는 것 같다하지만 매번 나는 반복적으로이 오류가 사진을 촬영 :내 IKPictureTaker 응용 프로그램에서 이상한 비디오 경고 받기

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. 

코드는 매우 간단하다 : 컴퓨터 일부 구성 문제가있을 수 있습니다처럼

- (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]; 
} 

답변

1

는 소리. 다른 테스트를 할 수 있습니까? 앱에 다른 것이 있습니까? 다른 종류의 이미지 파일을 선택하거나 캡처 할 때만 똑같은 것을 얻을 수 있습니까?

문자열이 글쓰기 방식에서 약간 섞여 있지만 처녀가 아닌 앱에서는 코드가 제게 잘 작동합니다.

+0

하나의 컴퓨터에 액세스 할 수있게되면 다른 컴퓨터에서 테스트 해 보겠습니다. 이것은 전체 응용 프로그램입니다. 캡처 할 때만 이러한 메시지가 나타납니다. 이 코드를 올바르게 실행하면 디버거 콘솔이 열렸습니까? – Mike2012

+0

나는 처음부터 다시 시작했고, 모든 단계를 다시 수행했다. (처음으로 설정하려고 할 때 불필요한 단계를 거치지 않고) 이제는 제대로 작동한다. 내 코드를 실행할 시간을내어 주셔서 감사합니다. – Mike2012

관련 문제