Page 9 of 17
Re: Compile VLC with HW acceleration - complete tutorial
Posted: Fri Oct 09, 2015 4:32 pm
by Micha1982
cjan wrote:any update for Jessie?
gkreidl wrote:cjan wrote:any update for Jessie?
This whole thread is obsolete after upgrading to Jessie.
Unfortunately the new Raspbian Jessie VLC version does not contain the modules for using the GPU of the RPi (OpenMax and MMAL). Some time in the near future I'll try to compile a version which does support HW acceleration.
Same question here....
I thought Jessie would make this easier...

Re: Compile VLC with HW acceleration - complete tutorial
Posted: Fri Oct 09, 2015 8:32 pm
by gkreidl
The OP may help to find most of the dependencies of a current VLC code. Checking with
configure -h
may help to find more and show which features can be enabled.
Running configure repeatedly (trial and error method) will help you solve the remaining issues.
Re: Compile VLC with HW acceleration - complete tutorial
Posted: Mon Nov 23, 2015 6:48 pm
by shumifan49
I have just successfully built vlc using the first post instructions. The whole build went through cleanly, and when I fire up vlc it fires up fine. I then edited the audio/video settings saved it and then tried to received an rtp stream from my main PC (this works fine with omxplayer but it has too many limitations). As soon as the stream started vlc spewed out
[71609da8] mmal_codec decoder error: MMAL error 2 "ENOSPC"
[71609da8] mmal_codec decoder error: MMAL error 2 "ENOSPC"
[71609da8] mmal_codec decoder error: MMAL error 2 "ENOSPC"
[71609da8] mmal_codec decoder error: Failed to retrieve buffer header for input data
[71609da8] mmal_codec decoder error: MMAL error 2 "ENOSPC"
[71609da8] mmal_codec decoder error: MMAL error 2 "ENOSPC"
[71609da8] mmal_codec decoder error: MMAL error 2 "ENOSPC"
[71609da8] mmal_codec decoder error: MMAL error 2 "ENOSPC"
^
Output from free:
^Cpi@raspberrypi ~/vlc $ free
total used free shared buffers cached
Mem: 948120 934388 13732 50620 28896 693656
-/+ buffers/cache: 211836 736284
Swap: 102396 8 102388
Any suggestions on how to fix this. I assume it is a memory problem. I have set video memory to 192MB.
Any help appreciated.
Re: Compile VLC with HW acceleration - complete tutorial
Posted: Mon Nov 23, 2015 10:04 pm
by gkreidl
I recently compiled a version (latest version at that time) of VLC in Jessie with omxil and mmal support. Both are broken and don't work.
Re: Compile VLC with HW acceleration - complete tutorial
Posted: Wed Nov 25, 2015 7:59 am
by carriba
I compiled the latest scource code retreived this week, and can confim no video output at all. Sound output is working fine.
See the discussions we have in another forum under URL
https://ubuntu-mate.community/t/compile ... ion/2602/5 about the reported issue.
Anything that we may have missed here?
Re: Compile VLC with HW acceleration - complete tutorial
Posted: Thu Nov 26, 2015 9:29 pm
by shumifan49
I have had another go with different results. I incorrectly thought I had set the memory split, but when I checked the config file again, the lines were not there. Not sure where I went wrong when saving the file.
The new result is that vlc runs and produces sound, as well as causing a flickering video window - the cone disappears and reappears continuously.
The output on the console:
Code: Select all
[00da9a10] core libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[719105d8] core stream error: invalid DStreamControl query=0x7
[719105d8] core stream error: invalid DStreamControl query=0x7
[719105d8] core stream error: invalid DStreamControl query=0x7
[719105d8] core stream error: invalid DStreamControl query=0x7
[719105d8] core stream error: invalid DStreamControl query=0x7
[719105d8] core stream error: invalid DStreamControl query=0x7
[719105d8] core stream error: invalid DStreamControl query=0x7
[719105d8] core stream error: invalid DStreamControl query=0x7
[719105d8] core stream error: invalid DStreamControl query=0x7
[719105d8] core stream error: invalid DStreamControl query=0x7
[719105d8] core stream error: invalid DStreamControl query=0x7
[719105d8] core stream error: invalid DStreamControl query=0x7
[719105d8] core stream error: invalid DStreamControl query=0x7
[719105d8] core stream error: invalid DStreamControl query=0x7
[719105d8] core stream error: invalid DStreamControl query=0x7
[719105d8] core stream error: invalid DStreamControl query=0x7
[71a09868] chain filter error: Too high level of recursion (2)
[71a090f8] core filter error: Failed to create video filter2
[71a09868] chain filter error: Too high level of recursion (2)
[71a090f8] core filter error: Failed to create video filter2
[71a09868] chain filter error: Too high level of recursion (2)
[71a090f8] core filter error: Failed to create video filter2
[71a07f20] core filter error: Failed to create video filter2
[71a09868] chain filter error: Too high level of recursion (2)
[71a090f8] core filter error: Failed to create video filter2
[71a09868] chain filter error: Too high level of recursion (2)
[71a090f8] core filter error: Failed to create video filter2
[71a09868] chain filter error: Too high level of recursion (2)
[71a090f8] core filter error: Failed to create video filter2
[71a07f20] core filter error: Failed to create video filter2
[71a09868] chain filter error: Too high level of recursion (2)
[71a090f8] core filter error: Failed to create video filter2
[71a09868] chain filter error: Too high level of recursion (2)
[71a090f8] core filter error: Failed to create video filter2
[71a09868] chain filter error: Too high level of recursion (2)
[71a090f8] core filter error: Failed to create video filter2
[71a07f20] core filter error: Failed to create video filter2
[71a00c90] core vout display error: Failed to create video filter2
[71a00c90] core vout display error: Failed to adapt decoder format to display
[7162cc20] core video output error: video output creation failed
[71604330] core decoder error: failed to create video output
[71a09af8] chain filter error: Too high level of recursion (2)
[71a06b20] core filter error: Failed to create video filter2
[71a09af8] chain filter error: Too high level of recursion (2)
[71a06b20] core filter error: Failed to create video filter2
and this keeps repeating.
It must be noted that there are errors in the stream received (as seen on an Ubuntu PC), but there vlc survives. omxplayer on the other hand just dies every time there is an error, which makes it unusable.
vlc also allows switching streams without restarting from the server side, while omxplayer has to be restarted each switch.
This is why I would love to get vlc working with hw decoding on the raspberry pi.
Re: Compile VLC with HW acceleration - complete tutorial
Posted: Tue Dec 22, 2015 4:02 am
by cjan
in jessie remove vlc
copy whole built folder from wheezy
sudo make install
player .mp4 .mkv for 5 secs, is possible to treat this?
Re: Compile VLC with HW acceleration - complete tutorial
Posted: Tue Dec 22, 2015 5:56 am
by gkreidl
cjan wrote:in jessie remove vlc
copy whole built folder from wheezy
sudo make install
player .mp4 .mkv for 5 secs, is possible to treat this?
The shared libraries are very different on Jessie; not only newer versions but some have been removed or replaced by other ones. I would not recommend mixing the systems.
Re: Compile VLC with HW acceleration - complete tutorial
Posted: Tue Jan 19, 2016 8:31 pm
by ekg
Has there been any update on how to get this for Jessie or is Wheezy the only way to have VLC with HW acceleration?
Re: Compile VLC with HW acceleration - complete tutorial
Posted: Tue Jan 26, 2016 1:45 am
by nautilus27
ekg wrote:Has there been any update on how to get this for Jessie or is Wheezy the only way to have VLC with HW acceleration?
+1
Re: Compile VLC with HW acceleration - complete tutorial
Posted: Tue Feb 09, 2016 3:08 am
by cjan
last kernel had vc4 driver supported, which vlc video output choice?
Re: Compile VLC with HW acceleration - complete tutorial
Posted: Tue Feb 09, 2016 7:46 am
by cjan
cjan wrote:last kernel had vc4 driver supported, which vlc video output choice?
ok, set to OpenGL GLX video output (XCB), now can play .mp4, good work devs.
Re: Compile VLC with HW acceleration - complete tutorial
Posted: Fri Mar 11, 2016 4:08 am
by cjan
after months, recompiled vlc-2.2.2 dont get from git, with --enable-omxil --enable-omxil-vout --enable-rpi-omxil without mmal.
almost perfect, .mkv .mp4 with subtitle.ass .srt & youtube play 1080p with smtube, dvb-t-SD-HD...etc.
only one problem, no-frame full screen like omxplayer, so can not control or dont know how to control? anyone can help fix this?
ps. Rpi-2 jessie 4.1.19-v7+ #853 & overclock a bit.
Re: Compile VLC with HW acceleration - complete tutorial
Posted: Fri Mar 11, 2016 6:28 am
by gkreidl
cjan wrote:after months, recompiled vlc-2.2.2 dont get from git, with --enable-omxil --enable-omxil-vout --enable-rpi-omxil without mmal.
almost perfect, .mkv .mp4 with subtitle.ass .srt & youtube play 1080p with smtube, dvb-t-SD-HD...etc.
only one problem, no-frame full screen like omxplayer, so can not control or dont know how to control? anyone can help fix this?
ps. Rpi-2 jessie 4.1.19-v7+ #853 & overclock a bit.
Where did you get the version from? You said "dont get from git" ...
Re: Compile VLC with HW acceleration - complete tutorial
Posted: Fri Mar 11, 2016 6:51 am
by cjan
gkreidl wrote:
Where did you get the version from? You said "dont get from git" ...
grab form official 2.2.2. tarball, try with last 3.0.0-git with no go.
Re: Compile VLC with HW acceleration - complete tutorial
Posted: Fri Mar 11, 2016 11:29 am
by gkreidl
cjan wrote:gkreidl wrote:
Where did you get the version from? You said "dont get from git" ...
grab form official 2.2.2. tarball, try with last 3.0.0-git with no go.
Grabbed it, compiled with the options you proposed: Crashing on about everything.
Re: Compile VLC with HW acceleration - complete tutorial
Posted: Fri Mar 11, 2016 1:59 pm
by cjan
gkreidl wrote:Grabbed it, compiled with the options you proposed: Crashing on about everything.
just do this nothing more:
./configure --prefix=/usr --enable-omxil --enable-omxil-vout --enable-rpi-omxil --disable-mmal-codec --disable-mmal-vout --disable-ogg --disable-mux_ogg
ok, found another method you may try, cause too times build and too much garbage inside vlc (had rebuild test this method ok)
remove vlc vlc-nox then make install.
Re: Compile VLC with HW acceleration - complete tutorial
Posted: Fri Mar 11, 2016 4:33 pm
by gkreidl
cjan wrote:gkreidl wrote:Grabbed it, compiled with the options you proposed: Crashing on about everything.
just do this nothing more:
./configure --prefix=/usr --enable-omxil --enable-omxil-vout --enable-rpi-omxil --disable-mmal-codec --disable-mmal-vout --disable-ogg --disable-mux_ogg
ok, found another method you may try, cause too times build and too much garbage inside vlc (had rebuild test this method ok)
remove vlc vlc-nox then make install.
I compiled it with your options again. It's not crashing any more and video is working now, but audio (in video files) is jerky and out of sync. Tried all possible options (different ALSA devices, disabling resampler etc.).
Re: Compile VLC with HW acceleration - complete tutorial
Posted: Sat Mar 12, 2016 1:37 am
by cjan
gkreidl wrote:I compiled it with your options again. It's not crashing any more and video is working now, but audio (in video files) is jerky and out of sync. Tried all possible options (different ALSA devices, disabling resampler etc.).
how did it happen? we had audio no video before.
since we build by hand, why not add some good..
./configure --prefix=/usr CFLAGS="-O2 -mcpu=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard" LDFLAGS="-mcpu=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard" --enable-omxil --enable-omxil-vout --enable-rpi-omxil --disable-mmal-codec --disable-mmal-vout --disable-ogg --disable-mux_ogg (any suggestion?).
and it work, CPU usage around 11% when 1080p.mp4 played.
Re: Compile VLC with HW acceleration - complete tutorial
Posted: Sat Mar 12, 2016 3:50 am
by mathboy4life
Why not build vlc with opengl? And test the beta drivers and see if that works.
Re: Compile VLC with HW acceleration - complete tutorial
Posted: Sat Mar 12, 2016 5:41 am
by cjan
mathboy4life wrote:Why not build vlc with opengl? And test the beta drivers and see if that works.
vlc had build in opengl v_out and VC4 driver is on alpha stage.
Re: Compile VLC with HW acceleration - complete tutorial
Posted: Sat Mar 12, 2016 6:25 am
by gkreidl
cjan wrote:gkreidl wrote:I compiled it with your options again. It's not crashing any more and video is working now, but audio (in video files) is jerky and out of sync. Tried all possible options (different ALSA devices, disabling resampler etc.).
how did it happen? we had audio no video before.
since we build by hand, why not add some good..
./configure --prefix=/usr CFLAGS="-O2 -mcpu=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard" LDFLAGS="-mcpu=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard" --enable-omxil --enable-omxil-vout --enable-rpi-omxil --disable-mmal-codec --disable-mmal-vout --disable-ogg --disable-mux_ogg (any suggestion?).
and it work, CPU usage around 11% when 1080p.mp4 played.
I already compiled it for armv7 and I'm compiling and testing it on a RPi 3. Audio alone is working. 1080p video can be played now, but the audio (of any video) terrible: jerky and out of sync. And there's another strange bug: it's often muting, when I start playing a video. I have to stop the video, enable audio and restart to get it back. AC3 audio doesn't work at all.
Re: Compile VLC with HW acceleration - complete tutorial
Posted: Sat Mar 12, 2016 7:16 am
by gkreidl
I got it working now! The problems were caused by pulseaudio. After removing it, audio is working well now. And it plays 1080p finally.
I'll run some more tests and then I'll update the OP.
Re: Compile VLC with HW acceleration - complete tutorial
Posted: Sat Mar 12, 2016 8:30 am
by cjan
gkreidl wrote:I got it working now! The problems were caused by pulseaudio. After removing it, audio is working well now. And it plays 1080p finally.
I'll run some more tests and then I'll update the OP.
now everybody happy ^^
and, what about screen control like omxplayer hotkey? all i know is ctrl_q to quit ><.
Re: Compile VLC with HW acceleration - complete tutorial
Posted: Sat Mar 12, 2016 11:22 am
by nautilus27
gkreidl wrote:I got it working now! The problems were caused by pulseaudio. After removing it, audio is working well now. And it plays 1080p finally.
I'll run some more tests and then I'll update the OP.
Please make a tutorial, pleasee!!
