iOS using VLC

Source: Internet
Author: User

JaneRegisterLoginAdd concernAuthor Hook-up clown 2016.03.18 10:42Wrote 4836 words, was paid attention by 38 people, gained 43 likes iOS using VLCwords 946 Read 698 comments 1 likes Brief introduction
Library name Introduction the capacity needed website Link
Ffmpeg FFmpegis a set of open-source computer programs that can be used to record, convert, and translate digital audio and video into streams. Adoption LGPL or GPL license. It provides a complete solution for recording, converting, and streaming audio and video. It contains a very advanced audio/video codec library libavcodec , many of which are developed from scratch to ensure high portability and codec quality libavcodec codec . Understanding of video codec principles and processes, understanding of image compression technology, audio compression technology, etc. http://ffmpeg.org
Live555 Live555It realizes the streaming, receiving and processing of audio and video data in a variety of audio and video coding formats, including MPEG、H.263+、DV、JPEG video and various audio coding. At the same time due to good design, it Live555 is very easy to extend support for other formats. Understanding of video codec principles and processes, understanding of image compression technology, audio compression technology, etc. Http://www.live555.com
Mobilevlckit Excellent encapsulation, the most core part of the source code, is encapsulated into a separate library, based on FFmpeg , to Live555 provide a complete media library, you just need to customize their interface, support Cocoapods import Library, develop a simple interface of the player, you only need a few lines of code, Almost all media formats are covered! You just have to customize your own interface, and its API looks like a player http://www.videolan.org

# # Ready

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, OSX platform
- MediaLibraryKit x.x.x source code : VLC
- MobileVLCKit x.x.x-pre2 source code : Vlc,ios Platform
2. Download the source code

Compilation Method One

PS: Because of my network problem here, in the execution of the script can not be downloaded from the google library, resulting in unable to continue, so the operation after the execution of the script is temporarily uncertain.

    1. Unzip the source code that you downloaded in step 2 of the preparation phase and enter its directory.
    2. Compile the emulator version (takes a long time):sh compileVLCforiOS.sh -s
    3. Compiling the real machine version (takes a long time):sh compileVLCforiOS.sh
    4. Uh......
Way Two

PS: It's a relatively simple way, and it's the way I use it.

IOS side
    1. Terminal execution:git clone http://code.videolan.org/videolan/VLCKit.git
    2. Compile (takes a longer time):buildMobileVLCKit.sh
X-End
    1. Terminal execution:git clone http://code.videolan.org/videolan/VLCKit.git
    2. Open VLCKit.xcodeproj , Note not MobileVLCKit.xcodeproj .
    3. Check Build Everything compile project.
    4. The above is in accordance with the official Wiki guide
Method Three: Install with Cocoapods

PS: Uh ... It should be the simplest way ... And after the execution completes, it can be /YourProject/Pods/MobileVLCKit/MobileVLCKit-binary/ obtained under the directory MobileVLCKit.framework .

    1. Write in Podfile:
      :ios, ‘8.0‘use_frameworks!pod ‘MobileVLCKit‘
    2. Executed at the terminal pod install ;
    3. Add,,, libz.dylib libbz2.dylib libiconv.dylib libstdc++.6.0.9.dylib Four libraries, xcode7 and above are added libz.tbd , libbz2.tbd libiconv.tbd libstdc++.6.0.9.tbd ,,;
Use

Through the above we get an integrated VLC project, which is then tested. For convenience, we use GitHub's previous VLC frame-based welsee.

    1. Download Welsee source code directly;
    2. Integrate the above 编译 steps MobileVLCKit.framework into the WeLSee project (you may need to replace some libraries, xcode7 and above need to change the library dylib tdb );
    3. Direct compilation, no problem, normal operation.
Problem
    1. If a DNS cache problem is encountered during the compilation process, svn: warning: W175002: Unable to connect to a repository at URL clear the cache at the terminal by entering the following commanddscacheutil -flushcache
Reference

VLC Forum
VLC Wiki
VLC Wiki Guide
Blog Code Understand
Isteven

Further updates ^-^

    recommended Expand ReadingCopyright belongs to the author

    If you feel that my article is useful to you, please feel free to make a reward. Your support will encourage me to continue to create!

    CNY Rewards supportlike -share to WeiboShare toMore SharexLike the user
    • The lost sheep 2016.05.23 14:45
    • Bharara Oh 2016.04.22 09:39
    • Menser2016.04.20 14:01
    • The flow edge if the fire weeps 2016.04.18 15:22
    • Devjia2016.04.11 21:05
    • Loyt2016.04.08 17:00
    • 峂 峂2016.03.25 18:25
    • Wind Stop 2016.03.21 23:45
    • Keithmorning2016.03.21 09:02
    • Livemeng2016.03.20 00:28
    • Sclcoder2016.03.19 15:39
    • Handsome nickname 62016.03.19 10:01
    • 2016.03.19 00:35 for a few
    • 覗 Wenjun 2016.03.18 11:48
    1 reviews Add a new comment by time sequence • Reverse chronological • Sort by preference

    The Dudou of a machine cat

    2/F · 2016.05.17 16:59

    I use VLC to play online video, but I found the blue screen, do you know why?

    enjoyed (0)Reply

    Post a comment after logging in

    Find out more about similar topics by earning the following items:
      • IOS Development Add concern

        4,071 Articles · 4181 people follow

      • iOS Learning Add attention

        Learn from the drip start! (PS: Rejected part of the article is only due to the topic has collected relevant knowledge points of the article, not the article is not submitted the technical content is not good enough, I hope to contribute ...

        2,693 Articles · 3389 people follow

      • Technical topics in management of cold brother add concern

        When you are in a bad mood, ask yourself: Why am I so happy when I ask myself: why is it so much more than my dick?

        2,147 Articles · 3099 people follow

    iOS using VLC

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.