Micha1982
Posts: 261
Joined: Wed Oct 03, 2012 11:18 am

Re: Compile VLC with HW acceleration - complete tutorial

Fri Oct 09, 2015 4:32 pm

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.... :mrgreen: :mrgreen: :mrgreen:

I thought Jessie would make this easier... :|
Alles, was schiefgehen kann, wird auch schiefgehen.

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

Re: Compile VLC with HW acceleration - complete tutorial

Fri Oct 09, 2015 8:32 pm

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.
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

shumifan49
Posts: 2
Joined: Mon Nov 23, 2015 6:38 pm

Re: Compile VLC with HW acceleration - complete tutorial

Mon Nov 23, 2015 6:48 pm

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:
^[email protected] ~/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.

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

Re: Compile VLC with HW acceleration - complete tutorial

Mon Nov 23, 2015 10:04 pm

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.
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
carriba
Posts: 135
Joined: Tue Nov 18, 2014 5:55 pm
Contact: ICQ

Re: Compile VLC with HW acceleration - complete tutorial

Wed Nov 25, 2015 7:59 am

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?

shumifan49
Posts: 2
Joined: Mon Nov 23, 2015 6:38 pm

Re: Compile VLC with HW acceleration - complete tutorial

Thu Nov 26, 2015 9:29 pm

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.

cjan
Posts: 608
Joined: Sun May 06, 2012 12:00 am

Re: Compile VLC with HW acceleration - complete tutorial

Tue Dec 22, 2015 4:02 am

in jessie remove vlc
copy whole built folder from wheezy
sudo make install

player .mp4 .mkv for 5 secs, is possible to treat this?

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

Re: Compile VLC with HW acceleration - complete tutorial

Tue Dec 22, 2015 5:56 am

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.
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

ekg
Posts: 4
Joined: Thu Jan 07, 2016 7:49 pm

Re: Compile VLC with HW acceleration - complete tutorial

Tue Jan 19, 2016 8:31 pm

Has there been any update on how to get this for Jessie or is Wheezy the only way to have VLC with HW acceleration?

nautilus27
Posts: 71
Joined: Fri May 22, 2015 9:38 pm

Re: Compile VLC with HW acceleration - complete tutorial

Tue Jan 26, 2016 1:45 am

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

cjan
Posts: 608
Joined: Sun May 06, 2012 12:00 am

Re: Compile VLC with HW acceleration - complete tutorial

Tue Feb 09, 2016 3:08 am

last kernel had vc4 driver supported, which vlc video output choice?

cjan
Posts: 608
Joined: Sun May 06, 2012 12:00 am

Re: Compile VLC with HW acceleration - complete tutorial

Tue Feb 09, 2016 7:46 am

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.

cjan
Posts: 608
Joined: Sun May 06, 2012 12:00 am

Re: Compile VLC with HW acceleration - complete tutorial

Fri Mar 11, 2016 4:08 am

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.

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

Re: Compile VLC with HW acceleration - complete tutorial

Fri Mar 11, 2016 6:28 am

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" ...
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

cjan
Posts: 608
Joined: Sun May 06, 2012 12:00 am

Re: Compile VLC with HW acceleration - complete tutorial

Fri Mar 11, 2016 6:51 am

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.

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

Re: Compile VLC with HW acceleration - complete tutorial

Fri Mar 11, 2016 11:29 am

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.
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

cjan
Posts: 608
Joined: Sun May 06, 2012 12:00 am

Re: Compile VLC with HW acceleration - complete tutorial

Fri Mar 11, 2016 1:59 pm

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.

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

Re: Compile VLC with HW acceleration - complete tutorial

Fri Mar 11, 2016 4:33 pm

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.).
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

cjan
Posts: 608
Joined: Sun May 06, 2012 12:00 am

Re: Compile VLC with HW acceleration - complete tutorial

Sat Mar 12, 2016 1:37 am

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.

mathboy4life
Posts: 197
Joined: Fri Jan 08, 2016 7:29 pm

Re: Compile VLC with HW acceleration - complete tutorial

Sat Mar 12, 2016 3:50 am

Why not build vlc with opengl? And test the beta drivers and see if that works.

cjan
Posts: 608
Joined: Sun May 06, 2012 12:00 am

Re: Compile VLC with HW acceleration - complete tutorial

Sat Mar 12, 2016 5:41 am

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.

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

Re: Compile VLC with HW acceleration - complete tutorial

Sat Mar 12, 2016 6:25 am

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.
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: 5714
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Compile VLC with HW acceleration - complete tutorial

Sat Mar 12, 2016 7:16 am

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.
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

cjan
Posts: 608
Joined: Sun May 06, 2012 12:00 am

Re: Compile VLC with HW acceleration - complete tutorial

Sat Mar 12, 2016 8:30 am

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 ><.

nautilus27
Posts: 71
Joined: Fri May 22, 2015 9:38 pm

Re: Compile VLC with HW acceleration - complete tutorial

Sat Mar 12, 2016 11:22 am

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!! :roll:

Return to “Raspbian”

Who is online

Users browsing this forum: No registered users and 16 guests