测试已测试 | ✗ |
Lang语言 | Obj-CObjective C |
许可证 | 定制 |
发布最新发布 | 2014年12月 |
由Chris Ballinger、Chris Ballinger维护。
FFmpegWrapper是一个轻量级的Objective-C包装器,用于某些FFmpeg libav函数。
注意:此项目包含
将其作为git子模块添加到您的项目中。
$ git submodule add Submodules/FFmpegWrapper https://github.com/OpenWatch/FFmpegWrapper.git
将FFmpegWrapper.xcodeproj
拖放到项目文件中。
FFmpegWrapper
添加到目标的Target Dependencies中。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