gkreidl
Posts: 6345
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Tutorial: Compile VLC with HW acceleration - Jessie, RPi 2/3

Sat Nov 02, 2013 8:30 am

Update March 14th, 2016:
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
2) Installing the dependencies for building

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
3) Building it

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
If this runs through to the end, run

Code: Select all

make -j3
This will take about 17 minutes on a RPi 3, 30 minutes on a RPi 2 (running on HD, preasumably slower on SD card).
If this runs to the end, run

Code: Select all

sudo make install
This will also take a few minutes.

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).
Last edited by gkreidl on Thu Oct 12, 2017 10:43 am, edited 15 times in total.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

tvjon
Posts: 850
Joined: Mon Jan 07, 2013 9:11 am

Re: Compile VLC with HW acceleration - complete tutorial

Sun Nov 03, 2013 6:38 am

Thank you for the work put into this.

No obvious errors from the build, or the (long) make install.

However, only the command line interface appears:

pi@rf2 ~ $ vlc
VLC media player 2.2.0-git Weatherwax (revision 2.1.0-git-1169-g0697e18)
[0x1377280] pulse audio output error: PulseAudio server connection failure: Connection refused
[0x12f08f8] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[0x1386940] [cli] lua interface: Listening on host "*console".
VLC media player 2.2.0-git Weatherwax
Command Line Interface initialized. Type `help' for help.
>

EDIT - looks like some missing plugins from the warnings. I'm trying to work out how to change those settings you mention, but from the comand line.

pi@rf2 ~ $ vlc -vvv
VLC media player 2.2.0-git Weatherwax (revision 2.1.0-git-1169-g0697e18)
[0xcd18f8] main libvlc debug: VLC media player - 2.2.0-git Weatherwax
[0xcd18f8] main libvlc debug: Copyright © 1996-2013 the VideoLAN team
[0xcd18f8] main libvlc debug: revision 2.1.0-git-1169-g0697e18
[0xcd18f8] main libvlc debug: configured with ./configure '--prefix=/usr' '--enable-rpi-omxil' '--disable-ogg' '--disable-mux_ogg'
[0xcd18f8] main libvlc debug: searching plug-in modules
[0xcd18f8] main libvlc debug: loading plugins cache file /usr/lib/vlc/plugins/plugins.dat
[0xcd18f8] main libvlc debug: recursively browsing `/usr/lib/vlc/plugins'
[0xcd18f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/video_output/libaa_plugin.so
[0xcd18f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/video_output/libdirectfb_plugin.so
[0xcd18f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/misc/libgnutls_plugin.so
[0xcd18f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/misc/libmemcpy_plugin.so
[0xcd18f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/misc/libxscreensaver_plugin.so
[0xcd18f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/misc/libinhibit_plugin.so
[0xcd18f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/misc/libosd_parser_plugin.so
[0xcd18f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/mux/libmux_ogg_plugin.so
[0xcd18f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/stream_filter/libstream_filter_httplive_plugin.so
[0xcd18f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/stream_filter/libstream_filter_record_plugin.so
[0xcd18f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/stream_filter/libstream_filter_dash_plugin.so
[0xcd18f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/video_filter/libclone_plugin.so
[0xcd18f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/video_filter/libswscale_plugin.so
[0xcd18f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/video_filter/libosdmenu_plugin.so
[0xcd18f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/video_filter/libpostproc_plugin.so
[0xcd18f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/video_filter/libchain_plugin.so
[0xcd18f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/video_filter/libwall_plugin.so
[0xcd18f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/video_filter/libpanoramix_plugin.so
[0xcd18f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/demux/libmkv_plugin.so
[0xcd18f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/demux/libogg_plugin.so
[0xcd18f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/demux/libsid_plugin.so
[0xcd18f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/demux/libdirac_plugin.so
[0xcd18f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/demux/liblive555_plugin.so
[0xcd18f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/access/libaccess_ftp_plugin.so
[0xcd18f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/access/libstream_filter_rar_plugin.so
[0xcd18f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/access/libaccess_vdr_plugin.so
[0xcd18f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/access/libaccess_smb_plugin.so
[0xcd18f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/access/libaccess_tcp_plugin.so
[0xcd18f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/access/libaccess_realrtsp_plugin.so
[0xcd18f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/access/libpvr_plugin.so
[0xcd18f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/access/libaccess_avio_plugin.so
[0xcd18f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/access/libvcdx_plugin.so
[0xcd18f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/access/libaccess_dv_plugin.so
[0xcd18f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/access/libaccess_oss_plugin.so
[0xcd18f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/access/libaccess_udp_plugin.so
[0xcd18f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/access/libaccess_rar_plugin.so
[0xcd18f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/access/libaccess_imem_plugin.so
[0xcd18f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/access/libaccess_shm_plugin.so
[0xcd18f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/access/libaccess_http_plugin.so
[0xcd18f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/access/libaccess_attachment_plugin.so
[0xcd18f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/audio_mixer/libfixed32_mixer_plugin.so
[0xcd18f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/audio_mixer/libfloat32_mixer_plugin.so
[0xcd18f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/control/liblirc_plugin.so
[0xcd18f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/control/libglobalhotkeys_plugin.so
[0xcd18f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/gui/libfbosd_plugin.so
[0xcd18f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/gui/libqt4_plugin.so
[0xcd18f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/gui/libncurses_plugin.so
[0xcd18f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/gui/libskins2_plugin.so
[0xcd18f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/notify/libtelepathy_plugin.so
[0xcd18f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/audio_output/liboss_plugin.so
[0xcd18f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/audio_output/libaout_file_plugin.so
[0xcd18f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/audio_filter/libconverter_fixed_plugin.so
[0xcd18f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/meta_engine/libtaglib_plugin.so
[0xcd18f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/stream_out/libstream_out_select_plugin.so
[0xcd18f8] main libvlc debug: saving plugins cache /usr/lib/vlc/plugins/plugins.dat
[0xcd18f8] main libvlc debug: plug-ins loaded: 406 modules
[0xcd18f8] main libvlc debug: opening config file (/home/pi/.config/vlc/vlcrc)
[0xcd18f8] main libvlc debug: translation test: code is "en_GB"
[0xcd18f8] main libvlc debug: CPU has capabilities FPU
[0xd82038] main input debug: Creating an input for 'Media Library'
[0xd82038] main input debug: Input is a meta file: disabling unneeded options
[0xd82038] main input debug: using timeshift granularity of 50 MiB, in path '/tmp'
[0xd82038] main input debug: `file/xspf-open:///home/pi/.local/share/vlc/ml.xspf' gives access `file' demux `xspf-open' path `/home/pi/.local/share/vlc/ml.xspf'
[0xd82038] main input debug: creating demux: access='file' demux='xspf-open' location='/home/pi/.local/share/vlc/ml.xspf' file='/home/pi/.local/share/vlc/ml.xspf'
[0xd82a80] main demux debug: looking for access_demux module matching "file": 18 candidates
[0xd82a80] main demux debug: no access_demux modules matched
[0xd82038] main input debug: creating access 'file' location='/home/pi/.local/share/vlc/ml.xspf', path='/home/pi/.local/share/vlc/ml.xspf'
[0xd7c0e0] main access debug: looking for access module matching "file": 21 candidates
[0xd7c0e0] filesystem access debug: opening file `/home/pi/.local/share/vlc/ml.xspf'
[0xd7c0e0] main access debug: using access module "filesystem"
[0xd82a80] main stream debug: Using stream method for AStream*
[0xd82a80] main stream debug: starting pre-buffering
[0xd82a80] main stream debug: received first data after 0 ms
[0xd82a80] main stream debug: pre-buffering done 296 bytes in 0s - 262 KiB/s
[0xd7c6e0] main stream debug: looking for stream_filter module matching "any": 9 candidates
[0xd7c6e0] main stream debug: no stream_filter modules matched
[0xd7c6e0] main stream debug: looking for stream_filter module matching "record": 9 candidates
[0xd7c6e0] main stream debug: using stream_filter module "record"
[0xd82038] main input debug: creating demux: access='file' demux='xspf-open' location='/home/pi/.local/share/vlc/ml.xspf' file='/home/pi/.local/share/vlc/ml.xspf'
[0xd6d588] main demux debug: looking for demux module matching "xspf-open": 61 candidates
[0xd6d588] xspf demux debug: using XSPF playlist reader
[0xd6d588] main demux debug: using demux module "playlist"
[0xd6dac8] main demux meta debug: looking for meta reader module matching "any": 1 candidates
[0xd6dac8] lua demux meta debug: Trying Lua scripts in /home/pi/.local/share/vlc/lua/meta/reader
[0xd6dac8] lua demux meta debug: Trying Lua scripts in /usr/lib/vlc/lua/meta/reader
[0xd6dac8] lua demux meta debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/reader/filename.luac
[0xd6dac8] lua demux meta debug: Trying Lua scripts in /usr/share/vlc/lua/meta/reader
[0xd6dac8] main demux meta debug: no meta reader modules matched
[0xd82038] main input debug: `file/xspf-open:///home/pi/.local/share/vlc/ml.xspf' successfully opened
[0xd6f150] main xml reader debug: looking for xml reader module matching "any": 1 candidates
[0xd6f150] main xml reader debug: using xml reader module "xml"
[0xd6d588] xspf demux debug: parsed 0 tracks successfully
[0xd82038] main input debug: EOF reached
[0xd6d588] main demux debug: removing module "playlist"
[0xd7c6e0] main stream debug: removing module "record"
[0xd7c0e0] main access debug: removing module "filesystem"
[0xd7ee60] main playlist debug: creating audio output
[0xd58308] main audio output debug: looking for audio output module matching "any": 6 candidates
[0xd58308] pulse audio output debug: using library version 2.0.0
[0xd58308] pulse audio output debug: (compiled with version 2.0.0, protocol 26)
[0xd58308] pulse audio output error: PulseAudio server connection failure: Connection refused
[0xd58308] alsa audio output debug: Available ALSA PCM devices:
[0xd58308] alsa audio output debug: Discard all samples (playback) or generate zero samples (capture) (null)
[0xd58308] alsa audio output debug: bcm2835 ALSA, bcm2835 ALSA Default Audio Device (default:CARD=ALSA)
[0xd58308] alsa audio output debug: bcm2835 ALSA, bcm2835 ALSA Default Audio Device (sysdefault:CARD=ALSA)
[0xd58308] main audio output debug: using audio output module "alsa"
[0xd7ee60] main playlist debug: keeping audio output
[0xd66520] main interface debug: looking for interface module matching "hotkeys,none": 15 candidates
[0xd66520] main interface debug: using interface module "hotkeys"
[0xd653b0] main interface debug: looking for interface module matching "globalhotkeys,none": 15 candidates
[0xd653b0] main interface debug: using interface module "xcb_hotkeys"
[0xd64a40] main interface debug: looking for interface module matching "dbus,none": 15 candidates
[0xd64a40] dbus interface debug: listening on dbus as: org.mpris.MediaPlayer2.vlc.instance2833
[0xd64a40] main interface debug: using interface module "dbus"
[0xcd18f8] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[0xd679c8] main interface debug: looking for interface module matching "any": 15 candidates
[0xd679c8] [cli] lua interface debug: Found lua interface script: /usr/lib/vlc/lua/intf/cli.luac
[0xd679c8] [cli] main interface debug: using interface module "lua"
[0xd679c8] [cli] lua interface: Listening on host "*console".
VLC media player 2.2.0-git Weatherwax
Command Line Interface initialized. Type `help' for help.
>

Presumably you get the gui?

My "two flower" vlc installation worked ok with the gui.

gkreidl
Posts: 6345
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Compile VLC with HW acceleration - complete tutorial

Sun Nov 03, 2013 8:17 am

I have all interfaces available: QT (default interface), skins2, ncurses, lua, dummy ...

Send me the output of the ./configure .... command

better by PM.

Perhaps I have a few more -dev files installed from former projects.

But it is strange, that you did not get the plugins. Did you include the "--prefix=/usr"?

You can test it by going into the vlc directory and call "./vlc" from a terminal.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

gkreidl
Posts: 6345
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Compile VLC with HW acceleration - complete tutorial

Sun Nov 03, 2013 4:29 pm

I've updated the list of dependencies with two more files and now it worked for tvjon.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

Takenover83
Posts: 166
Joined: Mon Sep 02, 2013 5:39 am

Re: Compile VLC with HW acceleration - complete tutorial

Sun Nov 03, 2013 6:53 pm

Does setting a a higher memory split allow for 1080p? I know xbmc requires atleast 128MB split.

gkreidl
Posts: 6345
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Compile VLC with HW acceleration - complete tutorial

Sun Nov 03, 2013 7:11 pm

No, the problem with true hd resolution is processor speed: demuxing and audio decoding. omxplayer is much more efficient - maybe because it is much simpler and uses the GPU for audio decoding.

I'm using 128 MB GPU memory anyway.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

mikerccs
Posts: 15
Joined: Tue Dec 17, 2013 4:25 pm

Re: Compile VLC with HW acceleration - complete tutorial

Tue Dec 17, 2013 4:31 pm

I got up to the step ./configure --prefix=/usr --enable-rpi-omxil --disable-ogg --disable-mux_ogg, and then I got the following errors. Please keep in mind that I am very new to Linux so I'm trying to follow your instructions exactly. I did try the make command after this but got another error.

checking if gcc -std=gnu99 groks 3D Now! inline assembly... no
checking for LUA... no
configure: WARNING: No package 'lua5.2' found, trying lua 5.1 instead
checking for LUA... no
configure: WARNING: No package 'lua5.1' found, trying lua >= 5.1 instead
checking for LUA... no
configure: WARNING: No package 'lua' found, trying manual detection instead
checking lua.h usability... no
checking lua.h presence... no
checking for lua.h... no
checking lauxlib.h usability... no
checking lauxlib.h presence... no
checking for lauxlib.h... no
checking lualib.h usability... no
checking lualib.h presence... no
checking for lualib.h... no
checking for luaL_newstate in -llua5.2 ... no
checking for luaL_newstate in -llua5.1 ... no
checking for luaL_newstate in -llua51 ... no
checking for luaL_newstate in -llua ... no
configure: error: Could not find lua. Lua is needed for some interfaces (rc, telnet, http) as well as many other custom scripts. Use --disable-lua to ignore this error.

gkreidl
Posts: 6345
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Compile VLC with HW acceleration - complete tutorial

Tue Dec 17, 2013 5:54 pm

Did you try to install the default VLC from the Raspbian Repo first? This will make sure that a lot of dependencies are fullfilled.

In your case lua seems to be missing but that should be installed when you install vlc with:
sudo apt-get install vlc
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

mikerccs
Posts: 15
Joined: Tue Dec 17, 2013 4:25 pm

Re: Compile VLC with HW acceleration - complete tutorial

Tue Dec 17, 2013 6:51 pm

That did occur to me, and I was about to manually download and install VLC, but I thought that your first command might have done that already: sudo apt-get install vlc browser-plugin-vlc

I did notice that I couldn't find VLC on any of the menus in the GUI... Thanks very much, I will run that command and then run through all of the instructions again.

User avatar
DougieLawson
Posts: 42480
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK

Re: Compile VLC with HW acceleration - complete tutorial

Tue Dec 17, 2013 9:01 pm

sudo apt-get install liblua5.1-dev
Languages using left-hand whitespace for syntax are ridiculous

DMs sent on https://twitter.com/DougieLawson or LinkedIn will be answered next month.
Fake doctors - are all on my foes list.

The use of crystal balls and mind reading is prohibited.

mikerccs
Posts: 15
Joined: Tue Dec 17, 2013 4:25 pm

Re: Compile VLC with HW acceleration - complete tutorial

Tue Dec 17, 2013 9:06 pm

Thanks Dougie. Running the base install of vlc seems to have fixed the problem. "Make" has been running for a while... :)

gkreidl
Posts: 6345
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Compile VLC with HW acceleration - complete tutorial

Tue Dec 17, 2013 9:20 pm

mikerccs wrote:Thanks Dougie. Running the base install of vlc seems to have fixed the problem. "Make" has been running for a while... :)
... and it will run for a few more hours ...
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

User avatar
DougieLawson
Posts: 42480
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK

Re: Compile VLC with HW acceleration - complete tutorial

Tue Dec 17, 2013 9:21 pm

gkreidl wrote:
mikerccs wrote:Thanks Dougie. Running the base install of vlc seems to have fixed the problem. "Make" has been running for a while... :)
... and it will run for a few more hours ...
Time for a beer!!!
Languages using left-hand whitespace for syntax are ridiculous

DMs sent on https://twitter.com/DougieLawson or LinkedIn will be answered next month.
Fake doctors - are all on my foes list.

The use of crystal balls and mind reading is prohibited.

mikerccs
Posts: 15
Joined: Tue Dec 17, 2013 4:25 pm

Re: Compile VLC with HW acceleration - complete tutorial

Tue Dec 17, 2013 9:23 pm

No beer here, just lots of chocolate Christmas candy to keep me busy...

mikerccs
Posts: 15
Joined: Tue Dec 17, 2013 4:25 pm

Re: Compile VLC with HW acceleration - complete tutorial

Mon Jan 06, 2014 3:53 pm

I got this compiled and running okay, but I'm unable to open the network stream from my IP network camera. I can open the same stream in VLC on my Windows PC fine, so I'm guessing I'm missing a component in the Pi version.

The stream from the IP camera appears to be an H.264 stream, video only. When I try to open it in VLC on the Pi, I receive the error "Your input can't be opened:
VLC is unable to open the MRL
'rtsp://192.168.1.205:8557/PSIA/Streaming/channels/2?videoCodecType=H.264'. Check the log for details."

I've been unable to locate the log file... Any ideas what I might be missing from my compiled version?

gkreidl
Posts: 6345
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Compile VLC with HW acceleration - complete tutorial

Mon Jan 06, 2014 4:10 pm

open the messages window before opening the stream.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

User avatar
Defiant
Posts: 181
Joined: Tue Oct 30, 2012 6:17 pm
Location: Hamburg, Germany

Re: Compile VLC with HW acceleration - complete tutorial

Mon Jan 06, 2014 4:25 pm

try apt-get build-dep vlc
And I think that should be part of the official Raspbian repos..

gkreidl
Posts: 6345
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Compile VLC with HW acceleration - complete tutorial

Mon Jan 06, 2014 4:58 pm

Defiant wrote:try apt-get build-dep vlc
And I think that should be part of the official Raspbian repos..
this doesn't work for the self compiled (hw accelerated) version ...
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

User avatar
Defiant
Posts: 181
Joined: Tue Oct 30, 2012 6:17 pm
Location: Hamburg, Germany

Re: Compile VLC with HW acceleration - complete tutorial

Mon Jan 06, 2014 5:00 pm

why shouldn't it?

gkreidl
Posts: 6345
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Compile VLC with HW acceleration - complete tutorial

Mon Jan 06, 2014 5:08 pm

Defiant wrote:why shouldn't it?
I tested it and it results in an error message (missing source packages in source.list)
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

mikerccs
Posts: 15
Joined: Tue Dec 17, 2013 4:25 pm

Re: Compile VLC with HW acceleration - complete tutorial

Mon Jan 06, 2014 5:13 pm

Thanks guys. With the Messages window open, I receive the following:

core error: open of
'rtsp://192.168.1.205:8557/PSIA/Streaming/channels/2?videoCodecType=H.264' failed

Let me know if you need to see the output from the Module Tree tab.

User avatar
Defiant
Posts: 181
Joined: Tue Oct 30, 2012 6:17 pm
Location: Hamburg, Germany

Re: Compile VLC with HW acceleration - complete tutorial

Mon Jan 06, 2014 5:33 pm

Code: Select all

root@rpi ~ # apt-get build-dep vlc
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  dh-buildinfo gir1.2-notify-0.7 libasn1-8-heimdal libbasicusageenvironment0 libbluray-dev libcddb2-dev libcupsfilters1 libdvbpsi-dev libdvbpsi8 libebml-dev libebml4 libfreerdp-dev libfreerdp-plugins-standard libfreerdp1 libglu1-mesa-dev libgnutls-xssl0
... *snip*
Anyway I might have manually added the source-line. Its the better approach then manually installing all the packages.
gkreidl wrote: I tested it and it results in an error message (missing source packages in source.list)
It should be there in the default installation, please report that as bug.

Back to my original point, can the Raspbian people please package vlc properly?

gkreidl
Posts: 6345
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Compile VLC with HW acceleration - complete tutorial

Mon Jan 06, 2014 5:58 pm

@Defiant:

This is NOT the Raspbian package version. Didn't you read the title of the thread? We are talking about a newly compiled version of VLC with hardware acceleration, which is not in the repository.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

User avatar
Defiant
Posts: 181
Joined: Tue Oct 30, 2012 6:17 pm
Location: Hamburg, Germany

Re: Compile VLC with HW acceleration - complete tutorial

Mon Jan 06, 2014 6:02 pm

Sure, I'm asking why it is not in the repository - I don't see why everyone needs it to compile it for themselves. Thats the job of a binary distribution..

mikerccs
Posts: 15
Joined: Tue Dec 17, 2013 4:25 pm

Re: Compile VLC with HW acceleration - complete tutorial

Mon Jan 06, 2014 6:20 pm

Ok, everyone just calm down and focus on solving my problem. :)

Return to “Raspberry Pi OS”