• 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、项目编译

  • 相关阅读:
    day113-django-Form组件常用字段和参数
    day112-django-Form组件-ajax提交给后台的Form验证
    day110-django-中间件和(socket:wsgiref、uwsgi)
    day111-django-初识Form组件(验证登录信息)
    day109-django-多对多、session保存用户信息到数据库和从数据库获取用户信息
    day108-django-路由分发、动态路由、伪静态、根据名称反向生成url
    软件测试基础
    Python并发编程之:多进程
    进程介绍(理论部分)
    网络编程
  • 原文地址:https://www.cnblogs.com/1-434/p/7878124.html
Copyright © 2020-2023  润新知