Reputation: 1449
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
Reputation: 15482
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).
Write in XCode: import VideoToolbox
and CMVideoFormatDescriptionCreateFromH264ParameterSets
and Cmd+click on it to display documentation :)
Take a look at this video from WWDC: https://developer.apple.com/videos/wwdc/2014/#513
Check out this code: https://github.com/manishganvir/iOS-h264Hw-Toolbox
Check out this code: https://github.com/McZonk/VideoToolboxPlus
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
Reputation: 13773
Import the framework and look at the headers, they're all documented.
Apple also released a sample using VTDecompressionSession
Upvotes: 1