可按Ctrl+D收藏 蚂蚁资源网

蚂蚁资源网

vlc 源码(vlc插件)

  • 全部评论(3)
  • 1264737478
  • liblua_plugin 你找找光盘中有没有这个rpm包, 有的话吧它装上试试。
  • 2021-02-22 06:00:01
  • 苏棠源码
  • 1. 准备编译环境基本上按照这篇wiki的介绍就足够了,为了顺利完成编译,建议首先保证相关的软件或者依赖库都已经下载好了,我再强调一下几个重点注意事项。(1) Android SDK:必须使用SDK Platform Android 5.0, API 21,因为VLC-for-android用到了Android 5.0 的一些API。(2) 最好通过apt-get install 把下面这些依赖的软件都安装一遍,或更新到最新版 git,apache-ant (or ant), autoconf, automake, autopoint, cmake, gawk (or nawk), gcc, g++, libtool, m4, patch, pkg-config, ragel, subversion, unzip.2. 下载源码包直接通过git下载VLC-for-android最新的源码即可:git clone git://git.videolan.org/vlc-ports/android.git3. 编译VLC源码和VLC Android工程(1) 配置编译环境变量具体参考wiki的介绍,你可以写个shell脚本来执行,避免每次编译都要配置,下面是我的环境变量,可以根据你的路径修改:#! /bin/shexport ANDROID_SDK=/opt/android/sdk/export ANDROID_NDK=/opt/android/android-ndk-r10/export ANT_DIR=/opt/android/ant/export PATH=$PATH:$ANDROID_SDK/platform-tools:$ANDROID_SDK/tools:$ANT_DIRexport ANDROID_ABI=armeabi-v7a(2) 执行编译sh compile.shVLC不愧是使用这么广泛的播放器,它的编译脚本写得非常强大和智能,直接通过执行compile.sh,它会自动check所有的依赖,并通过网络去下载缺失的库。首先,它会下载vlc的源码,并存放在当前目录下。然后去下载依赖的第三方库文件。当然,由于GFW的存在,有的时候下载会失败,这个时候,就需要你手动去Google搜索它正在下载的依赖文件,手动下载好了之后放到 vlc/contrib/tarballs目录下,然后再回到命令行重新执行 sh compile.sh它依赖的全部第三方库文件如图所示:(3) 编译问题编译过程还算顺利,只出现过一个大问题,如下:google/protobuf/unittest.proto:853:21: Missing field number.google/protobuf/unittest.proto:862:1: Reached end of input in message definition (missing '}').make[3]: *** [unittest_proto_middleman] Error 1网上也搜不到解决方案,我看了下GitHub上Protobuf的Readme,然后下载了最新的protobuf放到vlc/contrib/tarballs/contrib-android-arm-linux-androideabi/protobuf目录下,执行./configure --disable-shared,再编译,没想到就直接过了。4. 加载VLC-For-Android的Java工程编译通过后,就可以直接在vlc-android/bin目录下看到debug版的apk了,下面简单说说在Eclipse中加载vlc-android的整个工程。打开Eclipse,选择Import,把vlc-for-android目录下所有的工程到导入到Eclipse中(我去掉了TV工程),如图所示,有5个必须的工程,其中,VLC是主工程,其他四个都是Lib工程。没有什么意外的话,直接运行VLC工程,就可以在Android手机上看到VLC播放器应用了!
  • 2021-02-11 20:01:14
  • 111
  • vlc播放器是用什么写出来的,以下是编译VLC源代码时所需的库:Third party libraries used by VLCYou'll find a complete list on the wiki.But, here are the most important libraries.Audio/Video codecs liba52 - an ATSC A/52 (aka AC3) audio decoderlibmad - an MPEG audio decoderlibmpeg2 - an MPEG1/2 video decoderlibavcodec (ffmpeg) - an extensive audio/video codec library which supports several formats like MPEG4, H263, WMV/A etc...libogg - an Ogg bitstream parserlibvorbis - a Vorbis audio decoderlibflac - a FLAC (Free Lossless Audio Codec) audio decoderlibspeex - a Speex (Free speech codec) audio decoderlibtheora - a Theora video decoderlibfaad2 - an AAC audio decoderlibdv - a DV video decoder (deprecated in favor of libavcodec)libxvidcore (xvid) - an ISO MPEG-4 compliant video codec (deprecated in favor of libavcodec)libdca - A DTS Coherent Acoustics decoding library.GUI framework libraries wxWidgets - a cross-platform C++ GUI framework that keeps the look and feel of each platformQT4 - a C++ Cross-Platform Rich Client Development FrameworkAudio/Video output libraries libsdl - a cross-platform multimedia library designed to provide level access to audio, and 2D video framebufferMiscellaneous libraries libdvdcss - a library for accessing encrypted DVDslibdvdnav - a library for DVD navigationlibdvdread - a library for reading DVD-Video imageslibdvbpsi - a library designed for decoding and generation of MPEG TS and DVB PSI tableslibopenslp - an open-source implementation of Service Location Protocolgettext - a set of tools that provides a framework to help applications produce multi-lingual messageslibfreetype2 - a software font engine that is designed to be small, efficient, highly customizable and portable while capable of producing high-quality output (glyph images).fribidi - A Free Implementation of the Unicode Bidirectional AlgorithmliveMedia - C++ libraries for multimedia streaming (RTP/RTCP, RTSP, SIP)matroska - a new, extensible open standard Audio/Video container formatIf you're using those libs to compile VLC for windows with mingw-gcc 3.3.1, you can use our Win32 contribs.如果需要更权威的回答,这里是VLC官方提供的源码下载:http://download.videolan.org/pub/vlc/
  • 2021-02-11 20:01:14
  • 商品推荐