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.

  1. Decompress the source code downloaded in Step 2 and go to the directory.
  2. Compiling the emulator version (takes longer) :sh compileVLCforiOS.sh -s
  3. Compiling the real version (takes longer) :sh compileVLCforiOS.sh
  4. Er…
Way 2

PS: This is the easy way, and it’s the way I use it.

The iOS side
  1. Terminal execution:git clone http://code.videolan.org/videolan/VLCKit.git
  2. Compile (takes longer) :buildMobileVLCKit.sh
OSX end
  1. Terminal execution:git clone http://code.videolan.org/videolan/VLCKit.git
  2. Open theVLCKit.xcodeproj.Note that notMobileVLCKit.xcodeproj


  3. The selectedBuild EverythingCompile the project.


  4. 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.

  1. Write to your Podfile:
platform :ios, '8.0'
use_frameworks!
pod 'MobileVLCKit'
Copy the code
  1. Execute at terminalpod install;
  2. addlibz.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.

  1. Download WeLSee source code directly;
  2. The abovecompileStep derivedMobileVLCKit.frameworkIntegrated into theWeLSeeProject (some libraries may need to be replaced, xcode7 and above requires libraries to be removed fromdylibSwitch totdb);
  3. Direct compilation, no problems, running fine.

The problem

  1. If encountered during compilationsvn: 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