標籤:編譯安裝 視頻 brew include hex 5.0 cti terminal view
使用環境
開發工具
需要的檔案連結
- gas-preprocessor
- yasm
- FFmpeg-iOS-build-script
- ffmpeg-2.8
- kxmovie
編譯適用於iOS平台的FFmpeg靜態庫
編譯靜態庫遇到的問題
yasm沒有安裝的情況
解決方案1
解決方案2
使用Homebrew包管理器,進行安裝
brew install yasm
測試是否安裝成功
yasm --verision
c test failed的情況
使用編譯完成的
FFmpeg靜態庫
使用架構
kxmovie播放視頻
NSString *path = @""; NSMutableDictionary *parameters = [NSMutableDictionary dictionary]; // increase buffering for .wmv, it solves problem with delaying audio frames if ([path.pathExtension isEqualToString:@"wmv"]) parameters[KxMovieParameterMinBufferedDuration] = @(5.0); // disable deinterlacing for iPhone, because it‘s complex operation can cause stuttering if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) parameters[KxMovieParameterDisableDeinterlacing] = @(YES); KxMovieViewController *vc = [KxMovieViewController movieViewControllerWithContentPath:path parameters:parameters]; [self presentViewController:vc animated:YES completion:nil];
執行個體工程:
LOFFmpeg
[iOS]FFmpeg架構在iOS平台上的編譯和使用