FFmpegWrapper 更新至 1.2

FFmpegWrapper 更新至 1.2

测试已测试
Lang语言 Obj-CObjective C
许可证 自定义
Released最新发布2015年11月

Arlem 维护。



  • Chris Ballinger

FFmpegWrapper

FFmpegWrapper 是一些 FFmpeg libav 函数的轻量级 Objective-C 包装器。

安装

注意:此项目包含作为子模块的 FFmpeg-iOS,您需要单独构建。

  1. 将此作为 git 子模块添加到您的项目中。

    $ git submodule add Submodules/FFmpegWrapper https://github.com/OpenWatch/FFmpegWrapper.git
    
  2. FFmpegWrapper.xcodeproj 拖入您的项目文件中。

  3. 在构建阶段将 FFmpegWrapper 添加到您的目标的 Target Dependencies。
  4. 在构建阶段将 libFFmpegWrapper.a 添加到您的目标的 Link Binary with Libraries。

用法

FFmpegWrapper.h 包含最新的文档,因此建议首先检查那里,因为此文档可能会由于快速开发而过时。

使用在 options 字典中指定的参数将位于 inputPath 的文件转换为位于 outputPath 的新文件。这两个可选回调用于监视排队任务的进度和完成,并且总是在主线程上调用。目前所有对此函数的调用都排队在同步的内部分发队列中。

- (void) convertInputPath:(NSString*)inputPath outputPath:(NSString*)outputPath options:(NSDictionary*)options progressBlock:(FFmpegWrapperProgressBlock)progressBlock completionBlock:(FFmpegWrapperCompletionBlock)completionBlock;

许可证

与 FFmpeg 本身一样,此库为 LGPL 2.1+

FFmpegWrapper

Created by Christopher Ballinger on 9/14/13.
Copyright (c) 2013 OpenWatch, Inc. All rights reserved.

FFmpegWrapper is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

FFmpegWrapper is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with FFmpegWrapper; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA