Introduction to the
| The library | Introduction to the | Required capacity | The website links |
|---|---|---|---|
| FFmpeg | FFmpegIs a set of open source computer programs that can record, convert, and stream digital audio and video. usingLGPLorGPLLicense. It provides a complete solution for recording, converting and streaming audio and video. It contains very advanced audio/video codec librarieslibavcodecIn order to ensure high portability and codec quality,libavcodecIn a lot ofcodecIt was all developed from scratch. |
Understand the principle and process of video codec, image compression technology and audio compression technology | ffmpeg.org |
| Live555 | Live555It supports streaming, receiving and processing of audio and video data in various audio and video encoding formats, includingMPEG, H.263+, DV, JPEGVideo and various audio encoding. And because of good design,Live555It is very easy to extend support for other formats. |
Understand the principle and process of video codec, image compression technology and audio compression technology | www.live555.com |
| MobileVLCKit | Excellent packaging, the core part of the source code, is packaged into a separate library, based onFFmpeg.Live555Provide complete media playback library, you just need to customize your own interface supportCocoaPodsImport the library and develop a simple interface player that covers almost all media formats with just a few lines of code! |
You just customize your interface and its API looks like a player | www.videolan.org |
# # # #
1. Download the required files from VLC: VLC for iOS X.X.X source code, MediaLibraryKit X.X.X source code, MobileVLCKit x.x.x-pre2 source code. -vlc for iOS X.X.X source code: VLC source code, OSX platform – MediaLibraryKit X.X.X source code: Vlc-mobilevlckit x.x.x-pre2 Source code: VLC, iOS platform 2. Download the source code
compile
Methods a
PS: Because of the network problem here, I cannot follow the script when executinggoogleDownload the library, causing it to fail to continue, so the operation after executing the script is temporarily uncertain.
- Decompress the source code downloaded in Step 2 and go to the directory.
- Compiling the emulator version (takes longer) :
sh compileVLCforiOS.sh -s - Compiling the real version (takes longer) :
sh compileVLCforiOS.sh - Er…
Way 2
PS: This is the easy way, and it’s the way I use it.
The iOS side
- Terminal execution:
git clone http://code.videolan.org/videolan/VLCKit.git - Compile (takes longer) :
buildMobileVLCKit.sh
OSX end
- Terminal execution:
git clone http://code.videolan.org/videolan/VLCKit.git - Open the
VLCKit.xcodeproj.Note that notMobileVLCKit.xcodeproj
- The selected
Build EverythingCompile the project.
- The above is according to the official Wiki Guide
Method 3: Install using Cocoapods
PS: er… Probably the easiest way… And after execution is complete, you can go to/YourProject/Pods/MobileVLCKit/MobileVLCKit-binary/Obtain from directoryMobileVLCKit.framework.
- Write to your Podfile:
platform :ios, '8.0'
use_frameworks!
pod 'MobileVLCKit'
Copy the code
- Execute at terminal
pod install; - add
libz.dylib,libbz2.dylib,libiconv.dylib,Libstdc++. 6.0.9. DylibFour libraries, xcode7 and above are addedlibz.tbd,libbz2.tbd,libiconv.tbd,Libstdc++. 6.0.9. TBD;
use
Through the above, we got a project integrated with VLC, and then we tested it. For convenience, we used WeLSee, a VLC based framework on Github.
- Download WeLSee source code directly;
- The above
compileStep derivedMobileVLCKit.frameworkIntegrated into theWeLSeeProject (some libraries may need to be replaced, xcode7 and above requires libraries to be removed fromdylibSwitch totdb); - Direct compilation, no problems, running fine.
The problem
- If encountered during compilation
svn: warning: W175002: Unable to connect to a repository at URL, the DNS cache may be faulty. Run the following command on the terminal to clear the cachedscacheutil -flushcache
reference
VLC Forum VLC Wiki Guide Blog code isteven
Continue to update ^-^ later