vlc-android配置实录

举报
风吹稻花香 发表于 2021/06/05 02:14:46 2021/06/05
【摘要】 听说vlc底层也用的ffmpeg,免费开源的,业界做的不错的,就来看看 从网上找了很多例子,也从github上找了好多demo,好多都不全,或者下载下来编译失败 官网上下载的vlc-android就编译失败。 下面列两个可以用的: 一.有vlc源码,可以编译 https://github.com/qenter/vlc-android.git 最新版,这个有vlc/vlc....
听说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

文章来源: blog.csdn.net,作者:网奇,版权归原作者所有,如需转载,请联系作者。

原文链接:blog.csdn.net/jacke121/article/details/54565471

【版权声明】本文为华为云社区用户转载文章,如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@huaweicloud.com
  • 点赞
  • 收藏
  • 关注作者

评论(0

0/1000
抱歉,系统识别当前为高风险访问,暂不支持该操作

全部回复

上滑加载中

设置昵称

在此一键设置昵称,即可参与社区互动!

*长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。

*长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。