美文网首页iOS 开发
一些iOS相关问题简单记录

一些iOS相关问题简单记录

作者: 大头青年 | 来源:发表于2016-07-25 14:43 被阅读83次

都是一些比较简单的问题,不定期更新

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

相关文章

网友评论

    本文标题:一些iOS相关问题简单记录

    本文链接:https://www.haomeiwen.com/subject/wewgjttx.html