FFmpegWrapper 1.0

FFmpegWrapper 1.0

测试已测试
Lang语言 Obj-CObjective C
许可证 定制
发布最新发布2014年12月

Chris BallingerChris Ballinger维护。



  • 作者
  • Chris Ballinger

FFmpegWrapper是一个轻量级的Objective-C包装器,用于某些FFmpeg libav函数。

安装

注意:此项目包含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