Use environment
Development tools
Required file Links
- Gas-preprocessor
- Yasm
- Ffmpeg-ios-build-script
- ffmpeg-2.8
- Kxmovie
Compiling the FFmpeg static library for iOS platforms
Issues encountered in compiling static libraries
Using the compile-completed
FFmpeg
Static Library
Once the compilation is successful, you can bring the Ffmpeg-ios folder (including include and Lib) into Xcode
Join the Dependent library Libz.lib
Join the Dependent library Libbz2.lib
Join the Dependent library Libiconv.lib
If there is a compilation error, the link file does not exist
修改Build Setting Header Search Paths = $(SRCROOT)/LOFFmpegSample/FFmpeg-iOS/include
Working with Frames
kxmovie
Play Video
NSString *path = @""; Nsmutabledictionary *Parameters = [Nsmutabledictionarydictionary]; //increase buffering for. wmv, it solves problem with delaying audio frames if ([Path.pathextension Isequaltos tring:@"wmv"]) parameters[kxmovieparameterminbufferedduration] = @ (5.0); //Disable deinterlacing for IPhone, because it ' s complex operation can cause stuttering if (Ui_user_interface_idi OM () = = Uiuserinterfaceidiomphone) parameters[kxmovieparameterdisabledeinterlacing] = @ (YES); Kxmovieviewcontroller *VC = [Kxmovieviewcontroller movieviewcontrollerwithcontentpath:path parameters: Parameters]; [Self PRESENTVIEWCONTROLLER:VC animated:YES Completion:nil];
Example Project:
Loffmpeg
Compilation and use of the IOS]FFMPEG framework on the IOS platform