Skip to content

About

该仓库依赖的FFmpeg版本为2.1, 压制的视频无法在浏览器播放, 请更换为 https://github.com/popor/PoporFFmpegCommand, 该仓库PoporFFmpegCommand使用的3.2版本, 支持网页播放器播放, 支持xcode11的bitcode编码

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

Repository files navigation

PoporFFmpegCompress

CI Status Version License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

PoporFFmpegCompress is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'PoporFFmpegCompress'

因为cocoapod对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);
    }
}];

Author

popor, 908891024@qq.com

License

PoporFFmpegCompress is available under the MIT license. See the LICENSE file for more info.

About

该仓库依赖的FFmpeg版本为2.1, 压制的视频无法在浏览器播放, 请更换为 https://github.com/popor/PoporFFmpegCommand, 该仓库PoporFFmpegCommand使用的3.2版本, 支持网页播放器播放, 支持xcode11的bitcode编码

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages