vlc-android配置实录

听说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

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

AI算法网奇

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值