qtkit

Setting movie metadata with QTKit

I'm trying to convert old QuickTime framework code to the 64-bit Cocoa-based QTKit on OS X, which means that I can't drop down to the straight C function calls at any time. Specifically, I'm trying to find a way to write QuickTime VR movies with QTKit, as they require some special metadata to set the display controller. How can I do th...

Setting QTMovie attributes

I'm trying to create a QTVR movie via QTKit, and I've got all the frames in the movie. However, setting the attributes necessary doesn't seem to be having any effect. For example: NSNumber *val = [NSNumber numberWithBool:YES]; [fMovie setAttribute:val forKey:QTMovieIsInteractiveAttribute]; val = [NSNumber numberWithBool:NO]; [fMovie ...

How to tell when a QTMovie starts playing?

So QTMovies have QTMovieDidEndNotification, but no QTMovieDidStartNotification. How can I be notified when a QTMovie starts playing? ...

Cocoa QTKit and recording movies

I'm new with the whole QTKit and I was looking for some feedback on the following code that I am attempting to use to display the camera's image and record movies. - (void)initializeMovie { NSLog(@"Hi!"); QTCaptureSession* mainSession = [[QTCaptureSession alloc] init]; QTCaptureDevice* deviceVideo = [QTCaptureDevice defaultInputDevi...

QTKit, opening input devices???

I'm trying to add two inputs to a QTCaptureSession in the following: mainSession = [[QTCaptureSession alloc] init]; BOOL success; NSError* error; QTCaptureDevice *videoDevice = [QTCaptureDevice defaultInputDeviceWithMediaType:@"QTMediaTypeVideo"]; success = [videoDevice open:&error]; QTCaptureDevice *audioDevice = [QTCaptureDevice de...

QTKit PAL Mode

I used MyRecorder sample by QTKit, it records everything but I have a problem that my camera is PAL and the resolution of H264 encoding for PAL and NTSC are different. PAL is 724x568 and NTSC is 724x480. When I choose QT Profile for H264High, it by default takes only 724x480 NTSC resolution output file but my camera is 724x568 so the fi...

Java video capture on Mac OS X (USB/Firewire)

Looking for resources and information regarding capturing video from an external webcam on Mac OS X using Java. QTKit seems to only offer this functionality in native code. Any information would be appreciated. ...

kMovieLoadStatePlayable undelcared (first use in this function) error with QuickTime or QTKit framework

I have the following code: (void)loadStateChanged:(NSNotification*)notification { if ([[movie attributeForKey:QTMovieLoadStateAttribute] longValue] >= kMovieLoadStatePlayable) { [[NSNotificationCenter defaultCenter] removeObserver:self]; long movieScale = [[movie attributeForKey:QTMovieTimeScaleAttribute] longValu...

How to create custom movie controller for a qtmovieview, similar to Final Cut?

Hi, I'm using Cocoa and the QTMovieView to show a movie. I'd like to be able to show a custom movie controller below the movie, so the user can set markers and an in and out point. Basically the same behavior as Final Cut Pro. I'm fairly new to Interface Builder, but from the looks of it this is not easy. Can someone tell me how to do...

Providing data as needed for QTMovie

I understand that if I wanted to provide a QTMovie with data from an arbitrary source as it is needed I probably have to deal with the QTDataReference class, but unfortunately my experience with anything similar is limited to an audio data callback with Audio Buffers on the iPhone. If I initialized the QTDataReference with some NSMutabl...

Which video file formats can QTKit play?

Is there an overview of file formats which QTKit understands? ...

How can I capture iSight frames with Python in Snow Leopard?

I have the following PyObjC script: from Foundation import NSObject import QTKit error = None capture_session = QTKit.QTCaptureSession.alloc().init() print 'capture_session', capture_session device = QTKit.QTCaptureDevice.defaultInputDeviceWithMediaType_(QTKit.QTMediaTypeVideo) print 'device', device, type(device) success = device.open_...

Objective c library with c interface

Hi everyone, I have run into a problem... I'm trying to use QTKit in an application that we have at work. The only problem with that is the app is written in C++, not Obj-C. I have looked through Apple's documentation for answers, but I haven't found anything useful. Basically what I'm looking to do is write a single controller class i...

Is it possible to create a QTTimeRange from two frame numbers?

All QTKit examples use seconds for making ranges. I, unfortunately, have frame numbers and need to be frame accurate. I suppose I could multiply up by the frame rate if I could figure out how to get that out of my movie. ...

Discovering "Stop Points" in an Interactive Quicktime Movie

Keynote lets you export a Quicktime movie that is interactive... it will automatically pause after each transition and you can click anywhere on the movie (if you're running in quicktime) to make it continue to the next slide. Does anyone know where I could learn more about this type of quicktime file? Can the QTKit library (or any oth...

play a movie in cocoa application

hi i want to know how to play a movie in Cocoa application ...

Quicktime Framework and opening Transport Streams

I have noticed that Quicktime 10 is now able to open Transport Stream Video files and also search reliably within that video file(Which is something that VLC can not seem to handle). Quicktime 7, on the other hand, is not able to open the same Video File. When I try to open that same Video File within my Cocoa Application, which is usi...

How can I get image data from QTKit without color or gamma correction in Snow Leopard?

Since Snow Leopard, QTKit is now returning color corrected image data from functions like QTMovies frameImageAtTime:withAttributes:error:. Given an uncompressed AVI file, the same image data is displayed with larger pixel values in Snow Leopard vs. Leopard. Currently I'm using frameImageAtTime to get an NSImage, then ask for the tiffR...

Audio stream and QTKit error

I'm trying to stream audio from the web with QTKit. I used this code: movie = [[QTMovie alloc] initWithURL:[NSURL URLWithString:@"http://vipicecast.yacast.net:80/vra_webradio07"] error:&error]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(movieStateDidChange:) ...

QTMovie pauses on minimize?

I'm trying to create a video player that plays in the dock when minimized. I'm grabbing the current frame from the QTMovie and intermittently setting it as the minimized icon, but when the window minimizes, the movie (or associated QTMovieView) pauses. How can I prevent this behavior? ...