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

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

Mon Feb 19, 2018 10:56 am

what i do and compiled

Code: Select all

./configure --prefix=/usr --enable-omxil --enable-omxil-vout --enable-rpi-omxil --enable-mmal  --enable-gles2 --disable-wayland --disable-libva

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

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

Mon Feb 19, 2018 4:06 pm

cjan wrote:
Mon Feb 19, 2018 10:56 am
what i do and compiled

Code: Select all

./configure --prefix=/usr --enable-omxil --enable-omxil-vout --enable-rpi-omxil --enable-mmal  --enable-gles2 --disable-wayland --disable-libva
Thanks, I'll give it a try (the problem was in the VAAPI part).
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

allen2345k
Posts: 5
Joined: Sat Feb 17, 2018 10:01 am

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

Tue Feb 20, 2018 11:36 am

Hi,

After downloading the patch from another place, I finally get the 2.2.8 to compile. Everything is fine except the video is just overlay, can't play in full screen mode, just like Omxplayer. It seems Raspbian is not a good platform for video playing. None of the players can play videos in full screen mode.

Thanks.

McLion
Posts: 76
Joined: Fri Mar 17, 2017 1:05 pm
Location: Switzerland

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

Tue Feb 20, 2018 12:02 pm

allen2345k wrote:
Tue Feb 20, 2018 11:36 am
After downloading the patch from another place, I finally get the 2.2.8 to compile. Everything is fine except the video is just overlay, can't play in full screen mode, just like Omxplayer. It seems Raspbian is not a good platform for video playing. None of the players can play videos in full screen mode.
I have VLC 2.2.8 too and it works perfectly playing full screen. You can not set full-screen mode, you need to set the aspect ratio.

allen2345k
Posts: 5
Joined: Sat Feb 17, 2018 10:01 am

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

Tue Feb 20, 2018 1:21 pm

What I mean not in full screen mode is. For example if the movie is 1280x600. It will play the full width. But the remaining height will show the desktop screen, not black background. This is very distracting. I will appreciate is someone can help me to play in full screen mode. Thanks.

McLion
Posts: 76
Joined: Fri Mar 17, 2017 1:05 pm
Location: Switzerland

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

Tue Feb 20, 2018 1:28 pm

allen2345k wrote:
Tue Feb 20, 2018 1:21 pm
What I mean not in full screen mode is. For example if the movie is 1280x600. It will play the full width. But the remaining height will show the desktop screen, not black background. This is very distracting. I will appreciate is someone can help me to play in full screen mode. Thanks.
As said before, set the aspect ratio!
I have a similar situation because the TFT is 16:10 (1280x800) and IPTV is 1280x720. Aspect standard plays 1280x720 - with desktop visible on top and bottom - and aspect 16:10 stretches to 1280x800.

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

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

Tue Feb 20, 2018 3:28 pm

McLion wrote:
Tue Feb 20, 2018 1:28 pm
allen2345k wrote:
Tue Feb 20, 2018 1:21 pm
What I mean not in full screen mode is. For example if the movie is 1280x600. It will play the full width. But the remaining height will show the desktop screen, not black background. This is very distracting. I will appreciate is someone can help me to play in full screen mode. Thanks.
As said before, set the aspect ratio!
I have a similar situation because the TFT is 16:10 (1280x800) and IPTV is 1280x720. Aspect standard plays 1280x720 - with desktop visible on top and bottom - and aspect 16:10 stretches to 1280x800.
Stretching the video is not a good solution - everything gets distorted.
VLC doesn't have an option to blend out the background as omxplayer can do.
@McLion; If you want a player that offers what you are asking for, use either omxplayer (-b option) or use my omxplayerGUI, which does it automatically - and can switch between interface (window) mode and full screen mode any time.
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

McLion
Posts: 76
Joined: Fri Mar 17, 2017 1:05 pm
Location: Switzerland

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

Tue Feb 20, 2018 3:32 pm

gkreidl wrote:
Tue Feb 20, 2018 3:28 pm
Stretching the video is not a good solution - everything gets distorted.
VLC doesn't have an option to blend out the background as omxplayer can do.
@McLion; If you want a player that offers what you are asking for, use either omxplayer (-b option) or use my omxplayerGUI, which does it automatically - and can switch between interface (window) mode and full screen mode any time.
Set up a black screensaver - it will cover the area as long as you are not working and watching Videos.
I have used OMX and switched to VLC because OMX is extremely unstable and takes ages to start a stream playing.
OMX was my first choice because you can select the input as well as the output window which is great. However, it just does not work satisfying.

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

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

Tue Feb 20, 2018 3:42 pm

