TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Oct 2015 |
Maintained by Bogdan Stasjuk.
Depends on: | |
BSMacros | >= 0 |
BSAudioFileHelper | >= 0 |
NSFileManager+Helper | >= 0 |
Class for exporting and converting media files. It was tested for M4A input and MPEG4AAC or LinearPCM output. Also LinearPCM output can be converted to MP3 if you'll add LAME.framework to your project.
@property (copy, nonatomic) void (^success)(NSURL *exportedURL);
@property (copy, nonatomic) void (^failure)(NSError *error);
@property (assign, readonly, nonatomic) CGFloat progress;
+ (NSURL *)outputURLForAVFileType:(NSString *)avFileType error:(NSError *)error;
- (void)exportAsset:(AVAsset *)asset toAudioFormat:(AudioFormatID)audioFormatID;
- (void)exportAssetToMP3:(AVAsset *)asset;
pod 'BSMacros'
pod 'BSAudioFileHelper'
pod 'NSFileManager+Helper'
This class has been tested back to iOS 7.0.
Cocoapods: pod 'BSMediaExporter'
Manual: Copy the BSMediaExporter folder in your project
Import header in your project.
#import "BSMediaExporter.h"
This code is released under the MIT License. See the LICENSE file for details.