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

Re: Compile VLC with HW acceleration - complete tutorial

Thu Mar 19, 2015 6:56 pm

I don't understand your question. If you start VLC normally, it has a QT interface. You can either close the main window or call the quit function from the menu.
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

FraMor79
Posts: 12
Joined: Sun Apr 12, 2015 12:57 pm

Re: Compile VLC with HW acceleration - complete tutorial

Sat Apr 25, 2015 8:54 pm

Tank i need these informations ;)

Krassegrand
Posts: 105
Joined: Sat Apr 25, 2015 3:20 pm
Location: Halmstad Sweden

Re: Compile VLC with HW acceleration - complete tutorial

Tue May 05, 2015 5:30 pm

I tried the installation guide in the first post and it ended here.



configure: WARNING: No package 'gstreamer-app-1.0' found. GStreamer modules will not be built.
checking for AVCODEC... no
configure: error: Requested 'libavcodec >= 55.0.0' but version of libavcodec is 54.35.0. Pass --disable-avcodec to ignore this error.
[email protected] ~/vlc $ make
make: *** No targets specified and no makefile found. Stop.
[email protected] ~/vlc $ sudo make install
make: *** No rule to make target 'install'. Stop.
[email protected] ~/vlc $


Have I done something wrong?

J;rgen

User avatar
kusti8
Posts: 3439
Joined: Sat Dec 21, 2013 5:29 pm
Location: USA

Re: Compile VLC with HW acceleration - complete tutorial

Tue May 05, 2015 7:28 pm

It won't make since there are missing dependencies as gkreidl said in the beginning. You have to follow what he said in red.
There are 10 types of people: those who understand binary and those who don't.

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

Re: Compile VLC with HW acceleration - complete tutorial

Tue May 05, 2015 9:56 pm

kusti8 wrote:It won't make since there are missing dependencies as gkreidl said in the beginning. You have to follow what he said in red.
or wait for Jessie ...
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
kusti8
Posts: 3439
Joined: Sat Dec 21, 2013 5:29 pm
Location: USA

Re: Compile VLC with HW acceleration - complete tutorial

Wed May 06, 2015 12:19 am

gkreidl wrote:
kusti8 wrote:It won't make since there are missing dependencies as gkreidl said in the beginning. You have to follow what he said in red.
or wait for Jessie ...
or use the linaro image, now that I'm thinking about it. It has more up to date packages, not sure if HW accelerated version is in the repos.
There are 10 types of people: those who understand binary and those who don't.

Krassegrand
Posts: 105
Joined: Sat Apr 25, 2015 3:20 pm
Location: Halmstad Sweden

Re: Compile VLC with HW acceleration - complete tutorial

Wed May 06, 2015 5:20 am

Well I will have to wait anyway!
I don't have time for this today, I will see if I can do something tomorrow.
By the way, thank You for Your patience!

Jörgen

ktb
Posts: 1380
Joined: Fri Dec 26, 2014 7:53 pm

Re: Compile VLC with HW acceleration - complete tutorial

Wed May 06, 2015 6:10 am

Unfortunately, it doesn't look like Jessie will solve your problem.

I've compiled vlc-2.2.1 on Raspbian Jessie as well as vlc-2.2.0 on Debian Jessie (both Pi2B). The same problems are present in both versions. In both cases, "MMAL-based vout plugin for Raspberry Pi" and "OpenMAX IL video output" do not work properly.

"MMAL-based vout plugin for Raspberry Pi" will play the audio from an MP4 while spitting out tons of buffer errors "mmal_codec decoder error: Failed to retrieve buffer header for input data."
http://pastebin.com/aAxsUy89

"OpenMAX IL video output" will just crash.
http://pastebin.com/bNqSZHwc

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

Re: Compile VLC with HW acceleration - complete tutorial

Wed May 06, 2015 7:14 am

ktb wrote:Unfortunately, it doesn't look like Jessie will solve your problem.

I've compiled vlc-2.2.1 on Raspbian Jessie as well as vlc-2.2.0 on Debian Jessie (both Pi2B). The same problems are present in both versions. In both cases, "MMAL-based vout plugin for Raspberry Pi" and "OpenMAX IL video output" do not work properly.

"MMAL-based vout plugin for Raspberry Pi" will play the audio from an MP4 while spitting out tons of buffer errors "mmal_codec decoder error: Failed to retrieve buffer header for input data."
http://pastebin.com/aAxsUy89

"OpenMAX IL video output" will just crash.
http://pastebin.com/bNqSZHwc
from the logs:
unrecognized major file specification (mp42)
Try other files / container formats.
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

ktb
Posts: 1380
Joined: Fri Dec 26, 2014 7:53 pm

Re: Compile VLC with HW acceleration - complete tutorial

Wed May 06, 2015 9:34 am

gkreidl - Good idea. Thank you. I had only been testing with video files I ripped from YouTube using (IIRC) youtube-dl. I've tested a bunch of files now and it appears to mostly be "H264 - MPEG-4 AVC (part 10) (avc1)" which causes trouble. I'll update this post with my results.

