VLC-开源播放器编译

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


需要VLC
需要VLC
在iOS开发中,如果你的程序中播放视频,并且多媒体播放功能是你iOS程序的核心功能!
那么,你需要这一款播放器!
它支持m3u8、rtsp、rtmp、MP4、flv…… 多种格式!绝对比苹果自带的播放器给力的多吧!那么,可行而知,使用VLC播放器,那你的iOS应用就显的牛X太多!!!
我为编译VLC播放器,不懈努力了整整3个无眠的夜晚!擦!写下此编译过程,希望能够让别人少走弯路!


什么是VLC
VLC是一款开源的视频播放框架!支持N多种多媒体格式!
官方网址:VLC开源网址
可以下载到相应的版本!我们这里使用iOS。


VLC的编译方式


一.在线编译。意味着你必须链接网络去编译!
因为,VLC本身用到了很多其他开源的代码,其他的开源代码,需要在VLC编译过程中下载和编译。


二.编译方式,非常简单,因为VLC团队将编译写成了一个编译命令文件。
我们要做的就是执行代码下载命令。
1.首先从Git上下载编译脚本。
git clone git://git.videolan.org/vlc-ports/ios.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-开源播放器编译




希望对你有所帮助!



在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

需要VLC
在iOS开发中,如果你的程序中播放视频,并且多媒体播放功能是你iOS程序的核心功能!
那么,你需要这一款播放器!
它支持m3u8、rtsp、rtmp、MP4、flv…… 多种格式!绝对比苹果自带的播放器给力的多吧!那么,可行而知,使用VLC播放器,那你的iOS应用就显的牛X太多!!!
我为编译VLC播放器,不懈努力了整整3个无眠的夜晚!擦!写下此编译过程,希望能够让别人少走弯路!


什么是VLC
VLC是一款开源的视频播放框架!支持N多种多媒体格式!
官方网址:VLC开源网址
可以下载到相应的版本!我们这里使用iOS。


VLC的编译方式


一.在线编译。意味着你必须链接网络去编译!
因为,VLC本身用到了很多其他开源的代码,其他的开源代码,需要在VLC编译过程中下载和编译。


二.编译方式,非常简单,因为VLC团队将编译写成了一个编译命令文件。
我们要做的就是执行代码下载命令。
1.首先从Git上下载编译脚本。
git clone git://git.videolan.org/vlc-ports/ios.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-开源播放器编译




希望对你有所帮助!



.等待编译结果。
这一步是非常纠结的,往往会由于网络原因,导致相关源文件下载失败,而导致编译失败。
向如下情况:

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-开源播放器编译


希望对你有所帮助!



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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值