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

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

Mon Aug 06, 2018 5:52 am

mrdone wrote:
Sun Aug 05, 2018 4:59 am
Thank you for this tutorial, the compilation process went smoothly. I have two questions. First, can you recommend some good pages to read about compilation process of these days. For example, what bootstrap is actually doing. I realised that my knowledge is a bit outdated :?

Second, when I try to play matroska HD videos it plays it ok, with some slight lags. However, when I try to rewind a video the image freezes while sound suggests that it was actually rewinded. The player is still responsive to keys but image doesn't change. Do you experience the same behaviour or something is wrong on my side? I have set outputs as you suggested and allocated 128Mb to GPU. I tried to play it with omxplayer and everything was fine.
"bootstrap" is a script. You can open and read it (heavy stuff).

I also have problems with some HD MKV files.

Usually I prefer omxplayer(GUI).
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

redbr64
Posts: 10
Joined: Fri Jan 12, 2018 11:42 pm

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

Tue Aug 07, 2018 5:40 pm

It seems I forgot to thank you for your help. thanks @gkreidl !

alexkapoios
Posts: 3
Joined: Mon Sep 17, 2018 4:47 pm

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

Tue Sep 18, 2018 5:42 pm

Hello :D
I'm beginner and I need your help please.
I installed vlc from guide here. Also, I hange the following options: Settings, simple, Audio: make sure, ALSA and bcm2835 are selected, Settings, simple, Video, output: select "OpenMAX IL video output". I have little problem. When I play video, I don't see toolbar elements (Play, Stop, Pause.....).

How to fix that?

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

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

Tue Sep 18, 2018 9:41 pm

alexkapoios wrote:
Tue Sep 18, 2018 5:42 pm
Hello :D
I'm beginner and I need your help please.
I installed vlc from guide here. Also, I hange the following options: Settings, simple, Audio: make sure, ALSA and bcm2835 are selected, Settings, simple, Video, output: select "OpenMAX IL video output". I have little problem. When I play video, I don't see toolbar elements (Play, Stop, Pause.....).

How to fix that?
You can't. Video is displayed in a screen overlay like with omxplayer. You have to use keyboard commands,
You might try my omxplayerGUI (part of kweb suite), which can play the video (overlay) inside a window area and lets you use the control elements.
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

mcca69
Posts: 1
Joined: Sun Sep 23, 2018 8:05 pm

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

Sun Sep 23, 2018 8:06 pm

Works like a charm on Raspberry Pi 3. Thank You!

andes
Posts: 13
Joined: Tue Oct 09, 2018 3:41 am

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

Tue Oct 09, 2018 3:47 am

Hi all, I am just a newbie with Raspberry. I've just compiled VLC on my Raspberry Pi 3B+ following the tutorial in page 1. Unfortunately all the fullHD videos I use to test are still broken in VLC. Is there any advice for me to fix it please? Thanks a lot.

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

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

Tue Oct 09, 2018 10:26 am

andes wrote:
Tue Oct 09, 2018 3:47 am
Hi all, I am just a newbie with Raspberry. I've just compiled VLC on my Raspberry Pi 3B+ following the tutorial in page 1. Unfortunately all the fullHD videos I use to test are still broken in VLC. Is there any advice for me to fix it please? Thanks a lot.
What does "broken" mean? Do other (not full HD) videos play in overlay mode?
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

andes
Posts: 13
Joined: Tue Oct 09, 2018 3:41 am

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

Sat Oct 13, 2018 1:23 am

gkreidl wrote:
Tue Oct 09, 2018 10:26 am
andes wrote:
Tue Oct 09, 2018 3:47 am
Hi all, I am just a newbie with Raspberry. I've just compiled VLC on my Raspberry Pi 3B+ following the tutorial in page 1. Unfortunately all the fullHD videos I use to test are still broken in VLC. Is there any advice for me to fix it please? Thanks a lot.
What does "broken" mean? Do other (not full HD) videos play in overlay mode?
After increasing GPU memory to 512Mb, I am now able to play .MP4 videos of full HD resolution and framerate 25fps. But there is still issue with playing .MKV files as shown in the picture below. How can I fix it? Should I increase GPU memory more than 512Mb?
Image

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

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

Sat Oct 13, 2018 1:45 am

andes wrote:
Sat Oct 13, 2018 1:23 am


After increasing GPU memory to 512Mb, I am now able to play .MP4 videos of full HD resolution and framerate 25fps. But there is still issue with playing .MKV files as shown in the picture below. How can I fix it? Should I increase GPU memory more than 512Mb?
Image
128 MB should be enough. 512 MB is far too much (missing ARM memory).
Check the MKV files with mediainfo - or try to play them with omxplayer. Perhaps they are out of specs. If omxplayer can play them, VLC should also 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

