User avatar
rpdom
Posts: 12507
Joined: Sun May 06, 2012 5:17 am
Location: Essex, UK

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

Sat Jan 13, 2018 8:29 am

For this sort of thing I would use omxplayer with h264 video and the --loop option. I've had a video of that form running continuously for a few months on a Pi (I'd switched the screen off and forgotten it was running) with no problems at all.

(It was a 4 hour long video of a log fire that I downloaded and was using to provide ambience for Christmas a couple of years ago. It ran fine on a Pi 1B)

moh86
Posts: 10
Joined: Sun Dec 17, 2017 11:14 am

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

Sat Jan 20, 2018 1:09 am

Hello, I have a problem. Today I've got my brand new RPi3 and Samsung Evo Plus 64GB microSD card. After installing a fresh Raspbian Stretch on the SD Card I came to that topic and followed all the steps. So far so good. But if I play an example Video which came with Raspbian "/opt/vc/src/hello_pi/hello_video/test.h264" I see the Video like 1fps. Very choppy/jerky.

Hardware is new and software is fresh installed. I havent overclocked or something similiar.

Ive tried 128MB on GPU already, its a little bit better but not watchable at all.
Can anybody help me?

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

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

Sat Jan 20, 2018 7:16 am

moh86 wrote:
Sat Jan 20, 2018 1:09 am
Hello, I have a problem. Today I've got my brand new RPi3 and Samsung Evo Plus 64GB microSD card. After installing a fresh Raspbian Stretch on the SD Card I came to that topic and followed all the steps. So far so good. But if I play an example Video which came with Raspbian "/opt/vc/src/hello_pi/hello_video/test.h264" I see the Video like 1fps. Very choppy/jerky.

Hardware is new and software is fresh installed. I havent overclocked or something similiar.

Ive tried 128MB on GPU already, its a little bit better but not watchable at all.
Can anybody help me?
Get some "real videos" for testing. VLC doesn't like this raw h264 video (no container).

BTW, VLC has some advantages but it is not as efficient as omxplayer.
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

moh86
Posts: 10
Joined: Sun Dec 17, 2017 11:14 am

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

Sat Jan 20, 2018 9:14 am

gkreidl wrote:
Sat Jan 20, 2018 7:16 am
moh86 wrote:
Sat Jan 20, 2018 1:09 am
Hello, I have a problem. Today I've got my brand new RPi3 and Samsung Evo Plus 64GB microSD card. After installing a fresh Raspbian Stretch on the SD Card I came to that topic and followed all the steps. So far so good. But if I play an example Video which came with Raspbian "/opt/vc/src/hello_pi/hello_video/test.h264" I see the Video like 1fps. Very choppy/jerky.

Hardware is new and software is fresh installed. I havent overclocked or something similiar.

Ive tried 128MB on GPU already, its a little bit better but not watchable at all.
Can anybody help me?
Get some "real videos" for testing. VLC doesn't like this raw h264 video (no container).

BTW, VLC has some advantages but it is not as efficient as omxplayer.
I‘ve tried a 1080p full movie as well. There were more fps but it was still not watchable.

What can I do? Do you have a video file which I can test and compare my result with yours?

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

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

Sat Jan 20, 2018 9:49 am

moh86 wrote:
Sat Jan 20, 2018 9:14 am
I‘ve tried a 1080p full movie as well. There were more fps but it was still not watchable.

What can I do? Do you have a video file which I can test and compare my result with yours?
try 720p.

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

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

Sat Jan 20, 2018 10:42 am

With the GPU running a 500MHz omxplayer can play up to 1080p60. This doesn't work with with VLC. But all of my 1080i50 recorded (or live) TV streams work well with VLC.
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

moh86
Posts: 10
Joined: Sun Dec 17, 2017 11:14 am

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

Sat Jan 20, 2018 11:19 am

cjan wrote:
Sat Jan 20, 2018 9:49 am
moh86 wrote:
Sat Jan 20, 2018 9:14 am
I‘ve tried a 1080p full movie as well. There were more fps but it was still not watchable.

What can I do? Do you have a video file which I can test and compare my result with yours?
try 720p.
Ok right now I‘m watching a 720p movie. It runs very fluent even with 64GB GPU. Sadly I have still problems with 1080p.

frmkaiser
Posts: 4
Joined: Thu Jan 25, 2018 1:12 am

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

Thu Jan 25, 2018 1:19 am

Hello,

I followed the guide but I am still having issues. I am using the standard Big Buck Bunny 1080p 30fps video http://distribution.bbb3d.renderfarming ... normal.mp4 which works in omxplayer.

Here is the console log:

Code: Select all