McLion wrote:
Tue Feb 20, 2018 3:32 pm
gkreidl wrote:
Tue Feb 20, 2018 3:28 pm
Stretching the video is not a good solution - everything gets distorted.
VLC doesn't have an option to blend out the background as omxplayer can do.
@McLion; If you want a player that offers what you are asking for, use either omxplayer (-b option) or use my omxplayerGUI, which does it automatically - and can switch between interface (window) mode and full screen mode any time.
Set up a black screensaver - it will cover the area as long as you are not working and watching Videos.
I have used OMX and switched to VLC because OMX is extremely unstable and takes ages to start a stream playing.
OMX was my first choice because you can select the input as well as the output window which is great. However, it just does not work satisfying.
omxplayer is not unstable at all. I've many thousand videos and it does play them all (except for very few old strange codecs). Most videos start really fast, except for some huge AVI files (but this is caused by the AVI format). It's also a bit slow accessing live TV video streams.
It's VLC which is not really stable on the RPi. I can easily make it crash.
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

McLion
Posts: 76
Joined: Fri Mar 17, 2017 1:05 pm
Location: Switzerland

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

Tue Feb 20, 2018 3:53 pm

gkreidl wrote:
Tue Feb 20, 2018 3:42 pm
It's also a bit slow accessing live TV video streams.
And that is what we are using it for in our projects. We absolutely can't live with start times of 5-10 seconds when changing channels or from off mode. In addition, the return values (i.e. by DBUS) sometimes are not reflecting the real state of OMX.
I'd love to use it instead of VLC since it has fully manageable input and output windows and it uses less resources than VLC ... however, short play start times at first, and stability as second are even more important for our customers.

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

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

Tue Feb 20, 2018 4:00 pm

McLion wrote:
Tue Feb 20, 2018 3:53 pm
gkreidl wrote:
Tue Feb 20, 2018 3:42 pm
It's also a bit slow accessing live TV video streams.
And that is what we are using it for in our projects. We absolutely can't live with start times of 5-10 seconds when changing channels or from off mode. In addition, the return values (i.e. by DBUS) sometimes are not reflecting the real state of OMX.
I'd love to use it instead of VLC since it has fully manageable input and output windows and it uses less resources than VLC ... however, short play start times at first, and stability as second are even more important for our customers.
Kodi switches faster between live TV channels than omxplayer, although it is also based on omxplayer (if you select it).
BTW, this is not caused by OMX but by ffmpeg, which is used by omxplayer to access video files and streams, demuxing them and so on.
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

McLion
Posts: 76
Joined: Fri Mar 17, 2017 1:05 pm
Location: Switzerland

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

Tue Feb 20, 2018 4:03 pm

gkreidl wrote:
Tue Feb 20, 2018 4:00 pm
Kodi switches faster between live TV channels than omxplayer, although it is also based on omxplayer (if you select it).
BTW, this is not caused by OMX but by ffmpeg, which is used by omxplayer to access video files and streams, demuxing them and so on.
VLC uses ffmpeg too, IIRC .... and is way faster :?

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

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

Tue Feb 20, 2018 4:13 pm

McLion wrote:
Tue Feb 20, 2018 4:03 pm
gkreidl wrote:
Tue Feb 20, 2018 4:00 pm
Kodi switches faster between live TV channels than omxplayer, although it is also based on omxplayer (if you select it).
BTW, this is not caused by OMX but by ffmpeg, which is used by omxplayer to access video files and streams, demuxing them and so on.
VLC uses ffmpeg too, IIRC .... and is way faster :?
Yes, it switches much faster but it does not use ffmpeg to access TS streams.
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

McLion
Posts: 76
Joined: Fri Mar 17, 2017 1:05 pm
Location: Switzerland

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

Tue Feb 20, 2018 4:15 pm

gkreidl wrote:
Tue Feb 20, 2018 4:13 pm
Yes, it switches much faster but it does not use ffmpeg to access TS streams.
OK, thanks.

albertserene
Posts: 2
Joined: Sat Feb 17, 2018 9:56 am

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

Wed Feb 21, 2018 7:50 am

How do you set the display to have black ground in OMXplayer? There are 3 major issues with omxplayGUI for me.
1. I don't know how to set the output to HDMI(as in command line version -o hdmi). So there is no sound when playing. 2. How do you set the background to black to avoid seeing the desktop?
3. It doesn't support Asian language subtitle. It display it as garbage character. VLC has no problem with that.

Thanks.

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

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

Wed Feb 21, 2018 8:35 am

albertserene wrote:
Wed Feb 21, 2018 7:50 am
How do you set the display to have black ground in OMXplayer? There are 3 major issues with omxplayGUI for me.
1. I don't know how to set the output to HDMI(as in command line version -o hdmi). So there is no sound when playing. 2. How do you set the background to black to avoid seeing the desktop?
3. It doesn't support Asian language subtitle. It display it as garbage character. VLC has no problem with that.

Thanks.
Regarding omxplayer:
Option "-b" sets a black background.
Asian language subtitle: try to select a matching font using the
--font and --font-italic options.

Regarding omxplayerGUI:
You don't have to care about a black backgroud.
If you need special omxplayer options (like -o hdmi) you can set them on the settings page. Check the manual 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

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

