Questions tagged [qtkit]

The QuickTime Kit is an Objective-C framework (QTKit.framework) with an API for manipulating time-based media.

QuickTime Kit (aka QTKit) is a developer framework that is intended to replace previous APIs for Cocoa developers. This framework is for Mac only, and exists as Objective-C abstractions around a subset of the C interface. Mac OS X v10.5 extends QTKit to full 64-bit support. The QTKit allows multiplexing between Quicktime X and Quicktime 7 behind the scenes so that the user need not worry about which version of Quicktime they need to use.

185 questions
24
votes
1 answer

iOS alternative to QTMovieLayer that has non-nil `contents`?

Background QTKit (QuickTime Kit) is a Mac framework from the 10.3 days that got some layer additions in 10.5 like for example QTMovieLayer. One of the nice things with QTMovieLayer is that you can access the movie content using the regular content…
David Rönnqvist
  • 56,267
  • 18
  • 167
  • 205
13
votes
3 answers

What is a 10.6-compatible means of recording video frames to a movie without using the QuickTime API?

I'm updating an application to be 64-bit-compatible, but I'm having a little difficulty with our movie recording code. We have a FireWire camera that feeds YUV frames into our application, which we process and encode out to disk within an MPEG4…
Brad Larson
  • 170,088
  • 45
  • 397
  • 571
11
votes
2 answers

How to capture frames from Apple iSight using Python and PyObjC?

I am trying to capture a single frame from the Apple iSight camera built into a Macbook Pro using Python (version 2.7 or 2.6) and the PyObjC (version 2.2). As a starting point, I used this old StackOverflow question. To verify that it makes…
mrmekon
  • 373
  • 2
  • 9
8
votes
1 answer

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.…
Nick Haddad
  • 8,767
  • 3
  • 34
  • 38
8
votes
3 answers

Cocoa: AVAsset from raw data (i.e. NSData)

I'd like to use AVFoundation to display a video on osx. I would like to initialize the movie from raw data at runtime. According to this document: https://developer.apple.com/library/mac/#technotes/tn2300/_index.html AVAsset is the equivalent of…
moka
  • 4,353
  • 2
  • 37
  • 63
7
votes
1 answer

Why is my QTKit based image encoding application so slow?

in a cocoa application I'm currently coding, I'm getting snapshot images from a Quartz Composer renderer (NSImage objects) and I would like to encode them in a QTMovie in 720*480 size, 25 fps, and H264 codec using the addImage: method. Here is the…
mben
  • 71
  • 2
5
votes
1 answer

QTMovieCurrentSizeAttribute and QTMovieSizeDidChangeNotification replacements

Does anyone know the correct way to replace old QTMovieCurrentSizeAttribute and QTMovieSizeDidChangeNotification tasks? I'm trying to clean out old deprecated code. I've found that QTMovieNaturalSizeDidChangeNotification is not a replacement for…
Brian
  • 101
  • 2
5
votes
1 answer

How can I create a Quicktime movie from a series of generated images?

I need to create a movie from a series of generated images. (I'm creating the images based on the output of a physics modeling program.) I found Apple's sample in QtKitCreateMovie and used that as a starting point. Instead of loading jpgs from the…
SSteve
  • 10,550
  • 5
  • 46
  • 72
5
votes
4 answers

How to make QTMovie play file from URL with forced (MP3) type?

I'm using QTKit to progressively download and play an MP3 from a URL. According to this documentation, this is the code I should use to accomplish that: NSURL *mp3URL = [NSURL URLWithString:@"http://foo.com/bar.mp3"]; NSError *error = nil; QTMovie…
Michael
  • 11,612
  • 10
  • 41
  • 43
5
votes
1 answer

QTCaptureSession does not receive any data from camera

I have two USB cameras. One is a low-cost WebCam, the other is a low-cost USB microscope; both bought from eBay. The microscope is actually just another WebCam. I want to use the USB microscope with Mac OS X 10.5 and QTKit. MyRecorder works fine…
user1985657
5
votes
2 answers

How can I obtain raw data from a CVImageBuffer object

I'm trying to use cocoa to grab images from a webcam. I'm able to get the image in RGBA format using the QTKit and the didOutputVideoFrame delegate call, and converting the CVImageBuffer to a CIImage and then to a NSBitmapImageRep. I know my camera…
jslap
  • 711
  • 1
  • 6
  • 21
5
votes
1 answer

AVKit in OSX 10.8

We're developing an OSX app that have to be supported by OSX 10.7 to 10.9. We're currently using QTKit and QTMovieView to show videos, but when trying to upload a new version recently we got this error message: Deprecated API usage. Apple no longer…
Sunkas
  • 9,542
  • 6
  • 62
  • 102
5
votes
2 answers

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…
Josh Matthews
  • 12,816
  • 7
  • 36
  • 39
5
votes
2 answers

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 =…
Martin Blech
  • 13,135
  • 6
  • 31
  • 35
4
votes
1 answer

How to draw a NSCIImageRep to an NSView

I am having trouble at drawing a NSCIImageRep which I obtain via a QTKit mCaptureDecompressedVideoOutput. As I do not want to draw the image using OpenGL, I attempted to subclass a NSView and draw the image there: - (void)…
Koffiman
  • 996
  • 1
  • 8
  • 18
1
2 3
12 13