cvlc bbb_sunflower_1080p_30fps_normal.mp4 -v
VLC media player 2.2.8 Weatherwax (revision 2.2.7-14-g3cc1d8cba9)
[013522a0] dummy interface: using the dummy interface module...
[73e00db0] mp4 stream warning: unknown box type btrt (incompletely loaded)
[73e00f28] mp4 demux warning: STTS table of 1 entries
[73e00f28] mp4 demux warning: CTTS table of 16212 entries
[73e00f28] mp4 demux warning: STTS table of 1 entries
[73e00f28] mp4 demux warning: STTS table of 1 entries
[0135e110] alsa audio output warning: device cannot be paused
[6e600648] core video output warning: Not enough direct buffers, using system memory
[6e600648] core video output warning: picture is too late to be displayed (missing 80 ms)
[color=#FF0000][01395cb0] core vout display error: Failed to set fullscreen
[01395cb0] core vout display error: Failed to change zoom
[01395cb0] core vout display error: Failed to set on top[/color]
[6e600648] core video output warning: picture is too late to be displayed (missing 77 ms)
[6e600648] core video output warning: picture is too late to be displayed (missing 76 ms)
[6e600648] core video output warning: picture is too late to be displayed (missing 69 ms)
Any thoughts? Can my issue be reproduced by others?

Thank you

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

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

Thu Jan 25, 2018 5:21 am

frmkaiser wrote:
Thu Jan 25, 2018 1:19 am
Hello,

I followed the guide but I am still having issues. I am using the standard Big Buck Bunny 1080p 30fps video http://distribution.bbb3d.renderfarming ... normal.mp4 which works in omxplayer.

Here is the console log:

Code: Select all

cvlc bbb_sunflower_1080p_30fps_normal.mp4 -v
VLC media player 2.2.8 Weatherwax (revision 2.2.7-14-g3cc1d8cba9)
[013522a0] dummy interface: using the dummy interface module...
[73e00db0] mp4 stream warning: unknown box type btrt (incompletely loaded)
[73e00f28] mp4 demux warning: STTS table of 1 entries
[73e00f28] mp4 demux warning: CTTS table of 16212 entries
[73e00f28] mp4 demux warning: STTS table of 1 entries
[73e00f28] mp4 demux warning: STTS table of 1 entries
[0135e110] alsa audio output warning: device cannot be paused
[6e600648] core video output warning: Not enough direct buffers, using system memory
[6e600648] core video output warning: picture is too late to be displayed (missing 80 ms)
[color=#FF0000][01395cb0] core vout display error: Failed to set fullscreen
[01395cb0] core vout display error: Failed to change zoom
[01395cb0] core vout display error: Failed to set on top[/color]
[6e600648] core video output warning: picture is too late to be displayed (missing 77 ms)
[6e600648] core video output warning: picture is too late to be displayed (missing 76 ms)
[6e600648] core video output warning: picture is too late to be displayed (missing 69 ms)
Any thoughts? Can my issue be reproduced by others?

Thank you
Yes, but it is not an "issue". VLC is simply less efficient than omxplayer (that's one of the reasons why I wrote omxplayerGUI).
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: 554
Joined: Sun May 06, 2012 12:00 am

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

Sat Feb 03, 2018 10:29 pm

now official ffmpeg-mmal supported, do we need rebuild vlc? any benefit?

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

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

Sun Feb 04, 2018 4:54 am

cjan wrote:
Sat Feb 03, 2018 10:29 pm
now official ffmpeg-mmal supported, do we need rebuild vlc? any benefit?
You cannot really compare a full sized, feature-rich media player like VLC with ffmeg (basically a library and a few command line tools).
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: 554
Joined: Sun May 06, 2012 12:00 am

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

Sun Feb 04, 2018 7:01 am

gkreidl wrote:
Sun Feb 04, 2018 4:54 am
cjan wrote:
Sat Feb 03, 2018 10:29 pm
now official ffmpeg-mmal supported, do we need rebuild vlc? any benefit?
You cannot really compare a full sized, feature-rich media player like VLC with ffmeg (basically a library and a few command line tools).
rebuild with --enable-mmal options, but mmal-vout OK omxil-vout not OK test some mp4 files.
does mmal in conflict with omxil ?

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

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

Sun Feb 04, 2018 9:21 am

cjan wrote:
Sun Feb 04, 2018 7:01 am
gkreidl wrote:
Sun Feb 04, 2018 4:54 am
cjan wrote:
Sat Feb 03, 2018 10:29 pm
now official ffmpeg-mmal supported, do we need rebuild vlc? any benefit?
You cannot really compare a full sized, feature-rich media player like VLC with ffmeg (basically a library and a few command line tools).
rebuild with --enable-mmal options, but mmal-vout OK omxil-vout not OK test some mp4 files.
does mmal in conflict with omxil ?
I never got the mmal version to work and so i have always used omxil and disabled mmal.
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: 554
Joined: Sun May 06, 2012 12:00 am

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

Fri Feb 09, 2018 7:32 am

vlc-3.0 released, no more ffmpeg-3 patches needed.

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

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

Fri Feb 09, 2018 7:43 am

cjan wrote:
Fri Feb 09, 2018 7:32 am
vlc-3.0 released, no more ffmpeg-3 patches needed.
Thanks for the information. I'll test it as soon as I find the time and then I will update the OP.
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: 61
Joined: Fri Mar 17, 2017 1:05 pm
Location: Switzerland

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

Fri Feb 09, 2018 8:35 am

cjan wrote:
Fri Feb 09, 2018 7:32 am
vlc-3.0 released, no more ffmpeg-3 patches needed.
Do we still have to compile it by ourselves to get HW acceleration or will the version from the Raspbian repo include GPU acceleration?

runboy93
Posts: 331
Joined: Tue Feb 28, 2017 1:17 pm
Location: Finland
Contact: Website

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

Fri Feb 09, 2018 5:37 pm

McLion wrote:
Fri Feb 09, 2018 8:35 am
Do we still have to compile it by ourselves to get HW acceleration or will the version from the Raspbian repo include GPU acceleration?
I'm pretty sure we still need compile it to get HW acceleration, I'm going try it later as I get more time.
Indeed the 3.0.x branch will contain the last releases running on:
- Windows XP, Vista, and the servers equivalent of those Windows versions
- macOS 10.7, 10.8 & 10.9, iOS 7 & 8
- Android 2.x, 3.x, 4.0.x & 4.1.x
- Compilers before gcc 5.0 and clang 3.4, or equivalent

ksharindam
Posts: 50
Joined: Sat Jan 09, 2016 4:16 pm

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

Sat Feb 10, 2018 2:27 am

McLion wrote:
Fri Feb 09, 2018 8:35 am
Do we still have to compile it by ourselves to get HW acceleration or will the version from the Raspbian repo include GPU acceleration?
I hope VLC in raspbian repo will be HW Accl supported within one month.

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

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

Sat Feb 10, 2018 6:45 am

ksharindam wrote:
Sat Feb 10, 2018 2:27 am
McLion wrote:
Fri Feb 09, 2018 8:35 am
Do we still have to compile it by ourselves to get HW acceleration or will the version from the Raspbian repo include GPU acceleration?
I hope VLC in raspbian repo will be HW Accl supported within one month.
What makes you think so?
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

ksharindam
Posts: 50
Joined: Sat Jan 09, 2016 4:16 pm

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

Sat Feb 10, 2018 7:05 am

gkreidl wrote:
Sat Feb 10, 2018 6:45 am
What makes you think so?
Because, previously I have sent a patch to enable HW accl in ffmpeg. You can see that they have added my patch.

Now I have sent a patch to enable HW accl in VLC. It may take time to get my message, but then I hope they will add my patch.

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

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

Sat Feb 10, 2018 7:19 am

ksharindam wrote:
Sat Feb 10, 2018 7:05 am
gkreidl wrote:
Sat Feb 10, 2018 6:45 am
What makes you think so?
Because, previously I have sent a patch to enable HW accl in ffmpeg. You can see that they have added my patch.

Now I have sent a patch to enable HW accl in VLC. It may take time to get my message, but then I hope they will add my patch.
In the past it was Raspbian policy not to add RPi specific code or patches. Packages specifically compiled for RPi are only in the Foundation archive, which is added "on top" of Raspbian. And in fact, ffmpeg is now in the Foundation archive.
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

ksharindam
Posts: 50
Joined: Sat Jan 09, 2016 4:16 pm

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

Sat Feb 10, 2018 7:52 am

To add the patch , at first they added ffmpeg in RPi Foundation repo. Then added the patch.

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

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

Mon Feb 12, 2018 7:14 am

Changes between 2.2.8 and 3.0.0:
* Important improvements for the MMAL decoder and output for rPI and rPI2

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

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

Mon Feb 19, 2018 6:07 am

Hi,

The installation doesn't work for me. I think it is because:
wget http://www.linuxfromscratch.org/patches ... g3-1.patch
The file is no longer there. It returns a 404 file not found error.

Can you revised the link or revised the entire guide using VLC 3.0.0? I am new to Raspbian and eager to make movie playing works with my Pi3.

Thank you very much.

gkreidl
Posts: 5591
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 10:22 am

albertserene wrote:
Mon Feb 19, 2018 6:07 am
Hi,

The installation doesn't work for me. I think it is because:
wget http://www.linuxfromscratch.org/patches ... g3-1.patch
The file is no longer there. It returns a 404 file not found error.

Can you revised the link or revised the entire guide using VLC 3.0.0? I am new to Raspbian and eager to make movie playing works with my Pi3.

Thank you very much.
I could not compile VLC 3.0. Compilation stops with a number of errors and I have found no way so far to disable the stuff that doesn't 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

Return to “Raspbian”

Who is online

Users browsing this forum: Bing [Bot] and 26 guests