zoukankan      html  css  js  c++  java
  • iOS 开发音视频流[5]---vlc

    来源:http://www.jianshu.com/p/3618a9116660

       http://www.jianshu.com/p/1721cd8622f0 

    相信Mac用户都很熟悉一款VLC播放器,这款播放器在Mac上表现异常优异,支持的格式几乎涵盖了所有格式)。没错,就是它创造者--VideoLAN,开源了一款牛逼的视频播放框架MobileVLCKit!

    我们先来看看它所支持的格式:

    .rmvb .asf .avi .divx .dv .flv .gxf .m1v .m2v .m2ts .m4v .mkv .mov .mp2 .mp4 .mpeg .mpeg1 .mpeg2
    .mpeg4 .mpg .mts .mxf .ogg .ogm .ps .ts .vob .wmv .a52 .aac .ac3 .dts .flac .m4a .m4p .mka .mod
    .mp1 .mp2 .mp3 *.ogg.

    1、框架编译

      1.1官方给出了详细的教程

      1.2英文不好?FQ网速不好?没关系!这里有编译完成的VLC框架,下载下来就好啦!MobileVLCKit静态库下载链接

    Building the framework for iOS
    
    Clone http://code.videolan.org/videolan/VLCKit.git
    open your favorite terminal application such as Terminal.app or iTerm 2 and navigate to your checkout.
    execute ./buildMobileVLCKit.sh
    check -h for available options
    This will automatically fetch and build libvlc as well as its dependencies and accompanying classes.
    If you want to build a library that will work for both the simulator and devices:
    execute ./buildMobileVLCKit.sh
    use xcode command line tools to build a universal library: lipo -create Release-iphoneos/libMobileVLCKit.a Release-iphonesimulator/libMobileVLCKit.a -o libMobileVLCKit.a
    Or to build as a static framework with device and simulator support:
    ./buildMobileVLCKit.sh -f
    Note: the MobileVLCKit Xcode project also allows you to build a dynamic framework (requiring iOS 8 later) after the build script succeeded once.
    Warning: the current build process produces a very large library when using static mode. 90% of the initial size will be stripped on linking.
    Dependencies warning: The built script fetches dependencies automatically and builds them locally; beware that system-wide installations through Homebrew may interfere with the local build scripts. If you get autoconf-related errors, try removing /usr/local from your PATH, wiping the source tree, and starting the build over.

    2、项目编译

  • 相关阅读:
    NodeJS NPM 镜像使用方法
    用for; while...do; do...while; 写出九九乘法表
    create-react-app创建的项目中registerServiceWorker.js文件的作用
    前端应该从哪些方面优化网站?
    JS基础整理面试题
    netcore实践:跨平台动态加载native组件
    iOS开发--Swift RAC响应式编程初探
    算法导论学习笔记 (页码:9 ~ 16)
    iOS开发-- 通过runtime kvc 移除导航栏下方的阴影效果线条
    iOS开发--面试
  • 原文地址:https://www.cnblogs.com/1-434/p/7878124.html
Copyright © 2011-2022 走看看