vlc-android配置实录
来源:互联网 发布:windows basic配色方案 编辑:程序博客网 时间:2024/05/16 08:28
听说vlc底层也用的ffmpeg,免费开源的,业界做的不错的,就来看看从网上找了很多例子,也从github上找了好多demo,好多都不全,或者下载下来编译失败官网上下载的vlc-android就编译失败。下面列两个可以用的:一.有vlc源码,可以编译https://github.com/qenter/vlc-android.git
最新版,这个有vlc/vlc.h,能编译
https://github.com/qenter/vlc-android.git
vlc-android/vlc/include/vlc/vlc.h
项目目录挪到这个下面: /home/qian/github/vlc-android/
1.sudoapt-get install automake ant autopoint cmake build-essentiallibtool patch pkg-config protobuf-compiler ragel subversionunzip git
2.路径,自己编译需要修改,如果是androidstudio就不用改这个:/home/qian/github/vlc-android/下的
local.properties文件修改
sdk.dir=/lbg/android/android-sdk-linux
ndk.dir=/lbg/android/android-ndk-r12b
3.运行,自己编译需要修改,如果是androidstudio就不用改这个: ./gradlew
4.安装autoconf:
cd/home/qian/github/vlc-android/vlc
sudo./bootstrap
5.执行命令,自己编译需要修改,如果是androidstudio就不用改这个:
exportANDROID_NDK=/lbg/android/android-ndk-r12b
exportANDROID_SDK=/lbg/android/android-sdk-linux
编译库:sudo ./compile-libvlc.sh -a arm
ARM: (armeabi-v7a|arm)
ARM64: (arm64-v8a|arm64)
X86: x86, x86_64
MIPS: mips, mips64.
5.自己编译需要修改,如果是androidstudio就不用改这个:
ANDROID_NDK,ANDROID_SDK
删除了一段测试:
TESTED_HASH=c7b91b5
if[ ! -d "vlc" ]; then
diagnostic"VLC source not found, cloning"
gitclone git://git.videolan.org/vlc.git vlc
checkfail"vlc source: git clone failed"
else
diagnostic"VLC source found"
cdvlc
if! git cat-file -e ${TESTED_HASH}; then
cat1>&2 << EOF
***
***Error: Your vlc checkout does not contain the latest tested commit:${TESTED_HASH}
***
EOF
exit1
fi
cd..
fi
#----------------------
1.ndk需要12版本
2.需要设置变量—— exportANDROID_NDK_HOME=/lbg/android/android-ndk-r8e
chmod+x ./compile-libvlc.sh
sudo./compile-libvlc.sh
库的路径:
/lbg/android/vlc/guanfang/vlc-android/vlc/contrib/tarballs
可以去网上搜索:tarballs
二.vlc-android源码-缩减了只剩下Android部分https://github.com/xuie0000/vlc-android
安装配置:
sudo apt-get install automake ant autopoint cmake build-essential libtool \ patch pkg-config protobuf-compiler ragel subversion unzip git
缺点,可以播放, 不能编译,缺很多库
[armeabi]Compile arm : vlcjni <= libvlcjni.c
jni/libvlcjni.c:37:31:fatal error: libvlcjni-modules.h: No such file or directory
奇怪的地方:库很多,不好识别
gdb.setup
Initialcommit
ayear ago
gdbserver
Initialcommit
ayear ago
libanw.10.so
Initialcommit
ayear ago
libanw.13.so
Initialcommit
ayear ago
libanw.14.so
Initialcommit
ayear ago
libanw.18.so
Initialcommit
ayear ago
libanw.21.so
Initialcommit
ayear ago
libiomx.10.so
Initialcommit
ayear ago
libiomx.13.so
Initialcommit
ayear ago
libiomx.14.so
Initialcommit
ayear ago
libvlcjni.so
Initialcommit
ayear ago
完整版vlc
https://github.com/xuie0000/VLC
- vlc-android配置实录
- VLC-ANDROID
- 【VLC-Android】vlc-android简例
- 【VLC-Android】vlc-android简例
- 【VLC-Android】vlc-android简例
- 【VLC-Android】vlc-android简例
- 【VLC-Android】vlc-android简例
- LOG4J安装配置实录
- Hibernate配置实录
- mysql_redolog配置变更实录
- Android QQMusic 设计实录
- android开发实录
- VLC编译配置帮助
- 【VLC-Android】Mac下编译vlc-android
- Hadoop+Hbase安装配置实录
- Hadoop+Hbase安装配置实录
- 阿里云centOS配置实录
- 【vim环境配置】详细实录
- 杭电 2002 ( 计算球体积 ) java
- KPI关键绩效指标(Key Performance Indicator)
- [UOJ164] V 记录历史最值线段树
- playbook介绍
- jupyter notebook添加kernel
- vlc-android配置实录
- cookie实现购物车
- baidumapsdk: Authentication Error errorcode: 230 uid: -1 appid -1 msg: APP Scode码校验失败
- WebShpere MQ 实战命令操作
- 杭电 2003 ( 求绝对值 ) java
- struts2 简单总结
- c语言中的大小端问题与高低位问题
- UDP主要丢包原因及具体问题分析
- C# 4-5章总结