Regarding VLC 3.0.0

Wed Feb 21, 2018 8:38 am

I meanwhile managed to successfully compile VLC 3.0.0 (new dependencies have to be met), enabling both mmal and OMX, but neither MMAL or OMXIL output do currently 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

McLion
Posts: 76
Joined: Fri Mar 17, 2017 1:05 pm
Location: Switzerland

Re: Regarding VLC 3.0.0

Wed Feb 21, 2018 9:54 am

gkreidl wrote:
Wed Feb 21, 2018 8:38 am
I meanwhile managed to successfully compile VLC 3.0.0 (new dependencies have to be met), enabling both mmal and OMX, but neither MMAL or OMXIL output do currently work.
Somehow, good news. On the other side, if that means that it can not use the GPU, it's actually unusable.
Would you mind sharing what needed to be done - I have similar plans for next week when I get back to our RPi project.

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

Re: Regarding VLC 3.0.0

Wed Feb 21, 2018 10:54 am

McLion wrote:
Wed Feb 21, 2018 9:54 am
gkreidl wrote:
Wed Feb 21, 2018 8:38 am
I meanwhile managed to successfully compile VLC 3.0.0 (new dependencies have to be met), enabling both mmal and OMX, but neither MMAL or OMXIL output do currently work.
Somehow, good news. On the other side, if that means that it can not use the GPU, it's actually unusable.
Would you mind sharing what needed to be done - I have similar plans for next week when I get back to our RPi project.
I will run some more experiments. In the past, MMAL has never worked for me and I'll try to disable it, using OMXIL only. I'll publish the results here and also the required dependencies.
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

McLion
Posts: 76
Joined: Fri Mar 17, 2017 1:05 pm
Location: Switzerland

Re: Regarding VLC 3.0.0

Wed Feb 21, 2018 10:56 am

gkreidl wrote:
Wed Feb 21, 2018 10:54 am
I will run some more experiments. In the past, MMAL has never worked for me and I'll try to disable it, using OMXIL only. I'll publish the results here and also the required dependencies.
Eine Welle für Dich :D

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

Re: Regarding VLC 3.0.0

Fri Feb 23, 2018 6:46 am

gkreidl wrote:
Wed Feb 21, 2018 10:54 am
I'll publish the results here and also the required dependencies.
so, do we need extra dependency package install?

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

Re: Regarding VLC 3.0.0

Fri Feb 23, 2018 7:17 am

cjan wrote:
Fri Feb 23, 2018 6:46 am
gkreidl wrote:
Wed Feb 21, 2018 10:54 am
I'll publish the results here and also the required dependencies.
so, do we need extra dependency package install?
Yes. For example, the QT5 interface was missing without adding another package.
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: 588
Joined: Sun May 06, 2012 12:00 am

Re: Regarding VLC 3.0.0

Fri Feb 23, 2018 7:27 am

gkreidl wrote:
Fri Feb 23, 2018 7:17 am
cjan wrote:
Fri Feb 23, 2018 6:46 am
gkreidl wrote:
Wed Feb 21, 2018 10:54 am
I'll publish the results here and also the required dependencies.
so, do we need extra dependency package install?
Yes. For example, the QT5 interface was missing without adding another package.
why raspbian-lxde need QT5?
extra dependency needed by mmal & omxil?

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

Re: Regarding VLC 3.0.0

Fri Feb 23, 2018 8:25 am

cjan wrote:
Fri Feb 23, 2018 7:27 am
gkreidl wrote:
Fri Feb 23, 2018 7:17 am
cjan wrote:
Fri Feb 23, 2018 6:46 am

so, do we need extra dependency package install?
Yes. For example, the QT5 interface was missing without adding another package.
why raspbian-lxde need QT5?
extra dependency needed by mmal & omxil?
The VLC GUI is built with QT5.
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

pi_v
Posts: 2
Joined: Fri Feb 23, 2018 9:42 am

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

Fri Feb 23, 2018 9:45 am

I tried to install vlc v2.2.8 step by step according to the guide on the first page, but during the configure process i have the following errors:

Makefile:2220: recipe for target 'libqt4_plugin_la-qt4.lo' failed
make[7]: *** [libqt4_plugin_la-qt4.lo] Error 1
make[7]: *** Waiting for unfinished jobs....
Makefile:2234: recipe for target 'libqt4_plugin_la-main_interface.lo' failed
make[7]: *** [libqt4_plugin_la-main_interface.lo] Error 1
Makefile:2227: recipe for target 'libqt4_plugin_la-menus.lo' failed
make[7]: *** [libqt4_plugin_la-menus.lo] Error 1
make[7]: Leaving directory '/home/pi/vlc-2.2.8/modules/gui/qt4'
Makefile:1592: recipe for target 'all' failed
make[6]: *** [all] Error 2

Has anyone experienced such problems? I'm on Raspbian Stretch

Return to “Raspbian”

Who is online

Users browsing this forum: Google [Bot] and 13 guests