This is now finally working again! This tutorial is for Raspbian Jessie and the RPi 2 and 3 only!
Update May 5th, 2016: now version 2.2.3
Update June 29th, 2016: now version 2.2.4
Update May, 17th, 2017: now version 2.2.5.1
Update October, 12th, 2017: For compiling on Raspbian Stretch I have created a new topic here: viewtopic.php?f=66&t=195221
If you have already VLC installed, remove it now (all packages belonging to it).
If not, it might be a good idea, to install it first and remove it again (all packages belonging to it) to get all the program dependencies installed.
I recommend using synaptic for this.
1) Download and unpack:
Code: Select all
wget http://download.videolan.org/vlc/2.2.5.1/vlc-2.2.5.1.tar.xz
tar -xJf vlc-2.2.5.1.tar.xz
Code: Select all
sudo apt-get update
sudo apt-get install autopoint gettext liba52-0.7.4-dev libaa1-dev libasound2-dev libass-dev libavahi-client-dev libavc1394-dev libavcodec-dev libavformat-dev libbluray-dev libcaca-dev libcddb2-dev libcdio-dev libchromaprint-dev libdbus-1-dev libdc1394-22-dev libdca-dev libdirectfb-dev libdvbpsi-dev libdvdnav-dev libdvdread-dev libegl1-mesa-dev libfaad-dev libflac-dev libfluidsynth-dev libfreerdp-dev libfreetype6-dev libfribidi-dev libgl1-mesa-dev libgles1-mesa-dev libgles2-mesa-dev libgnutls28-dev libgtk2.0-dev libidn11-dev libiso9660-dev libjack-jackd2-dev libkate-dev liblircclient-dev liblivemedia-dev liblua5.2-dev libmad0-dev libmatroska-dev libmodplug-dev libmpcdec-dev libmpeg2-4-dev libmtp-dev libncursesw5-dev libnotify-dev libogg-dev libomxil-bellagio-dev libopus-dev libpng12-dev libpulse-dev libqt4-dev libraw1394-dev libresid-builder-dev librsvg2-dev libsamplerate0-dev libschroedinger-dev libsdl-image1.2-dev libsdl1.2-dev libshine-dev libshout3-dev libsidplay2-dev libsmbclient-dev libspeex-dev libspeexdsp-dev libssh2-1-dev libswscale-dev libtag1-dev libtheora-dev libtwolame-dev libudev-dev libupnp-dev libv4l-dev libva-dev libvcdinfo-dev libvdpau-dev libvncserver-dev libvorbis-dev libx11-dev libx264-dev libxcb-composite0-dev libxcb-keysyms1-dev libxcb-randr0-dev libxcb-shm0-dev libxcb-xv0-dev libxcb1-dev libxext-dev libxinerama-dev libxml2-dev libxpm-dev libzvbi-dev lua5.2 oss4-dev pkg-config zlib1g-dev libtool build-essential autoconf
Code: Select all
cd vlc-2.2.5.1
./bootstrap
CFLAGS="-I/opt/vc/include/ -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -I/opt/vc/include/interface/mmal -I/opt/vc/include/interface/vchiq_arm -I/opt/vc/include/IL -I/opt/vc/include/GLES2 -mfloat-abi=hard -mcpu=cortex-a7 -mfpu=neon-vfpv4" CXXFLAGS="-I/opt/vc/include/ -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -I/opt/vc/include/interface/mmal -I/opt/vc/include/interface/vchiq_arm -I/opt/vc/include/IL -mfloat-abi=hard -I/opt/vc/include/GLES2 -mcpu=cortex-a7 -mfpu=neon-vfpv4" LDFLAGS="-L/opt/vc/lib" ./configure --prefix=/usr --enable-omxil --enable-omxil-vout --enable-rpi-omxil --disable-mmal-codec --disable-mmal-vout --enable-gles2
Code: Select all
make -j3
If this runs to the end, run
Code: Select all
sudo make install
After starting VLC for the first time, change the following options:
Settings, simple, Audio: make sure, ALSA and bcm2835 are selected
Settings, simple, Video, output: select "OpenMAX IL video output"
VLC will remember these settings.
Video is displayed in an overlay, similar to omxplayer, not inside a window. While playing, you can only control it from the keyboard. If you want a player which plays videos inside a window with mouse control, you should consider using my omxplayerGUI instead (part of the kweb suite).
On both RPi2 and 3 VLC will play up to 1080p30 video. It did not play some 1080p60 videos which are playing well with omxplayer.
If audio is jerky and out of sync, check, if pulseaudio is installed on your system and remove or disable it.
SD video and some 720p video (RPi3) can also be played using software codecs, if you select SDL video output.
To remove VLC again, run
sudo make uninstall
from within the vlc-2.2.5.1 directory.
Do not try to install the repository version without uninstalling the compiled version first.
Important node: I do not consider this version (and older ones) completely stable. It definitely crashes when I stop playing recorded TS streams typing "s". Live TV stream are playing well (same format).