使用ffmpeg在iPhone上显示视频 [英] using ffmpeg to display video on iPhone

查看:154
本文介绍了使用ffmpeg在iPhone上显示视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这个API

  ret = avRecvFrameData(avIndex,buf,VIDEO_BUF_SIZE,(char *)& frameInfo,sizeof(FRAMEINFO_t),& frmNo); 

缓冲区将填充来自视频线程的内容,编解码器为 H264 frameInfo包含相关信息。如果我想在iPhone上显示,如何使用ffmpeg?



非常感谢您的帮助。

解决方案

您不应该在iOS中使用ffmpeg,原因有很多。首先,真正的许可证问题,当涉及到iOS应用程序时,将ffmpeg包含在合法的灰色区域。其次,表现将非常差。第三,iOS已经包括可以访问设备上的h.264硬件的API。您可以在 AVDecodeEncode 中找到我的示例Xcode项目,这是使用我的库从h.264解码,然后编码回h.264。


anyone can help me on this ?

I have this API

ret = avRecvFrameData(avIndex, buf, VIDEO_BUF_SIZE, (char *)&frameInfo, sizeof(FRAMEINFO_t), &frmNo);

the buffer will fill with the content from the video thread the codec is H264 frameInfo contains the related information. If I want to display on iPhone, how to do it with ffmpeg?

much appreciated with your help .

解决方案

You should not be using ffmpeg in an iOS for a number of reasons. First, there are real license issues that put including ffmpeg in a legal grey area when it comes to iOS apps. Second, performance will be very very poor. Third, iOS already includes APIs that have access to the h.264 hardware on the device. You can find my example Xcode project at AVDecodeEncode, this is an example of using my library to decode from h.264 and then encode back to h.264.

这篇关于使用ffmpeg在iPhone上显示视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