都是一些比较简单的问题,不定期更新
mp4转ts:
pod 'FFmpegWrapper', '~> 1.0'
FFmpegWrapper *wrapper = [[FFmpegWrapper alloc] init];
[wrapper convertInputPath:inputFilePath outputPath:outputFilePath options:nil progressBlock:^(NSUInteger bytesRead, uint64_t totalBytesRead, uint64_t totalBytesExpectedToRead) {
} completionBlock:^(BOOL success, NSError *error) {
success?NSLog(@"Success...."):NSLog(@"Error : %@",error.localizedDescription);
}];
inputFilePath:mp4文件地址 outputFilePath:输出的ts文件地址
参考:http://stackoverflow.com/questions/25988773/how-to-convert-mp4-file-to-ts-using-ffmpeg-in-ios