http://pastebin.com/bdwqJf6J

Summary:
mp4 | H264 - MPEG-4 AVC (part 10) (avc1) | Fail
mkv | H264 - MPEG-4 AVC (part 10) (avc1) | Fail
m4v | H264 - MPEG-4 AVC (part 10) (avc1) | Fail
m2v | MPEG-1/2 Video (mpgv) | Fail

3gp | H263 (h263) | Success
flv | Flash Video (FLV1) | Success
webm | Google/On2's VP8 Video (VP80) | Success
ogv | Theora - Encoded by ffmpeg2theora-0.26 | Success
avi | MPEG-2 Video (mpg2) | Success
mkv | MPEG-4 Video (XVID) | Success
avi | MPEG-4 Video (FMP4) | Success
mov | MPEG-4 Video (mp4v) | Success
mp4 | MPEG-4 Video (mp4v) | Success
3gp | MPEG-4 Video (mp4v) | Success
3g2 | MPEG-4 Video (mp4v) | Success
mov | SVQ-1 (Sorenson Video v1) (SVQ1) | Success

Unfortunately that seems to be the most popular codec these days.

art0815
Posts: 1
Joined: Sun May 17, 2015 11:58 am

Re: Compile VLC with HW acceleration - complete tutorial

Sun May 17, 2015 12:04 pm

Ty 4 this tut, i have succesfully made my VLC 3.00 on Ubuntu Mate 15.04.

User avatar
expandables
Posts: 654
Joined: Fri Jun 27, 2014 7:34 pm
Location: Neverland with Michael Jackson

Re: Compile VLC with HW acceleration - complete tutorial

Sun May 17, 2015 2:33 pm

How to change vlc audio output in the command line to pulse audio?
By thinking like an engineer you can create a raspberry pi.
Michael Jackson enthusiast.
I got the PI model B, B+ and PI 2 model B.
When will I get the A? I don't know.

XeoSal
Posts: 15
Joined: Fri Mar 27, 2015 6:49 am

Re: Compile VLC with HW acceleration - complete tutorial

Mon May 18, 2015 4:28 am

I have been able to successfully compile and install VLC on my Pi 2 runnung ubutnu MATE, but when I try to play an MP4 video it gives me that error message in CMD line
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
[6bf14148] core video output error: video output creation failed
[63d843d8] core decoder error: failed to create video output
Only the audio of the MP4 video works smoothly, any help appreciated, how to get rid of this message and solve its problem?

XeoSal
Posts: 15
Joined: Fri Mar 27, 2015 6:49 am

Re: Compile VLC with HW acceleration - complete tutorial

Mon May 18, 2015 8:20 am

OKay, now I managed to compile and install the latest VLC 3.0.0 on my ubuntu mate instead of 2.2. Apparently, when I try to play a video I seem to get a better error message I guess, at least it's relevant:
[682ab588] core video output error: video output creation failed
[6d31b0d0] core decoder error: failed to create video output
[682abec0] core video output error: video output creation failed
[6d31b0d0] core decoder error: failed to create video output
[682abec0] core video output error: video output creation failed
[6d31b0d0] core decoder error: failed to create video output
[h264 @ 0x6d335620] decode_slice_header error
[h264 @ 0x6d335620] no frame!
Assertion src->f.buf[0] failed at /build/buildd/libav-11.2/libavcodec/h264_picture.c:72
Aborted (core dumped)
Could anybody tell what's wrong? :)

BTW, playing audio formats through VLC 3.0.0 compiled for MATE is perfect and super fast and I can jump from a certain period of the media to another very smoothly.

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

Re: Compile VLC with HW acceleration - complete tutorial

Mon May 18, 2015 9:21 am

Did you include the special RPi options when running "configure"?
Are the RPi OpenMax and MMAL libraries available on Ubuntu Mate?
Did you select the right video output modules in VLC settings? See the first post of this thread for details.
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

XeoSal
Posts: 15
Joined: Fri Mar 27, 2015 6:49 am

Re: Compile VLC with HW acceleration - complete tutorial

Mon May 18, 2015 10:57 am

gkreidl wrote:Did you include the special RPi options when running "configure"?
Are the RPi OpenMax and MMAL libraries available on Ubuntu Mate?
Did you select the right video output modules in VLC settings? See the first post of this thread for details.
(1)Yes, I configured the VLC source with "./configure --prefix=/usr --enable-rpi-omxil --disable-ogg --disable-mux_ogg" and the configuration completed with no errors.
libvlc configuration
--------------------
version : 2.2.0
system : linux
architecture : armv7l
optimizations : yes
vlc aliases : cvlc rvlc qvlc svlc nvlc

To build vlc and its plugins, type `make', or `./compile' if you like nice colors.
So did the compilation process which went flawless.

(2) I am not sure about OpenMax and MMALL libraries whether installed on MATE or not can you tell me a way to check and confirm that. Does anybody know?

(3) I selected open max IL video out.

EDIT: since MATE can play videos smoothly with OMXplayer then I suppose that it does have OpenMax libraries doesn't it.

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

Re: Compile VLC with HW acceleration - complete tutorial

