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

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

Sun Nov 18, 2018 10:15 am

gkreidl wrote:
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.
sorry, its VP9.
maybe is ffmpeg too old or someyhing did not enabled?
in Alarm ffmpeg-mmal & mpv-rpi can play without start_file=start_x.elf fixup_file=fixup_x.dat.

gkreidl
Posts: 6042
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:25 am

cjan wrote:
Sun Nov 18, 2018 10:15 am
gkreidl wrote:
Sun Nov 18, 2018 10:05 am
cjan wrote:
Sun Nov 18, 2018 10:02 am

no go.
Did you reboot?
Check the file with mediainfo to get the codec being used.
sorry, its VP9.
maybe is ffmpeg too old or someyhing did not enabled?
in Alarm ffmpeg-mmal & mpv-rpi can play without start_file=start_x.elf fixup_file=fixup_x.dat.
Software codec, I suppose.
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: 719
Joined: Sun May 06, 2012 12:00 am

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

Sun Nov 18, 2018 10:40 am

gkreidl wrote:
Sun Nov 18, 2018 10:25 am
cjan wrote:
Sun Nov 18, 2018 10:15 am
gkreidl wrote:
Sun Nov 18, 2018 10:05 am

Did you reboot?
Check the file with mediainfo to get the codec being used.
sorry, its VP9.
maybe is ffmpeg too old or someyhing did not enabled?
in Alarm ffmpeg-mmal & mpv-rpi can play without start_file=start_x.elf fixup_file=fixup_x.dat.
Software codec, I suppose.
kodi-17 can not play while kodi-18 can.
so, thinking is ffmpeg issue.

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

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

Sun Nov 18, 2018 6:38 pm

gkreidl wrote:
Fri Nov 16, 2018 5:08 pm
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)
Is this a general problem with vlc on pi, or is this an issue purely in the new accelerated version included in raspbian?

MartinLaclaustra
Posts: 14
Joined: Sun Dec 18, 2016 8:45 pm

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

Sun Nov 18, 2018 8:01 pm

dom wrote:
Fri Nov 16, 2018 1:40 pm
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.
@dom thank you for paying attention to VLC. Would it be possible to include in the repository version also the "OpenMAX IL video output" module that @gkreidl has been kindly working on for years now? That option has proved to work well for years and it should be kept available.

Full screen performance of the "OpenMAX IL video output" available in this thread is better, and it also allows software decoding of MPEG2 using the VLC software routines and relying on hardware acceleration for rendering. The repository version completely hampers that software decoding.

@gkreidl Thank you for all your work in this area. Please do not abandon your version until the "official" version in the repositories provides full funtionallity.

Martin

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5856
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

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

Sun Nov 18, 2018 8:51 pm

If there is something you would like in the repo version of VLC, send me a patch or tell me the appropriate configure options to pass and we can look into it.

Edit: Also it would be good to a have a description of what advantages it offers over what's already enabled.

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

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

Mon Nov 19, 2018 1:49 am

I have started a new topic to discuss the HW accelerated VLC 3.0 version from the repository. This should should not be continued in this thread, please: viewtopic.php?f=66&t=227185

@dom and MartinLaclaustra : I've answered to your posts in the new thread.
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

MikeOffenbach
Posts: 2
Joined: Wed Dec 21, 2016 6:18 am
Contact: Skype

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

Mon Dec 24, 2018 4:18 am

Thank you very much for your tutorial.

A pleasure to conclude that everything was working as in your description.
'make' took 45 minutes, 'make install' another 15.
I am using a pi 2 with 4.14.79-v7+, Stretch lite, kde-desktop.
It is configured to use the openGL driver by setting dtoverlay=vc4-fkms-v3d in /boot/config.txt.
In case of using that driver one needs to verify that the entry
  • gpu-mem=xxx is commented out in /boot/config.txt.
  • all entries in /etc/dphys-swapfile except CONF_SWAPFILE=/var/swap are commented out
In my case VLC works with video is set to 'auto', it even runs in a window.
You might add a hint to set auto update on hold (to prevent disappointments next morning :D)
see https://askubuntu.com/questions/18654/h ... ic-package

By using a wlan connection via my cellphone (~500 kB/s) I can play video-streams from anywhere. When using a browser these streams are frequently choppy, with VLC all is smooth!

cheers

Return to “Raspbian”