qtkit

Vibrations when exploding/repacking movie

Please bear with me, I know that what I'm doing can sound strange, but I can guarantee there's a very good reason for that. I took a movie with my camera, as avi. I imported the movie into iMovie and then exploded the single frames as PNG. Then I repacked these frames into mov using the following code movie, error = QTMovie.alloc().ini...

How can I obtain raw data from a CVImageBuffer object.

Hi, 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 grabs natively in YUV, what I want is to get the YUV data directly from the CVImageBu...

QTMovieView not in pallet

I am trying to follow the QTKit tutorial. I add and include the QTKit framework and .h file. I create the QTMovie property. Then in IB I am supposed to drag out the QTMovieView from the library but it isn't there. If I go to the Classes tab, I can find it. However, when I drag it out, it doesn't have the attributes to set like movie sour...

using QTkit for recording audio

It looks like using core audio to record audio is overly complicated. While QTkit is basic and down to earth However. All of the examples I have see integrate video and audio together. Does some one have or know an example of using QTkit for recording audio? rw ...

How to grab video from NSView (WebView)

I need to grab video via QTCapture from NSView (actually WebView) but I don't know how. Can anyone help me? ...

Get bitrate of video stream with Cocoa.

Hi, I'm trying to get the bitrate of a video stream with Cocoa. Not the bitrate of the overall file but just the stream. I've looked at QTKit's documentation but I couldn't find anything to do this.. ...

Record Sound in Cocoa Example Please!

Hi, I've been scouring both this site and the net in general for an example cocoa app that uses QTKit or Audio Queue and actually works. Unfortunately, I can't find anything that fits the above description. All I want to do is get a simple audio recording app so I can learn how it works! Please, I have put alot of time into this alre...

Combine and convert MP3 files using QTKit

Hi - I'm trying to combine two .mp3s into a single .wav file using QTKit. It seems to be working, but the last few seconds of the second file are getting truncated. Any ideas? - (IBAction)combineSelectedFilesAndOutputAsWAV { QTMovie *movie = [QTMovie movieWithFile:fileOne error:NULL]; [movie setAttribute:[NSNumber numberWithBoo...

QTKit Streaming Source

Hi, I have a QTCaptureSession with one QTCaptureConnection using h.264 for compression. I want to stream the video over UDP with very low latency, but I'm having trouble understanding the QTKit framework. As far as I can see I have two choices for output: 1) Subclass QTCaptureOutput and send the data that would go to the file out on a...

Does QTMovie handle URL redirects?

I was just wondering if the QTMovie class does handle URL redirects, because I'm streaming audio files with it and the stream URLs can contain redirects. Sometimes the movie won't start playing but doesn't throw an error (i always operate on the main thread, i know this class is not thread safe). Any ideas why QTMovie might not start pl...

Capture MacBook Pro iSight video with C++

Hi guys, i'd like to grab a frame from my MacBook Pro iSight in C++ and do some elaborations on it. I already know how to do that in ObjC with QTKit, but is there any way to do the same thing in C++? NOTE: I tried to install OpenCV with macports, but the framework doesn't seem to support iSight cameras. Thanks ...

How do I view the progress for converting a Movie with QTKit?

How do I view the progress for converting a Movie with the following QTKit code? NSDictionary *dict = [NSDictionary dictionaryWithObjectsAndKeys: [NSNumber numberWithBool:YES], QTMovieExport, [NSNumber numberWithLong:kQTFileType3GPP], QTMovieExportType, nil]; [[movieView movie] writeToFile:@"/tmp/sample.3gp" ...

Playing a stream of video data using QTKit on Mac OS X

I've been playing with QTKit for a couple of days and I'm successfully able to record video data to a file from the camera using a QTCaptureSession and QTCaptureDeviceInput etc. However what I want to do is send the data to another location, either over the network or to a different object within the same app (it doesn't matter) and the...

Extracting an image from H.264 sample data (Objective-C / Mac OS X)

Given a sample buffer of H.264, is there a way to extract the frame it represents as an image? I'm using QTKit to capture video from a camera and using a QTCaptureMovieFileOutput as the output object. I want something similar to the CVImageBufferRef that is passed as a parameter to the QTCaptureVideoPreviewOutput delegate method. For s...

Converting CVImageBufferRef to PNG

Hi, I want to write all frames to disk using QTKit.framework for camera input. But all the images I get are half transparent and without some colors, maybe colorspace problem? ;( They seem good in the preview View but when I write them "something" happens. I wonder what it that. -(void)savePNGImage:(CGImageRef)imageRef path:(NSString *)...

Quicktime QTKit takes a lot of CPU power. Is there any flag or solution to make it realtime capable?

I use QTKit with a QTCaptureMovieFileOutput to capture my iSight Cam. Below you see a short excerpt of the code, which sets the compression options: while ((connection = [connectionEnumerator nextObject])) { NSString *mediaType = [connection mediaType]; QTCompressionOptions *compressionOptions = nil; if ([mediaTy...

How to add a socket as QTCaptureOutputs for a QTCaptureSession

I'm reading Apple's documentation on using QTKit to capture streaming audio and video from input sources. I read that the central class QTCaptureSession handles the input and sends it to every possible output (QTCaptureOutput). The documentation lists six subclasses of QTCaptureOutput (e.g., QTCaptureMovieFileOutput). I would like to cr...

Trying to understand QTCompressionOptionsWindowTest

Hi, I'm trying to build an application that uses QTKit, with some compress options. I saw this example in the apple developer page QTCompressionOptionsWindow that uses a Window for that purpose. in MyController.m line 65 there is a comment: // ******** Compression Options Window ***** // create our window with the media type and se...