PoporFFmpegCompress 0.0.02

PoporFFmpegCompress 0.0.02

popor 维护。



  • popor

PoporFFmpegCompress

CI Status Version License Platform

示例

要运行示例项目,请克隆仓库,然后首先从 Example 目录运行 pod install

要求

安装

PoporFFmpegCompress 通过 CocoaPods 提供。要安装它,只需将以下行添加到您的 Podfile 中

pod 'PoporFFmpegCompress'

由于 CocoaPods 对 C++ 的依赖不完善,因此已将 FFmpeg 做了静态包处理,静态包仓库位于 PoporFFmpeg  ,原始文件位于 PoporFFmpegLib  ,原始的 FFmpeg pod 仓库位于 FFMpegCompress

放弃对Mac的支持,文件太大,请选择使用FFmpeg官网的dmg文件,它应该比这个小很多,同时您还可以使用最新版本。

放弃对iPhone32CPU,iPhone5的支持,文件太大,GitHub不支持超过100MB文件。

使用方法
#import <PoporFFmpegCompress/PoporFFmpegCompress.h>

@property (nonatomic, strong) PoporFFmpegCompress * ffmpegCmd;

NSString *videoPath;
NSString *resultPath;

if (!self.fCompress) {
    self.fCompress = [PoporFFmpegCompress new];
}
[self.fCompress compressVideoUrl:videoUrlPath size:size tPath:tPath finish:^(BOOL      finished, NSString *info) {
    if (finished) {
        NSLog(@"PoporFFmpeg finish");
    }else{
        NSLog(@"PoporFFmpeg error: %@", info);
    }
}];

作者

popor,[email protected]

许可证

PoporFFmpegCompress在MIT许可证下可用。更多信息请查看LICENSE文件。