网站首页 >> 创业大师 >> 正文 提交收录

vlc0.9.2源码下载(vlc 330)

时间:2022年06月07日 11:06:14

本文目录一览:

vlc for android 源码能不能在windows环境下编译

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.git

3. 编译VLC源码和VLC Android工程

(1) 配置编译环境变量

具体参考wiki的介绍,你可以写个shell脚本来执行,避免每次编译都要配置,下面是我的环境变量,可以根据你的路径修改:

#! /bin/sh

export 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_DIR

export ANDROID_ABI=armeabi-v7a

(2) 执行编译

sh compile.sh

VLC不愧是使用这么广泛的播放器,它的编译脚本写得非常强大和智能,直接通过执行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

播放器应用了!

求vlc播放器的源代码

最新版源码下载地址:

但是官方不支持使用VC编译,并且不建议使用VC,移植难度很大。

官方支持的是MingW或者Cygwin,也就是GCC的Windows版。编译 *** 见官方Wiki:

-

-

vlc播放器是用什么写出来的?

以下是编译VLC源代码时所需的库:

Third party libraries used by VLC

You'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 decoder

libmad - an MPEG audio decoder

libmpeg2 - an MPEG1/2 video decoder

libavcodec (ffmpeg) - an extensive audio/video codec library which supports several formats like MPEG4, H263, WMV/A etc...

libogg - an Ogg bitstream parser

libvorbis - a Vorbis audio decoder

libflac - a FLAC (Free Lossless Audio Codec) audio decoder

libspeex - a Speex (Free speech codec) audio decoder

libtheora - a Theora video decoder

libfaad2 - an AAC audio decoder

libdv - 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 platform

QT4 - a C++ Cross-Platform Rich Client Development Framework

Audio/Video output libraries

libsdl - a cross-platform multimedia library designed to provide level access to audio, and 2D video framebuffer

Miscellaneous libraries

libdvdcss - a library for accessing encrypted DVDs

libdvdnav - a library for DVD navigation

libdvdread - a library for reading DVD-Video images

libdvbpsi - a library designed for decoding and generation of MPEG TS and DVB PSI tables

libopenslp - an open-source implementation of Service Location Protocol

gettext - a set of tools that provides a framework to help applications produce multi-lingual messages

libfreetype2 - a software font engine that is designed to be *** all, efficient, highly customizable and portable while capable of producing high-quality output (glyph images).

fribidi - A Free Implementation of the Unicode Bidirectional Algorithm

liveMedia - C++ libraries for multimedia streaming (RTP/RTCP, RTSP, SIP)

matroska - a new, extensible open standard Audio/Video container format

If you're using those libs to compile VLC for windows with mingw-gcc 3.3.1, you can use our Win32 contribs.

如果需要更权威的回答,这里是VLC官方提供的源码下载: