Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

64-bit Quicktime Question

Does anyone out there know if there is a way to pull raw, still-compressed audio and video samples out of a Quicktime .mov file using an Apple API / Framework targeting the Mac that can be compiled natively in 64-bit (IE: QTKit)? I know this functionality is available in Apple's QuickTime Framework that targets the Mac, but this Framework can only be compiled under 32-bit.

If anyone is familiar with such a Framework and any related sample code, some insight would be much appreciated.

Thanks, Josh

like image 859
Josh Bodinet Avatar asked Mar 09 '10 23:03

Josh Bodinet


2 Answers

The AVFoundation framework released with OSX 10.7 (Lion) can extract raw compressed frames from a movie. This is an ObjC framework with 64-bit support.

See the documentation for the AVAssetReader class.

like image 124
Miguel Avatar answered Sep 28 '22 10:09

Miguel


Have you looked at the Handbrake source yet? It may give you some hints.

It is not an Apple API specifically but the codebase is open source and does compile on OS/X Lion and Tiger. We've been tweaking it to run on native 64-bit windows and OS/X boxes and it does perfectly well reading the .mov files we've thrown at it.

http://handbrake.fr/

like image 40
Lance Cleveland Avatar answered Sep 28 '22 10:09

Lance Cleveland