Introduction to VLC
VLC is a media player, streamer,
and encoder. It can play from many inputs, such as files, network
streams, capture devices, desktops, or DVD, SVCD, VCD, and audio
CD. It can use most audio and video codecs (MPEG 1/2/4, H264, VC-1,
DivX, WMV, Vorbis, AC3, AAC, etc.), and it can also convert to
different formats and/or send streams through the network.
This package is known to build and work properly using an LFS-8.0
platform.
Package Information
-
Download (HTTP): http://get.videolan.org/vlc/2.2.4/vlc-2.2.4.tar.xz
-
Download MD5 sum: 55666c9898f658c7fcca12725bf7dd1b
-
Download size: 21 MB
-
Estimated disk space required: 559 MB (add 4 MB for tests)
-
Estimated build time: 5.0 SBU (add 0.2 SBU for tests)
Additional Downloads
VLC Dependencies
Recommended
alsa-lib-1.1.3, FFmpeg-3.2.4, liba52-0.7.4,
libgcrypt-1.7.6 libmad-0.15.1b, Lua-5.3.4,
and X Window
System,
Optional features and packages
dbus-1.10.14
Optional input plugins
libdv-1.0.0, libdvdcss-1.4.0,
libdvdread-5.0.3, libdvdnav-5.0.3,
opencv-3.2.0, Samba-4.5.5,
v4l-utils-1.12.3, libbluray,
libdc1394,
libcddb, libproxy,
Live555, and
VCDImager (requires
libcdio-0.94)
Optional mux/demux plugins
libogg-1.3.2, Game Music Emu,
libdvbpsi,
libshout,
libmatroska
(requires libebml), libmodplug,
Musepack, and
sidplay-libs
Optional codec plugins
FAAD2-2.7,
FLAC-1.3.2,
libass-0.13.6, libmpeg2-0.5.1,
libpng-1.6.28, libtheora-1.1.1,
libva-1.7.3, libvorbis-1.3.5,
Opus-1.1.4,
Speex-1.2rc2, x264-20170212-2245, Dirac, FluidSynth,
libdca,
libkate, OpenMAX, Schroedinger,
Tremor,
Twolame, and
Zapping VBI
Optional video plugins
AAlib-1.4rc5, Fontconfig-2.12.1, FreeType-2.7.1, FriBidi-0.19.7, librsvg-2.40.16, libvdpau-1.1.1, SDL-1.2.15 (with SDL_image),
and libcaca
Optional audio plugins
PulseAudio-10.0, libsamplerate-0.1.9, and JACK
Optional interface plugins
Qt-5.8.0
(required for the graphical user interface), libtar, and LIRC
Optional visualisations and video filter plugins
Goom and projectM
Optional service discovery plugins
Avahi-0.6.32, libmtp and libupnp
Miscellaneous options
GnuTLS-3.5.9, libnotify-0.7.7,
libxml2-2.9.4, taglib-1.11.1, xdg-utils-1.1.1 (runtime), and AtmoLight
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/vlc
Installation of VLC
Install VLC by running the
following commands:
patch -Np1 -i ../vlc-2.2.4-ffmpeg3-1.patch &&
patch -Np1 -i ../vlc-2.2.4-gcc6_fixes-1.patch &&
CFLAGS="-DLUA_COMPAT_5_1" \
./configure --prefix=/usr --disable-atmo &&
make
To test the results, issue: make -k
check. One test fails for unknown reasons.
Now, as the root
user:
Note
If the XORG_PREFIX is not /usr, make sure the LIBRARY_PATH
environment variable is set properly when doing the install, For
example: sudo make
LIBRARY_PATH=$XORG_PREFIX/lib ... install.
make docdir=/usr/share/doc/vlc-2.2.4 install
Note
This package installs icon files into the /usr/share/icons/hicolor
hierarchy and desktop
files into the /usr/share/applications
hierarchy. You can
improve system performance and memory usage by updating
/usr/share/icons/hicolor/index.theme
and
/usr/share/applications/mimeinfo.cache
. To
perform the update you must have GTK+-2.24.31 or
GTK+-3.22.8 installed (for the icon cache) and
desktop-file-utils-0.23 (for the
desktop cache) and issue the following commands as the
root
user:
gtk-update-icon-cache &&
update-desktop-database
Command Explanations
CFLAGS="-DLUA_COMPAT_5_1"
This
environment variable ensures the use of the correct variation of
Lua-5.3.4.
--disable-atmo
: This switch
disables trying to build AtmoLight (homemade Philips Ambilight
clone).
--enable-opencv=no
: This switch
disables OpenCV suport.
--disable-lua
: Use this switch if you
don't have Lua installed.
--disable-mad
: Use this switch if you
don't have libmad installed.
--disable-avcodec --disable-swscale
:
Use these switches if you don't have FFmpeg installed.
--disable-a52
: Use this switch if you
don't have liba52 installed.
--disable-xcb
: Use this switch if you
don't have X Window System
installed.
--disable-alsa
: Use this switch if you
don't have ALSA installed.
--disable-libgcrypt
: Use this switch if
you don't have libgcrypt
installed.
Note
There are many options to VLC's
configure command.
Check the configure
--help output for a complete list.