itsmedoofer
Posts: 238
Joined: Wed Sep 25, 2013 8:43 am

Re: Compile VLC with HW acceleration - complete tutorial

Wed Oct 22, 2014 9:38 am

Hi,
gkreidl wrote: But the real problem is the mess the foundation produced by publishing the new epiphany browser and that no one cares about fixing it. I already published the dependency problem in three different places and also sent an email to one of the developers from the collabora team and got no answer until now. In the beginning I got a lot of help from one of the developers of the collabora team to make kweb(3) work again and I've sent quite a number of bug reports to him. They promised to fix the bugs very soon, but nothing has happened since and now I don't get answers to my emails any more..
I think you have hit the nail on the head there, I'm not knocking the effort or the need for a decent browsing experience but at what cost ?!

I have to ask why push something out that is clearly not ready for mass consumption, I have a PC or phone if I want to watch YT or go browsing, I use the Pi for development and want to be able to use it for that, wading through errors and fixing things in a stock install is not my idea of development, its just a huge turn off... The biggest frustration is as you say finding someone responsible, who in the foundation makes the calls ?

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

Re: Compile VLC with HW acceleration - complete tutorial

Wed Oct 22, 2014 11:25 am

I've finally found a solution to transfer a working HW accelerated VLC version to another Raspbian system (tested with my new B+). It's a crude method, but it works.

First install VLC from the repository:

Code: Select all

sudo apt-get install vlc
Then run the following from a terminal:

Code: Select all

wget http://steinerdatenbank.de/software/vlcomx.tar.gz
tar -xzf vlcomx.tar.gz
cd vlcomx
sudo ./vlcoverwrite.sh
To remove this version again, run

Code: Select all

sudo ./remove.sh
This will only remove the additional files. Afterwards reinstall VLC from the repository again (forced mode!).

After installation go to the first post of this thread and follow the guideline about setting up VLC to get the accelerated output.
Last edited by gkreidl on Mon May 25, 2015 8:09 am, edited 1 time 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

Joe Schmoe
Posts: 4277
Joined: Sun Jan 15, 2012 1:11 pm

Re: Compile VLC with HW acceleration - complete tutorial

Wed Oct 22, 2014 11:37 am

Still too much work.

Why can't someone just produce a working .IMG file that people can actually just plug in and use?
And some folks need to stop being fanboys and see the forest behind the trees.

