site  contact  subhomenews

Step-3, VLC compiled on Pi2

October 28, 2016 — BarryK
Steps 1 and 2 are documented here:

Step 3 is to compile VLC with hardware acceleration for the Pi2 and Pi3, using the system ffmpeg that Omxplayer also uses.

This is how VLC 2.2.4 was compiled:
# ./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 --enable-gles1 --sysconfdir=/etc --localstatedir=/var --disable-udev --disable-dbus --enable-optimize-memory --enable-run-as-root --disable-lua --enable-faad --enable-flac --disable-pulse --enable-alsa --disable-atmo --disable-bonjour --disable-vsxu --disable-projectm --disable-goom --enable-libgcrypt --enable-dvdread --enable-dvdnav --enable-vlc --enable-schroedinger --enable-theora --enable-ncurses --enable-dc1394 --disable-xvideo --with-x --disable-jack --enable-x264 --enable-x265 --enable-dvbpsi --disable-qt --enable-vpx --enable-vorbis --enable-libmpeg2 --enable-a52 --enable-mad --enable-ogg --disable-skins2 --disable-static --enable-shared
# make
# new2dir make install

Both VLC and Omxplayer work. The latter plays 1080p videos smoother. On the otherhand, VLC plays more video formats. So it is good to have the choice of players.

I intend to expand SimpleVLC to be a frontend to both VLC and Omxplayer. So, it is renamed to SimpleMP (Simple Multimedia Player).

Tags: linux