andes
Posts: 13
Joined: Tue Oct 09, 2018 3:41 am

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

Sat Oct 13, 2018 7:57 am

gkreidl wrote:
Sat Oct 13, 2018 1:45 am
andes wrote:
Sat Oct 13, 2018 1:23 am


After increasing GPU memory to 512Mb, I am now able to play .MP4 videos of full HD resolution and framerate 25fps. But there is still issue with playing .MKV files as shown in the picture below. How can I fix it? Should I increase GPU memory more than 512Mb?
Image
128 MB should be enough. 512 MB is far too much (missing ARM memory).
Check the MKV files with mediainfo - or try to play them with omxplayer. Perhaps they are out of specs. If omxplayer can play them, VLC should also work.
Thanks. The codec is VP9, that's why I can't play them.

cedrickzepp
Posts: 5
Joined: Fri Oct 03, 2014 10:00 pm

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

Fri Oct 19, 2018 6:35 am

Code: Select all

codec/avcodec/video.c: In function ‘ffmpeg_InitCodec’:
codec/avcodec/video.c:877:24: error: ‘FF_INPUT_BUFFER_PADDING_SIZE’ undeclared (first use in this function)
                        FF_INPUT_BUFFER_PADDING_SIZE );
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
Makefile:7738: recipe for target 'codec/avcodec/libavcodec_plugin_la-video.lo' failed
make[4]: *** [codec/avcodec/libavcodec_plugin_la-video.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory '/home/cedrickzepp/vlc-2.2.8/modules'
Makefile:9655: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/home/cedrickzepp/vlc-2.2.8/modules'
Makefile:4529: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/home/cedrickzepp/vlc-2.2.8/modules'
Makefile:2267: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/cedrickzepp/vlc-2.2.8'
Makefile:2152: recipe for target 'all' failed
make: *** [all] Error 2
Where will the error be found?

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

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

Fri Oct 19, 2018 8:28 am

cedrickzepp wrote:
Fri Oct 19, 2018 6:35 am

Code: Select all

codec/avcodec/video.c: In function ‘ffmpeg_InitCodec’:
codec/avcodec/video.c:877:24: error: ‘FF_INPUT_BUFFER_PADDING_SIZE’ undeclared (first use in this function)
                        FF_INPUT_BUFFER_PADDING_SIZE );
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
Makefile:7738: recipe for target 'codec/avcodec/libavcodec_plugin_la-video.lo' failed
make[4]: *** [codec/avcodec/libavcodec_plugin_la-video.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory '/home/cedrickzepp/vlc-2.2.8/modules'
Makefile:9655: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/home/cedrickzepp/vlc-2.2.8/modules'
Makefile:4529: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/home/cedrickzepp/vlc-2.2.8/modules'
Makefile:2267: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/cedrickzepp/vlc-2.2.8'
Makefile:2152: recipe for target 'all' failed
make: *** [all] Error 2
Where will the error be found?
I've never seen that error. Did you apply the patch?
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

ERO
Posts: 1
Joined: Thu Nov 01, 2018 9:43 am

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

Thu Nov 01, 2018 9:55 am

Thank you very much for this, VLC is now running well on my Raspberry Pi 3 B+!

For some reason that I can't quite understand (no errors visible during the whole process) my first attempt partially failed - launching VLC didn't create any X Window, but I could invoke it from a terminal and it could play videos (without hardware acceleration).

I uninstalled everything, used the script as suggested by amarahjiwa to re-run the download, patching and compilation-installation process and VLC now creates a window where I have access to the settings.

Great stuff. Thank you for sharing.

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

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

Thu Nov 01, 2018 11:21 am

ERO wrote:
Thu Nov 01, 2018 9:55 am
Thank you very much for this, VLC is now running well on my Raspberry Pi 3 B+!

For some reason that I can't quite understand (no errors visible during the whole process) my first attempt partially failed - launching VLC didn't create any X Window, but I could invoke it from a terminal and it could play videos (without hardware acceleration).

I uninstalled everything, used the script as suggested by amarahjiwa to re-run the download, patching and compilation-installation process and VLC now creates a window where I have access to the settings.

Great stuff. Thank you for sharing.
Perhaps you missed something during the manual process.
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: 619
Joined: Sun May 06, 2012 12:00 am

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

Fri Nov 16, 2018 3:00 am

2018-11-13.mg
* VLC media player with VideoCore hardware acceleration included in image

what is this?

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

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

Fri Nov 16, 2018 1:24 pm

cjan wrote:
Fri Nov 16, 2018 3:00 am
2018-11-13.mg
* VLC media player with VideoCore hardware acceleration included in image

what is this?
ok, vlc packages update to 3.0.3-1-0+deb9u1+rpt1.
use: MMAL x11 splitter for rasberry Pi, done.

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5164
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

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

Fri Nov 16, 2018 1:40 pm

cjan wrote:
Fri Nov 16, 2018 3:00 am
2018-11-13.mg
* VLC media player with VideoCore hardware acceleration included in image

what is this?
Raspbian now includes an even more accelerated VLC.
This uses mmal for video decode and the new hvs component for resize, yuv->rgb conversion and composition of subtitles.

Let us know if there are any improvements or regressions compared to the VLC version that has been used here.

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

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

Fri Nov 16, 2018 5:08 pm

dom wrote:
Fri Nov 16, 2018 1:40 pm
cjan wrote:
Fri Nov 16, 2018 3:00 am
2018-11-13.mg
* VLC media player with VideoCore hardware acceleration included in image

what is this?
Raspbian now includes an even more accelerated VLC.
This uses mmal for video decode and the new hvs component for resize, yuv->rgb conversion and composition of subtitles.

Let us know if there are any improvements or regressions compared to the VLC version that has been used here.
Great work!!!!

I have tested a lot today and it really works well for video. But there is a problem with audio files: they need a lot of time to start (tested mp3 and flac)

I've also modified my youtube-dl-server (part of my kweb suite) a bit so that it (optionally) works perfectly with VLC now. It will be be published as a hotfix in a short while. And I'll update the OP of this thread to point to the new 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

LTolledo
Posts: 736
Joined: Sat Mar 17, 2018 7:29 am

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

Sat Nov 17, 2018 12:30 am

dom wrote:
Fri Nov 16, 2018 1:40 pm
cjan wrote:
Fri Nov 16, 2018 3:00 am
2018-11-13.mg
* VLC media player with VideoCore hardware acceleration included in image

what is this?
Raspbian now includes an even more accelerated VLC.
This uses mmal for video decode and the new hvs component for resize, yuv->rgb conversion and composition of subtitles.

Let us know if there are any improvements or regressions compared to the VLC version that has been used here.
I've started a topic on a particular problem I faced using the repository available VLC (using apt install vlc ) on a recently updated and upgraded RPi3B/RPI3B+. The link is below.
viewtopic.php?f=28&t=227092
"Don't come to me with 'issues' for I don't know how to deal with those
Come to me with 'problems' and I'll help you find solutions"

Some people be like:
"Help me! Am drowning! But dont you dare touch me nor come near me!"

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

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

Sun Nov 18, 2018 5:25 am

can not play webm format, gpu_mem=192.

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

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

Sun Nov 18, 2018 7:51 am

cjan wrote:
Sun Nov 18, 2018 5:25 am
can not play webm format, gpu_mem=192.
Check the codec being used. VP8 should be supported if you have enabled the additional codecs, but not VP9 AFAIK.
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: 619
Joined: Sun May 06, 2012 12:00 am

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

Sun Nov 18, 2018 8:41 am

gkreidl wrote:
Sun Nov 18, 2018 7:51 am
cjan wrote:
Sun Nov 18, 2018 5:25 am
can not play webm format, gpu_mem=192.
Check the codec being used. VP8 should be supported if you have enabled the additional codecs, but not VP9 AFAIK.
which package should install?

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

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

Sun Nov 18, 2018 9:36 am

cjan wrote:
Sun Nov 18, 2018 8:41 am
gkreidl wrote:
Sun Nov 18, 2018 7:51 am
cjan wrote:
Sun Nov 18, 2018 5:25 am
can not play webm format, gpu_mem=192.
Check the codec being used. VP8 should be supported if you have enabled the additional codecs, but not VP9 AFAIK.
which package should install?
start_file=start_x.elf
fixup_file=fixup_x.dat

in /boot/config.txt
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: 619
Joined: Sun May 06, 2012 12:00 am

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

Sun Nov 18, 2018 10:02 am

gkreidl wrote:
Sun Nov 18, 2018 9:36 am
start_file=start_x.elf
fixup_file=fixup_x.dat

in /boot/config.txt
no go.

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

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

Sun Nov 18, 2018 10:05 am

cjan wrote:
Sun Nov 18, 2018 10:02 am
gkreidl wrote:
Sun Nov 18, 2018 9:36 am
start_file=start_x.elf
fixup_file=fixup_x.dat

in /boot/config.txt
no go.
Did you reboot?
Check the file with mediainfo to get the codec being used.
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”