(One of the best lines I've seen on this board lately)

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

Re: Compile VLC with HW acceleration - complete tutorial

Wed Oct 22, 2014 11:53 am

Joe Schmoe wrote:Still too much work.

Why can't someone just produce a working .IMG file that people can actually just plug in and use?
This takes less than a minute ...

I can't provide an image because my working version is on HD. Compiling or even installing from an already compiled version is not possible any more because of broken dependencies. Compiling from latest VLC source is also not possible, because it needs newer packages than Raspbian provides. Moving to Jessie first might work, but I haven't tested that.
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

plugwash
Forum Moderator
Forum Moderator
Posts: 3238
Joined: Wed Dec 28, 2011 11:45 pm

Re: Compile VLC with HW acceleration - complete tutorial

Wed Oct 22, 2014 11:56 am

gkreidl wrote: Compiling or even installing from an already compiled version is not possible any more because of broken dependencies.
Have you tried the repo I just set up yet to see if that fixes the broken dependencies or whether there are further dependency issues?

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

Re: Compile VLC with HW acceleration - complete tutorial

Wed Oct 22, 2014 12:10 pm

plugwash wrote:
gkreidl wrote: Compiling or even installing from an already compiled version is not possible any more because of broken dependencies.
Have you tried the repo I just set up yet to see if that fixes the broken dependencies or whether there are further dependency issues?
Not yet, I'll try that later (busy with other stuff right now).

BTW, do you compile the Jessie version with HW acceleration for the RPi enabled? Then it should work out of the box on Jessie. It takes just one option for the configure script:
--enable-rpi-omxil
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

plugwash
Forum Moderator
Forum Moderator
Posts: 3238
Joined: Wed Dec 28, 2011 11:45 pm

Re: Compile VLC with HW acceleration - complete tutorial

Wed Oct 22, 2014 1:20 pm

No, I am avoiding putting dependencies on raspberry pi specific libraries in the main section of the raspbian repository. There are a couple of reasons for this

1: the only way to stay sane is to keep raspbian as close to debian as possible. The raspberry pi foundation "web" stuff is a good example of how easilly problems can snowball.
2: while the Pi is our largest target there are potentially other armv6 systems that could use raspbian (granted this is less so than it was before, for example the via APC was a flop).
3: the whole state of the Pi specific libraries looks like it could change big time in the future with the current system replaced with something more integrated into standard linux infrastructure.

If people want to see a hardware accelerated vlc in jessie they need to seperate out the raspberry pi specific parts into a seperate package (both source and binary) with a new name that can go in the rpi section of the raspbian jessie repository. So-far noone has stepped forward to do that.

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

Re: Compile VLC with HW acceleration - complete tutorial

Wed Oct 22, 2014 2:53 pm

I can understand that to a certain degree. But in the case of VLC, the Raspberry Pi specific OMX libraries are part of the main distribution, although they are disabled by default (as are lots of others, too). I don't even see a way how they could be extracted from the (very complex) package, but I'm no Debian expert. In the rare case, that Raspbian may be used for other hardware they would not be a problem at all, I think. The VLC team has added it, it's not a third party add-on!

VLC with OMX support is not as efficient as omxplayer (no true HD video), but it has a lot of advantages on the other side (like perfect slow motion, for example) and it would be a nice thing to have on the RPi.
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

yl1yo35m.vu5
Posts: 1
Joined: Wed Oct 22, 2014 6:01 pm

Re: Compile VLC with HW acceleration - complete tutorial

Wed Oct 22, 2014 6:05 pm

Hi guys,

have you heard about vlc mmal support which should allow better hardware decoding?
see http://comments.gmane.org/gmane.comp.vi ... evel/95891

If anyone suceed in compiling vlc with this, please let us know here:
https://forum.videolan.org/viewtopic.php?f=13&t=122338

BlackIceNetwork
Posts: 6
Joined: Tue Oct 07, 2014 4:39 am

Re: Compile VLC with HW acceleration - complete tutorial

Wed Oct 22, 2014 9:46 pm

Hi Plugwash,

I followed your suggestion, but I received the following when doing sudo apt-get update.

Hit http://archive.raspberrypi.org wheezy/main armhf Packages
Ign http://repository.wolfram.com stable/non-free Translation-en_GB
Ign http://repository.wolfram.com stable/non-free Translation-en
Ign http://raspberrypi.collabora.com wheezy/rpi Translation-en_GB
Ign http://raspberrypi.collabora.com wheezy/rpi Translation-en
Ign http://archive.raspberrypi.org wheezy/main Translation-en_GB
Ign http://archive.raspberrypi.org wheezy/main Translation-en
Ign http://mirrordirector.raspbian.org wheezy/contrib Translation-en_GB
Ign http://mirrordirector.raspbian.org wheezy/contrib Translation-en
Ign http://mirrordirector.raspbian.org wheezy/main Translation-en_GB
Ign http://mirrordirector.raspbian.org wheezy/main Translation-en
Ign http://mirrordirector.raspbian.org wheezy/non-free Translation-en_GB
Ign http://mirrordirector.raspbian.org wheezy/non-free Translation-en
Ign http://mirrordirector.raspbian.org wheezy/rpi Translation-en_GB
Ign http://mirrordirector.raspbian.org wheezy/rpi Translation-en
Reading package lists... Done
W: Failed to fetch http://plugwash.raspian.org/wsf/dists/w ... elease.gpg Could not resolve 'plugwash.raspian.org'

W: Some index files failed to download. They have been ignored, or old ones used instead.

Am I doing something wrong?

Thanks for your help.

plugwash
Forum Moderator
Forum Moderator
Posts: 3238
Joined: Wed Dec 28, 2011 11:45 pm

Re: Compile VLC with HW acceleration - complete tutorial

Wed Oct 22, 2014 10:56 pm

Misspelling raspbian by the looks of things

BlackIceNetwork
Posts: 6
Joined: Tue Oct 07, 2014 4:39 am

Re: Compile VLC with HW acceleration - complete tutorial

Thu Oct 23, 2014 1:14 am

Thank You both Gkreidl and Plugwash. I finally have VLC running with OpenMx IL Video output, I can't thank you both enough. Now I need to start from scratch on another SD to see what steps work to replicate this setup. My .mp4 files run smooth :D

Again Thanks.

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

Re: Compile VLC with HW acceleration - complete tutorial

Thu Oct 23, 2014 7:21 am

yl1yo35m.vu5 wrote:Hi guys,

have you heard about vlc mmal support which should allow better hardware decoding?
see http://comments.gmane.org/gmane.comp.vi ... evel/95891

If anyone suceed in compiling vlc with this, please let us know here:
https://forum.videolan.org/viewtopic.php?f=13&t=122338
Thanks for the link. This looks really great. There's only one problem. The newest VLC code cannot be compiled on Raspbian Wheezy because it needs newer versions of some packages. So this is the way to go for Jessie.

Maybe with these new plugins VLC will also be able to play HD video as it seems to use the same overlay method as omxplayer. VLC with a similar efficiency as omxplayer would be a great addition to the RPi.
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

Ivan Tham
Posts: 75
Joined: Mon Jun 24, 2013 7:06 am

Re: Compile VLC with HW acceleration - complete tutorial

Fri Oct 24, 2014 3:16 pm

Can the VLC play HD videos on browser?

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

Re: Compile VLC with HW acceleration - complete tutorial

Fri Oct 24, 2014 3:24 pm

Ivan Tham wrote:Can the VLC play HD videos on browser?
No HD (well, some 720p, but no 1080p at all), and the VLC browser plugin can not use the HW acceleration as far as I know.

If web get the new MMAL plugin to work it might be more efficient, though.
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

Ivan Tham
Posts: 75
Joined: Mon Jun 24, 2013 7:06 am

Re: Compile VLC with HW acceleration - complete tutorial

Fri Oct 24, 2014 3:51 pm

gkreidl wrote:
Ivan Tham wrote:Can the VLC play HD videos on browser?
No HD (well, some 720p, but no 1080p at all), and the VLC browser plugin can not use the HW acceleration as far as I know.

If web get the new MMAL plugin to work it might be more efficient, though.
What is the difference between gstreamer and VLC MMAL?

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

Re: Compile VLC with HW acceleration - complete tutorial

Fri Oct 24, 2014 4:11 pm

Ivan Tham wrote:
gkreidl wrote:
Ivan Tham wrote:Can the VLC play HD videos on browser?
No HD (well, some 720p, but no 1080p at all), and the VLC browser plugin can not use the HW acceleration as far as I know.

If web get the new MMAL plugin to work it might be more efficient, though.
What is the difference between gstreamer and VLC MMAL?
Gstreamer and VLC (the current HW accelerated version) use both OpenMax. The new VLC plugin uses MMAL and also uses an overlay in the same way as omxplayer. Gstreamer is by far not as efficient as omxplayer and the same is true for VLC using the OpenMax plugin.
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

Ivan Tham
Posts: 75
Joined: Mon Jun 24, 2013 7:06 am

Re: Compile VLC with HW acceleration - complete tutorial

Tue Oct 28, 2014 7:42 am

Can I use the VLC MMAL with HW acceleration or gstreamer with OMX HW acceleration in Arch?

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

Re: Compile VLC with HW acceleration - complete tutorial

Tue Oct 28, 2014 7:50 am

Ivan Tham wrote:Can I use the VLC MMAL with HW acceleration or gstreamer with OMX HW acceleration in Arch?
I've no knowledge about Arch. If the Broadcom/RPi libraries (MMAL, OpenMax, GLES) are available on Arch you can try to compile a VLC version that supports it (check the configure options).
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

Ivan Tham
Posts: 75
Joined: Mon Jun 24, 2013 7:06 am

Re: Compile VLC with HW acceleration - complete tutorial

Thu Oct 30, 2014 5:34 am

gkreidl wrote:
Ivan Tham wrote:Can I use the VLC MMAL with HW acceleration or gstreamer with OMX HW acceleration in Arch?
I've no knowledge about Arch. If the Broadcom/RPi libraries (MMAL, OpenMax, GLES) are available on Arch you can try to compile a VLC version that supports it (check the configure options).
There is an alarm/gst-omx-rpi 1.2.0-2 which is a Gstreamer OpenMAX IL wrapper Plugin for Raspberry Pi.
How do I use that in midori with gstreamer1.0?

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

Re: Compile VLC with HW acceleration - complete tutorial

Thu Oct 30, 2014 8:07 am

Ivan Tham wrote: There is an alarm/gst-omx-rpi 1.2.0-2 which is a Gstreamer OpenMAX IL wrapper Plugin for Raspberry Pi.
How do I use that in midori with gstreamer1.0?
This is the wrong thread for such questions (nothing to do with VLC)
Short answer though: Midori is based on GTK-2.0 and webkit1 which has not been upgraded for gstreamer-1.0 support.
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

SamuelNel
Posts: 4
Joined: Thu Oct 30, 2014 9:51 pm

Re: Compile VLC with HW acceleration - complete tutorial

Thu Oct 30, 2014 10:06 pm

Even with this new solution for the broken dependencies, I still can't install libpostproc-dev. I always keep getting this error:

The following packages have unmet dependencies:
libpostproc-dev : Depends: libavutil-dev (= 6:0.8.13-1+rpi1) but 6:9.14-1rpi1rpi1 is to be installed
E: Unable to correct problems, you have held broken packages.


I am using a fresh install of NOOBZ_V1_3_10 (Raspbian). I've tried multiple times with a fresh install with one time doing an update and upgrade and the other time not. I've tried the vlcomx.tar.gz method with both and still no luck and have also tried:

sudo apt-get clean
sudo apt-get autoclean
sudo apt-get -f <packagename>


Any Ideas?

plugwash
Forum Moderator
Forum Moderator
Posts: 3238
Joined: Wed Dec 28, 2011 11:45 pm

Re: Compile VLC with HW acceleration - complete tutorial

Thu Oct 30, 2014 10:37 pm

did yo run apt-get update after editing sources.list? if so did it complete successfully?

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

Re: Compile VLC with HW acceleration - complete tutorial

Fri Oct 31, 2014 6:35 am

I mailed with a member of the Collabora team yesterday and they'll try to fix the dependency problem.

@SamuelNel: the "vlcomx.tar.gz method" will not solve the compile issue, but it should create a working HW accelerated VLC version, if you follow the steps exactly. I've tested it myself on a new B+ with the latest Raspbian image and some other people have also got it to work. I couldn't test it on NOOBs, but I don't see any reason why it shouldn't work there.
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: 5571
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Compile VLC with HW acceleration - complete tutorial

Fri Oct 31, 2014 6:41 am

gkreidl wrote:I mailed with a member of the Collabora team yesterday and they'll try to fix the dependency problem in the foundation image..

@SamuelNel: the "vlcomx.tar.gz method" will not solve the compile issue, but it should create a working HW accelerated VLC version, if you follow the steps exactly. I've tested it myself on a new B+ with the latest Raspbian image and some other people have also got it to work. I couldn't test it on NOOBs, but I don't see any reason why it shouldn't work there.
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”

Who is online

Users browsing this forum: epoch1970 and 11 guests