简体   繁体   English

h264 Licensing,ffmpeg iPhone转码

[英]h264 Licensing, ffmpeg iPhone transcoding

Requirements 要求
1. An application that should run, to begin with, on iPhone, and, in the end on a plurality 1.应该在iPhone上开始运行的应用程序,最后是多个应用程序
of SmartPhone devices. 的SmartPhone设备。
2. Aim at having the trans-coding code supporting as much OSs as possible. 2.旨在使转码代码支持尽可能多的操作系统。
3. Application is commercial. 3.申请是商业的。

Use-case 用例
I. Record video using the portable SmartPhone Camera application I.使用便携式SmartPhone相机应用程序录制视频
II. II。 Trans-code the video into a plurality of bit-rates using a cutom app 使用cutom app将视频转码为多个比特率

iPhone Implementation iPhone实施
A. To satisfy requirement [2], Implement Trans-coding using C++ A.为了满足要求[2],使用C ++实现转码
B. Use ffmpeg for trans-coding. B.使用ffmpeg进行转码。

Problem 问题
- Using ffmpeg to encode H264 req usage of the x264 lib - 使用ffmpeg编码x264 lib的H264 req用法
- H264 encoding mandate payment for Licensing. - H264编码要求支付许可费用。

In order to avoid H264 Licensing 为了避免H264许可
- The iPhone device ( and many others ) come with built-in H264 encoding capability - iPhone设备(以及许多其他设备)具有内置的H264编码功能
- Usage of the built-in H264 Codec will avoid licensing problems/restrictions - 使用内置H264编解码器可避免许可问题/限制


Does ffmpeg, supports, in any way, usage of iPhone's built-in H264 encoder ? ffmpeg,支持,以任何方式使用iPhone的内置H264编码器吗?



Any help will be appreciated. 任何帮助将不胜感激。

The AVFoundation framework provides a mechanism to write H264 encoded video to a file (mp4 or quicktime container format). AVFoundation框架提供了将H264编码视频写入文件(mp4或quicktime容器格式)的机制。 You can attempt to parse the video file and extract the H264 NALs as they're being written. 您可以尝试解析视频文件并在写入时提取H264 NAL。

It's a little bit tricky, but it should be doable. 这有点棘手,但它应该是可行的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM