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英文不好?翻墙网速不好?没关系!这里有编译完成的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、项目编译

 

 

 

转载于:https://www.cnblogs.com/1-434/p/7878124.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值