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

 

 

 

posted @ 2017-11-22 10:48  yuhui.Mr  阅读(556)  评论(0编辑  收藏  举报