vlc0.9.2源码下载_vlc30

hacker|
152

文章目录:

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 small, 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官方提供的源码下载:

如何在MacOSX Lion上编译VLC media player

11.03

在Mac OS X Lion下编译VLC media player

Prerequisite

Mac OS X Lion

XCode 4.4.1

0.建立一个文件夹并进入

$ mkdir vlc_osx cd vlc_osx

1.设置编译器

$ export CC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc

$ export CXX=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++

$ export OBJC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc

2. 下载源码至本地

$ git clone git://git.videolan.org/vlc.git

3. 编译autoconfig等工具

$ cd vlc/extras/tools

$ ./bootstrap make

$ cd ../..

$ export PATH=$PWD/extras/tools/build/bin:$PATH

(注意第四项设置非常重要,确保自行编译生成的工具所在的路径在系统原有路径之前,否则会调用

系统原有的lib tool工具,由于版本问题,可以会导致下面的步骤出错)

4. 设置操作系统版本

$ export OSX_VERSION=10.7

5. 编译

$ cd contrib

$ mkdir -p osx cd osx

$ ../bootstrap --host=x86_64-apple-darwin11 --build=x86_64-apple-darwin11

6.编译第三方库

6.1 下载编译好的第三方库(推荐)

$ make prebuilt

6.2 从源码自行编译第三方库(反正我是没有编译成功)

$ make -j4 .gettext

$ export PATH=$PWD/../x86_64-apple-darwin11/bin:$PATH

7.Bootstrap VLC

$ cd ../..

$ ./bootstrap

8.配置编译选项(Configure)

$ mkdir -p build cd build

$ ../extras/package/macosx/configure.sh --enable-debug --disable-ncurses --host=x86_64-apple-darwin11 --build=x86_64-apple-darwin11

9.编译VLC

$ make -j4 或 $./compile.sh

10.开始使用

此时在当前目录下(即build目录)下应有一个VLC.app目录

$VLC.app/Contents/MacOS/VLC

应该可以看到vlc media player正确启动了

Reference

VLC源代码包如何在linux下编译+调试

你是为了装软件还是为了学习?如果只是装个软件,为什么不装二进制版的呢(.deb .rpm)。自己编译挺麻烦的。

如果非想自己编译,一般都是(我没编译过VLC,编译过其他的,感觉像VLC这么大的软件应该得较长时间!):先解压下载的源码包(tar.bz),然后从终端进入解压后的源码目录,在终端输入:一 ./configure ;二 make ;三 make install ;

一,好像是为了检查当前系统参数,也可以在后面加环境变量参数(./configure [options])。如果没问题便生成makefile

二,根据makefile编译

三,编译安装。(二,可省略)

其实,不管是windows还是linux下载了软件解压后第一件事是读readme!!!!!!!!!!!(其实你应该自己看readme和install,因为别人也不知道你下的软件什么情况,这两个文件一般都会告诉你怎样安装以及软件依赖什么包!!)

再是读install ,这是基本素质。要养成自觉性,这在linux下尤为重要!

至于调试,比较麻烦,不过如果只是装软件而不改代码的情况下,不用专门调试(难道你还要用专门工具调试?) 既然说是菜鸟,又稿这么复杂的东西,并且搞这么复杂的东西又不在更专业的地方提问,百度知道一般是解决日常问题的地方!!!

不过一般情况下执行上述三步时会报错,根据它报错情况自己想办法解决,一般来说是依赖不能满足!

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源代码如何使用

如果是用VC 6的打开dsw 后缀的文件,如果是VS 20003 打开sln 文件

如果是VS2005则打开 vcproject(这个名称比较长,忘了,不知是不是这个,不过差不多的)

3条大神的评论

  • avatar
    访客 2022-07-01 上午 03:33:57

    -enable-debug --disable-ncurses --host=x86_64-apple-darwin11 --build=x86_64-apple-darwin119.编译VLC$ make -j4 或 $./compile.sh10

  • avatar
    访客 2022-07-01 上午 05:41:12

    个文件一般都会告诉你怎样安装以及软件依赖什么包!!)再是读install ,这是基本素质。要养成自觉性,这在linux下尤为重要!至于调试,比较麻烦,不过如果只是装软件而不改代码的情况下,不用专门调试(难道你还要用专门工具调试?) 既然说是菜鸟,又

  • avatar
    访客 2022-07-01 下午 12:27:33

    set of tools that provides a framework to help applications produce multi-lingual messageslibfreetype2 - a software font engine that is designed to b

发表评论