zoukankan      html  css  js  c++  java
  • VLC-开源播放器编译

    http://blog.sina.com.cn/s/blog_7b9d64af0101jpvy.html

    需要VLC
    在iOS开发中,如果你的程序中播放视频,并且多媒体播放功能是你iOS程序的核心功能!
    那么,你需要这一款播放器!
    它支持m3u8、rtsp、rtmp、MP4、flv…… 多种格式!绝对比苹果自带的播放器给力的多吧!那么,可行而知,使用VLC播放器,那你的iOS应用就显的牛X太多!!!
    我为编译VLC播放器,不懈努力了整整3个无眠的夜晚!擦!写下此编译过程,希望能够让别人少走弯路!
     
    什么是VLC
    VLC是一款开源的视频播放框架!支持N多种多媒体格式!
    官方网址:VLC开源网址
    可以下载到相应的版本!我们这里使用iOS。
     
    VLC的编译方式
     
    一.在线编译。意味着你必须链接网络去编译!
    因为,VLC本身用到了很多其他开源的代码,其他的开源代码,需要在VLC编译过程中下载和编译。
     
    二.编译方式,非常简单,因为VLC团队将编译写成了一个编译命令文件。
    我们要做的就是执行代码下载命令。
    1.首先从Git上下载编译脚本。
    2.执行编译脚本文件。
    真机版本编译:
     sh compileVLCforiOS.sh
    模拟器版本编译:
     sh compileVLCforiOS.sh -s
     
    3.等待编译结果。
    这一步是非常纠结的,往往会由于网络原因,导致相关源文件下载失败,而导致编译失败。
    向如下情况:
     

    The following build commands failed:

    Libtool build/MobileVLCKit.build/Release-iphoneos/MobileVLCKit.build/Objects-normal/armv7/libMobileVLCKit.a normal armv7

    Libtool build/MobileVLCKit.build/Release-iphoneos/MobileVLCKit.build/Objects-normal/armv7s/libMobileVLCKit.a normal armv7s

    Libtool build/MobileVLCKit.build/Release-iphoneos/MobileVLCKit.build/Objects-normal/arm64/libMobileVLCKit.a normal arm64

    (3 failures)

     
    出现这种情况很正常,不要气馁,一直执行相应的sh命令,直至成功。
     

    [info] Installing libvlc

    [info] Removing unneeded modules

    ~/Documents/VLC_Player/devices/ios/ImportedSources/VLCKit/MobileVLCKit/ImportedSources/vlc/extras/package/ios

    [info] Building MobileVLCKit (Aggregate static plugins, Release)

    [info] Building MobileVLCKit (MobileVLCKit, Release)

    [info] Build completed

    [info] Building MobileVLCKit (Aggregate static plugins, Release)

    [info] Building MobileVLCKit (MobileVLCKit, Release)

    [info] Building MediaLibraryKit (MediaLibraryKit, Release)

    [info] Building upnpx (upnpx, Release)

    [info] Building GTL (GTLTouchStaticLib, Release)

    [info] Building CrashReporter (CrashReporter-iOS-Device, Release)

    [info] Building QuincyLib (QuincyLib, Release)

    [info] Building VLC for iOS (vlc-ios, Release)

    [info] Build completed

     
    成功后的,运行界面!
    VLC-开源播放器编译
     
     
    希望对你有所帮助!
     
     
  • 相关阅读:
    spring事务在web环境中失效的问题
    oracle行转列和列转行(pivot 和 unpivot 函数,wm_concat函数 )
    查询Oracle正在执行的sql语句及kill被锁的表
    oracle last_value使用过程中的一个细节
    oracle查询历史执行语句
    前端PHP入门-020-重点日期函数之获取时期时间信息函数
    前端PHP入门-019-内置函数之数学函数-很重要
    前端PHP入门-016-静态变量
    前端PHP入门-017-系统内置函数-会查阅API
    ajax跨域调用webservice例子
  • 原文地址:https://www.cnblogs.com/xuejinhui/p/4292925.html
Copyright © 2011-2022 走看看