PatrickSCLin
PatrickSCLin

Reputation: 1449

How Does VideoToolbox.framework work?

iOS8 just released beta version, I'm very interested in Video directly Encoding / Decoding.

Video Toolbox Framework

The Video Toolbox framework (VideoToolbox.framework) includes direct access to hardware video encoding and decoding.

but I can not find any tutorial documents for this right now

as I know it's a private framework before, and some people already using it in some JB apps

so does anyone can share a very simple tutorial code for this ?

Upvotes: 3

Views: 11316

Answers (2)

Lukasz Czerwinski
Lukasz Czerwinski

Reputation: 15482

  1. Try this link: https://github.com/davidliu/VideoTimeLine (the video which I loaded seems to be broken, but you can get a feel how to use it).

  2. Write in XCode: import VideoToolbox and CMVideoFormatDescriptionCreateFromH264ParameterSets and Cmd+click on it to display documentation :)

  3. Take a look at this video from WWDC: https://developer.apple.com/videos/wwdc/2014/#513

  4. Check out this code: https://github.com/manishganvir/iOS-h264Hw-Toolbox

  5. Check out this code: https://github.com/McZonk/VideoToolboxPlus

  6. You might also want to see a detailed description on how to decompress H264 using VideoToolbox: How to use VideoToolbox to decompress H.264 video stream

Hope that helps :)

Upvotes: 15

Matt S.
Matt S.

Reputation: 13773

Import the framework and look at the headers, they're all documented.

Apple also released a sample using VTDecompressionSession

Upvotes: 1

Related Questions