Mon May 18, 2015 11:14 am

The newer VLC versions also contain am MMAL interface/plugin for the RPi (in addition to OpenMax).

I can't help you with Ubuntu, as I'm only using Raspbian. I will try to compile a new VLC version after the migration to a stable Raspbian Jessie release.
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

XeoSal
Posts: 15
Joined: Fri Mar 27, 2015 6:49 am

Re: Compile VLC with HW acceleration - complete tutorial

Mon May 18, 2015 12:59 pm

gkreidl wrote:The newer VLC versions also contain am MMAL interface/plugin for the RPi (in addition to OpenMax).

I can't help you with Ubuntu, as I'm only using Raspbian. I will try to compile a new VLC version after the migration to a stable Raspbian Jessie release.
OMG, thank you man very much, I've finally managed to get VLC hardware acceleration working on my PI 2 with Ubuntu MATE :D :D
As I thought, my compilation was perfect, I just had to install MMAL and OpenMax Libraries on the system as you said. ;)
It plays 1080p videos no problem at all =D

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

Re: Compile VLC with HW acceleration - complete tutorial

Mon May 18, 2015 1:07 pm

XeoSal wrote: OMG, thank you man very much, I've finally managed to get VLC hardware acceleration working on my PI 2 with Ubuntu MATE :D :D
As I thought, my compilation was perfect, I just had to install MMAL and OpenMax Libraries on the system as you said. ;)
It plays 1080p videos no problem at all =D
Perhaps you should reconfigure(recompile it with additional MMAL support. It has been reported to work better that the OMX-plugin, but I have no experience myself with it (waiting for Jessie).
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

XeoSal
Posts: 15
Joined: Fri Mar 27, 2015 6:49 am

Re: Compile VLC with HW acceleration - complete tutorial

Mon May 18, 2015 1:53 pm

gkreidl wrote: Perhaps you should reconfigure(recompile it with additional MMAL support. It has been reported to work better that the OMX-plugin, but I have no experience myself with it (waiting for Jessie).
I will try that for sure, I will also enable additional features to try x264. So, I may be using this for my configuration before compilation:
./configure --prefix=/usr --enable-rpi-omxil --disable-ogg --disable-mux_ogg --enable-realrtsp --enable-dvbpsi --enable-x264 --disable-decklink
EDIT: I plan to enable x264 because I almost got hardward accelerated videos using X11 Video Output (XCB) and it plays smoothly when not scaled further than its resolution and I don't get any errors in terminal except for this message:
(swscaler @ 0x107a60) No accelerated colorspace conversion found from yuv420p to bgra.
I made a fast search on google and found out that I can get rid of this by compiling with x264. Also, in configuration it stats that it's possible to compile with x264 so why not try it, I will be reporting any news.

ktb
Posts: 1380
Joined: Fri Dec 26, 2014 7:53 pm

Re: Compile VLC with HW acceleration - complete tutorial

Tue May 19, 2015 5:34 pm

Am I imagining things or did some posts disappear toward the end of this thread?

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

Re: Compile VLC with HW acceleration - complete tutorial

Tue May 19, 2015 6:34 pm

ktb wrote:Am I imagining things or did some posts disappear toward the end of this thread?
I'm not aware of any vanished post.
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

cuzza40
Posts: 1
Joined: Sat Jun 06, 2015 11:29 pm

Re: Compile VLC with HW acceleration - complete tutorial

Sat Jun 06, 2015 11:31 pm

XeoSal wrote:
gkreidl wrote:The newer VLC versions also contain am MMAL interface/plugin for the RPi (in addition to OpenMax).

I can't help you with Ubuntu, as I'm only using Raspbian. I will try to compile a new VLC version after the migration to a stable Raspbian Jessie release.
OMG, thank you man very much, I've finally managed to get VLC hardware acceleration working on my PI 2 with Ubuntu MATE :D :D
As I thought, my compilation was perfect, I just had to install MMAL and OpenMax Libraries on the system as you said. ;)
It plays 1080p videos no problem at all =D
Can you please specify how you installed MMAL and OpenMax libraries? It's not clear from your post, and I have the same problem...

Tom_A
Posts: 272
Joined: Fri Dec 06, 2013 8:34 am

Re: Compile VLC with HW acceleration - complete tutorial

Sun Jun 07, 2015 7:07 am

ktb wrote:Am I imagining things or did some posts disappear toward the end of this thread?
I posted about not being able to get the install guide to work. The steps I followed were the workaround since compiling was no longer possible. Then I went back to the first guide and made the preference changes. Tried a few times with no luck getting it to work and gave up. Maybe will try again once Jessie becomes stable version.

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

Re: Compile VLC with HW acceleration - complete tutorial

Sun Jun 07, 2015 10:13 am

I've repeatedly installed HW accelerated VLC with this method on different Pis (B+ and Pi2):
viewtopic.php?f=66&t=59814&p=629999#p629999

But don't expect this to work on anything else than default Raspbian Wheezy; in fact, you shouldn't even try it (it's a dirty hack).
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

Return to “Raspbian”