使用 FFMPEG 库和 iPhone SDK 进行视频编码 [英] Using FFMPEG library with iPhone SDK for video encoding

查看:24
本文介绍了使用 FFMPEG 库和 iPhone SDK 进行视频编码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要将 iPhone 相机拍摄的几张图片编码为一个 mp4 视频文件,我知道 FFMPEG 可以做到这一点(应用程序 TimeLapser 和 ReelMoments 已经做到了).我计划在我的应用 iMotion(可在应用商店中获得)中使用它.

I need to encode several pictures shot by the iPhone camera into a mp4 video file and I know FFMPEG can do this (the application TimeLapser and ReelMoments do it already). I plan to use this in my app iMotion (available in the appstore).

我通过以下链接成功安装并编译了 iphone SDK 的 ffmpeg:http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/2009-October/076618.html

I successfully install and compile the ffmpeg for the iphone SDK with this link: http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/2009-October/076618.html

但现在我被困在我的 XCode 项目中.接下来我应该怎么做才能使用 FFMPEG 库进行视频编码?关于使用外部库的 Apple 文档非常简单,我可以在网上找到任何教程来解释如何执行此操作.

But now I'm stuck here in my XCode project. What should I do next to use the FFMPEG library for video encoding? The Apple documentation about external library using is very light and I just can find any tutorial on the web which explains how to do this.

推荐答案

查看 iFrameExtractor 项目github.虽然这不是您正在寻找的内容,但它具有用于构建 ffmpeg 库的脚本,并且 xcode 项目链接了这些库.

Check out the iFrameExtractor project on github. While this is not exactly what you are looking for, it has scripts for building the ffmpeg libraries and the xcode project links the libraries.

这篇博文中的更多信息:

Some more info in this blog post:

http://www.codza.com/extracting-frames-来自 iPhone 上的电影

这篇关于使用 FFMPEG 库和 iPhone SDK 进行视频编码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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