xcode VideoToolbox.framework 如何工作?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/24081230/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 05:01:25  来源:igfitidea点击:

How Does VideoToolbox.framework work?

iosxcode

提问by PatrickSCLin

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

iOS8 刚刚发布测试版,我对视频直接编码/解码很感兴趣。

Video Toolbox Framework

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

视频工具箱框架

视频工具箱框架(VideoToolbox.framework)包括对硬件视频编码和解码的直接访问。

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

据我所知,它以前是一个私有框架,有些人已经在某些 JB 应用程序中使用它

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

那么有人可以为此分享一个非常简单的教程代码吗?

采纳答案by Matt S.

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

导入框架并查看标题,它们都已记录在案。

Apple also released a sample using VTDecompressionSession

苹果还发布了一个使用 VTDecompressionSession示例

回答by Lukasz Czerwinski

  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 VideoToolboxand CMVideoFormatDescriptionCreateFromH264ParameterSetsand 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

  1. 试试这个链接:https: //github.com/davidliu/VideoTimeLine(我加载的视频好像坏了,但你可以感受一下如何使用它)。

  2. 写入 XCode:import VideoToolboxCMVideoFormatDescriptionCreateFromH264ParameterSetsCmd+单击它以显示文档:)

  3. 看看来自 WWDC 的这个视频:https: //developer.apple.com/videos/wwdc/2014/#513

  4. 查看此代码:https: //github.com/manishganvir/iOS-h264Hw-Toolbox

  5. 查看此代码:https: //github.com/McZonk/VideoToolboxPlus

  6. 您可能还想查看有关如何使用 VideoToolbox 解压缩 H264 的详细说明:How to use VideoToolbox to decompress H.264 video stream

Hope that helps :)

希望有帮助:)