Micha1982
Posts: 261
Joined: Wed Oct 03, 2012 11:18 am

Re: Compile VLC with HW acceleration - complete tutorial

Tue Feb 17, 2015 2:58 pm

Ah ok, I thought it already is Jessie since my last postings here are 2/3 months ago...yeah, waiting ~2 months maybe would be the best solution, also in view of some (?) other problems I have...maybe I have already a Pi 2 then...nice thing, seems to be much better/faster for playing around...but thats another subject.

Hopefully Vlc will have hw-acceleration then a bit easier........
Alles, was schiefgehen kann, wird auch schiefgehen.

RobertF
Posts: 7
Joined: Mon Feb 23, 2015 9:16 am

Re: Compile VLC with HW acceleration - complete tutorial

Mon Feb 23, 2015 9:22 am

I'm running Raspian/Wheezy and understand that the only way to build now is to jump to Jessie but I can't do that for time being.

I tried the workaround method linked in the OP and but VLC doesn't seem to be using the GPU rendering (can't play 480p buck bunny).

Does the alternative copy script installation still work for people?

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

Re: Compile VLC with HW acceleration - complete tutorial

Mon Feb 23, 2015 11:32 am

RobertF wrote:I'm running Raspian/Wheezy and understand that the only way to build now is to jump to Jessie but I can't do that for time being.

I tried the workaround method linked in the OP and but VLC doesn't seem to be using the GPU rendering (can't play 480p buck bunny).

Does the alternative copy script installation still work for people?
It does. But look at the end of the first post for the settings VLC needs.

And I hope you didn't run the remove script after installing the new stuff (I know some poeple did).
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

RobertF
Posts: 7
Joined: Mon Feb 23, 2015 9:16 am

Re: Compile VLC with HW acceleration - complete tutorial

Mon Feb 23, 2015 1:14 pm

I didn't run the remove script, although I did learn that one the hard way on my first go :)

I've gone as far as running the overwrite script and then did indeed go back to the OP instructions to choose the ALSA/OMXIL settings in VLCs audio/video preferences.

I then try to run a live 640x480 camera stream with the following:

Code: Select all

cvlc http://camera.ip/stream.mjpeg
....
[0x7ef5e0] dummy interface: using the dummy interface module...
[0x7ef100] main vout display error: Failed to set fullscreen
[0x7ef100] main vout display error: Failed to change zoom
[0x7ef100] main vout display error: Failed to set on top
[0xaf919cb8] freetype spu text error: Breaking unbreakable line
A static image appears after this which I suspect is due to the GPU not being utilised?

Also tried to specify the omx vout option:

Code: Select all

cvlc -vout moxil_vout "http://camera.ip/stream.mjpeg"
VLC media player 2.2.0-git Weatherwax (revision 2.1.0-git-1090-g4c4b954)
[0x17e68f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/video_output/libdirectfb_plugin.so
[0x17e68f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/video_output/libaa_plugin.so
[0x17e68f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/meta_engine/libtaglib_plugin.so
[0x17e68f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/stream_out/libstream_out_select_plugin.so
[0x17e68f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/misc/libosd_parser_plugin.so
[0x17e68f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/misc/libxscreensaver_plugin.so
[0x17e68f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/misc/libinhibit_plugin.so[0x17e68f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/misc/libmemcpy_plugin.so
[0x17e68f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/misc/libgnutls_plugin.so
[0x17e68f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/stream_filter/libstream_filter_httplive_plugin.so
[0x17e68f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/stream_filter/libstream_filter_dash_plugin.so
[0x17e68f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/stream_filter/libstream_filter_record_plugin.so
[0x17e68f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/audio_output/libaout_file_plugin.so
[0x17e68f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/audio_output/liboss_plugin.so
[0x17e68f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/mux/libmux_ogg_plugin.so
^C[0x17e68f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/audio_mixer/libfloat32_mixer_plugin.so
[0x17e68f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/audio_mixer/libfixed32_mixer_plugin.so
[0x17e68f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/notify/libtelepathy_plugin.so
[0x17e68f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/demux/libmkv_plugin.so
[0x17e68f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/demux/liblive555_plugin.so
^C[0x17e68f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/demux/libdirac_plugin.so
[0x17e68f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/demux/libogg_plugin.so
^C[0x17e68f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/demux/libsid_plugin.so
^C[0x17e68f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/control/liblirc_plugin.so
[0x17e68f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/control/libglobalhotkeys_plugin.so
[0x17e68f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/access/libpvr_plugin.so
[0x17e68f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/access/libaccess_shm_plugin.so
[0x17e68f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/access/libaccess_ftp_plugin.so
[0x17e68f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/access/libstream_filter_rar_plugin.so
[0x17e68f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/access/libaccess_http_plugin.so
[0x17e68f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/access/libaccess_udp_plugin.so
^C[0x17e68f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/access/libaccess_attachment_plugin.so
[0x17e68f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/access/libaccess_dv_plugin.so
[0x17e68f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/access/libaccess_tcp_plugin.so
[0x17e68f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/access/libaccess_realrtsp_plugin.so
[0x17e68f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/access/libaccess_rar_plugin.so
^C[0x17e68f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/access/libaccess_smb_plugin.so
[0x17e68f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/access/libaccess_oss_plugin.so
[0x17e68f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/access/libaccess_imem_plugin.so
^C[0x17e68f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/access/libaccess_vdr_plugin.so
[0x17e68f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/access/libvcdx_plugin.so
[0x17e68f8] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/access/libgnomevfs_plugin.so' (libgnomevfs-2.so.0: cannot open shared object file: No such file or directory)
[0x17e68f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/access/libaccess_avio_plugin.so
^C[0x17e68f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/audio_filter/libconverter_fixed_plugin.so
^C^C^C[0x17e68f8] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/video_filter/libopencv_wrapper_plugin.so' (libopencv_core.so.2.3: cannot open shared object file: No such file or directory)
[0x17e68f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/video_filter/libswscale_plugin.so
[0x17e68f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/video_filter/libpanoramix_plugin.so
[0x17e68f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/video_filter/libwall_plugin.so
^C[0x17e68f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/video_filter/libosdmenu_plugin.so
[0x17e68f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/video_filter/libchain_plugin.so
[0x17e68f8] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/video_filter/libopencv_example_plugin.so' (libopencv_core.so.2.3: cannot open shared object file: No such file or directory)
[0x17e68f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/video_filter/libclone_plugin.so
^C^C^C^C[0x17e68f8] main libvlc warning: cannot find plug-in entry point in /usr/lib/vlc/plugins/gui/libfbosd_plugin.so
vlc: unknown option or missing mandatory argument `-o'
Try `vlc --help' for more information.
^C^[email protected] ~ $ ^C
[email protected] ~ $ ^C

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

Re: Compile VLC with HW acceleration - complete tutorial

Mon Feb 23, 2015 1:47 pm

Try using the desktop version first for some video files or 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

RobertF
Posts: 7
Joined: Mon Feb 23, 2015 9:16 am

Re: Compile VLC with HW acceleration - complete tutorial

Mon Feb 23, 2015 2:17 pm

I've switched to x desktop and am dropping my live streams to focus on using a more commonly available and standard setup for this discussion so I'll be using buck bunny avi file at 480p which, judging by others posts, should be no problem for a hardware accelerated vlc installation to handle.

Playing the avi file via vlc on the desktop results in hearing the audio start but no video, just a black overlayed screen.

User avatar
expandables
Posts: 654
Joined: Fri Jun 27, 2014 7:34 pm
Location: Neverland with Michael Jackson

Re: Compile VLC with HW acceleration - complete tutorial

Mon Feb 23, 2015 2:37 pm

RobertF wrote:I've switched to x desktop and am dropping my live streams to focus on using a more commonly available and standard setup for this discussion so I'll be using buck bunny avi file at 480p which, judging by others posts, should be no problem for a hardware accelerated vlc installation to handle.

Playing the avi file via vlc on the desktop results in hearing the audio start but no video, just a black overlayed screen.
After starting VLC for the first time, change the following options:
Settings, simple, Audio: make sure, ALSA and bcm2835 are selected
Settings, simple, Video, output: select "OpenMAX IL video output"
Settings, all, Audio: select "deactivate" for audio resampler (important for speed!)
By thinking like an engineer you can create a raspberry pi.
Michael Jackson enthusiast.
I got the PI model B, B+ and PI 2 model B.
When will I get the A? I don't know.

RobertF
Posts: 7
Joined: Mon Feb 23, 2015 9:16 am

Re: Compile VLC with HW acceleration - complete tutorial

Mon Feb 23, 2015 2:59 pm

Done, done and done... Audio Resampler was set to 'disabled' which I presume is the same as setting 'deactivate'.

I did do a sudo apt-get update before running sudo apt-get install vlc (prior to running overwrite script). Would this cause an issue?

User avatar
expandables
Posts: 654
Joined: Fri Jun 27, 2014 7:34 pm
Location: Neverland with Michael Jackson

Re: Compile VLC with HW acceleration - complete tutorial

Mon Feb 23, 2015 3:10 pm

Go back to the settings and see if they were saved. I had a problem that the setting will not save if i did all at once. I think you will have to save each setting one at a time. :mrgreen:
By thinking like an engineer you can create a raspberry pi.
Michael Jackson enthusiast.
I got the PI model B, B+ and PI 2 model B.
When will I get the A? I don't know.

RobertF
Posts: 7
Joined: Mon Feb 23, 2015 9:16 am

Re: Compile VLC with HW acceleration - complete tutorial

Mon Feb 23, 2015 3:29 pm

Unfortunately all settings have been persistent and correct.

I've currently got a 128/128 arm/gpu ram split which should be fine right?

User avatar
eriktheitalian
Posts: 358
Joined: Thu Feb 19, 2015 1:03 pm

Re: Compile VLC with HW acceleration - complete tutorial

Mon Feb 23, 2015 3:51 pm

Firstly, thanks for this important tutorial.

Im waiting hw accelerated vlc ( like vlc-openmax ) on raspian repository ( if possible ).

Can i use pi2 multicore speedy compiling advantage with "make -j4". Is it effective ?
I cant using enough English language. My writings can be wrong grammer.$
"in micro$oft we not trust"

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

Re: Compile VLC with HW acceleration - complete tutorial

Mon Feb 23, 2015 3:56 pm

eriktheitalian wrote:Firstly, thanks for this important tutorial.

Im waiting hw accelerated vlc ( like vlc-openmax ) on raspian repository ( if possible ).

Can i use pi2 multicore speedy compiling advantage with "make -j4". Is it effective ?
This will be available in Jessie, I hope.

Theres no chance of compiling a recent VLC source on Wheezy because of missing dependencies (version too old).
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

RobertF
Posts: 7
Joined: Mon Feb 23, 2015 9:16 am

Re: Compile VLC with HW acceleration - complete tutorial

Mon Feb 23, 2015 4:10 pm

Before continuing in my efforts to get vlc with hardware support working, can someone please confirm if you can resize and reposition a hardware accelerated video? I'm going to need to place a 320x240 video in the bottom right of the screen and there's no point continuing if I can't. I'm reading some posts that say vlc/omxil places an overlay on the screen that can't be resized?

OMXPlayer has no problem resizing and repositioning a video, does vlc/omxil not have this ability?

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

Re: Compile VLC with HW acceleration - complete tutorial

Mon Feb 23, 2015 4:25 pm

RobertF wrote:Before continuing in my efforts to get vlc with hardware support working, can someone please confirm if you can resize and reposition a hardware accelerated video? I'm going to need to place a 320x240 video in the bottom right of the screen and there's no point continuing if I can't. I'm reading some posts that say vlc/omxil places an overlay on the screen that can't be resized?

OMXPlayer has no problem resizing and repositioning a video, does vlc/omxil not have this ability?
No.
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

RobertF
Posts: 7
Joined: Mon Feb 23, 2015 9:16 am

Re: Compile VLC with HW acceleration - complete tutorial

Mon Feb 23, 2015 4:40 pm

Well then, thanks for all the info... its back to the drawing board :)

User avatar
eriktheitalian
Posts: 358
Joined: Thu Feb 19, 2015 1:03 pm

Re: Compile VLC with HW acceleration - complete tutorial

Tue Feb 24, 2015 2:35 pm

i'm fallowing tutorial. I'm using pi2 with raspbian.

Firstly, configure option reported " --disable-mux_ogg" not known option.

Last section of my incompleted compile:

Makefile:14482: recipe for target 'access/dtv/libdtv_plugin_la-linux.lo' failed
make[4]: *** [access/dtv/libdtv_plugin_la-linux.lo] Error 1
make[4]: Leaving directory '/home/pi/Genel/vlc/modules'
Makefile:17056: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/home/pi/Genel/vlc/modules'
Makefile:7264: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/home/pi/Genel/vlc/modules'
Makefile:2001: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/pi/Genel/vlc'
Makefile:1885: recipe for target 'all' failed
I cant using enough English language. My writings can be wrong grammer.$
"in micro$oft we not trust"

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

Re: Compile VLC with HW acceleration - complete tutorial

Tue Feb 24, 2015 3:27 pm

eriktheitalian wrote:i'm fallowing tutorial. I'm using pi2 with raspbian.

Firstly, configure option reported " --disable-mux_ogg" not known option.

Last section of my incompleted compile:

Makefile:14482: recipe for target 'access/dtv/libdtv_plugin_la-linux.lo' failed
make[4]: *** [access/dtv/libdtv_plugin_la-linux.lo] Error 1
make[4]: Leaving directory '/home/pi/Genel/vlc/modules'
Makefile:17056: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/home/pi/Genel/vlc/modules'
Makefile:7264: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/home/pi/Genel/vlc/modules'
Makefile:2001: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/pi/Genel/vlc'
Makefile:1885: recipe for target 'all' failed
No, you didn't follow he tutorial. Compiling a recent VLC from source is not possible any more because of missing dependencies. The version I used was from October, 2013. Even this one cannot be compiled any more because of a broken dev-package.

The only solution I can provide for now is to follow this posting:
http://www.raspberrypi.org/forums/viewt ... 99#p629999
Last edited by gkreidl on Tue Feb 24, 2015 5:33 pm, 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

User avatar
eriktheitalian
Posts: 358
Joined: Thu Feb 19, 2015 1:03 pm

Re: Compile VLC with HW acceleration - complete tutorial

Tue Feb 24, 2015 4:39 pm

gkreidl wrote:
eriktheitalian wrote:i'm fallowing tutorial. I'm using pi2 with raspbian.

Firstly, configure option reported " --disable-mux_ogg" not known option.

Last section of my incompleted compile:

Makefile:14482: recipe for target 'access/dtv/libdtv_plugin_la-linux.lo' failed
make[4]: *** [access/dtv/libdtv_plugin_la-linux.lo] Error 1
make[4]: Leaving directory '/home/pi/Genel/vlc/modules'
Makefile:17056: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/home/pi/Genel/vlc/modules'
Makefile:7264: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/home/pi/Genel/vlc/modules'
Makefile:2001: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/pi/Genel/vlc'
Makefile:1885: recipe for target 'all' failed
No, you didn't follow he tutorial. Compiling a recent VLC from source is not possible any more because of missing dependencies. The version I used was from October, 2013. Even this one cannot be compiled any more because of a broken dev-package.

The only solution U can provide for now is to follow this posting:
http://www.raspberrypi.org/forums/viewt ... 99#p629999
I'm reading last vlc 2.1.0 changelog. There is something about professional cards openmax capabilites. I'm know there is chosen version for vlc, not last. Now. Thanks for explanation.
I cant using enough English language. My writings can be wrong grammer.$
"in micro$oft we not trust"

gunther82
Posts: 5
Joined: Wed Mar 11, 2015 10:33 am

Re: Compile VLC with HW acceleration - complete tutorial

Thu Mar 12, 2015 11:43 am

do you know if this version of VLC works with vlcj? vlcj is a java library that enables streaming the video from the camera to a remote host within a java program.

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

Re: Compile VLC with HW acceleration - complete tutorial

Thu Mar 12, 2015 11:59 am

gunther82 wrote:do you know if this version of VLC works with vlcj? vlcj is a java library that enables streaming the video from the camera to a remote host within a java program.
No idea. HW acceleration only works for decoding and displaying video.
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

gunther82
Posts: 5
Joined: Wed Mar 11, 2015 10:33 am

Re: Compile VLC with HW acceleration - complete tutorial

Thu Mar 12, 2015 1:58 pm

gkreidl wrote: No idea. HW acceleration only works for decoding and displaying video.
so, if the basic version works, this one should too.
thanks!

Boogaloo
Posts: 2
Joined: Tue Mar 17, 2015 5:32 pm

Re: Compile VLC with HW acceleration - complete tutorial

Wed Mar 18, 2015 12:20 am

I am a Linux noob and a RPi noob as well.. Just got my RPi2 set up the other day...

I followed the directions in this thread and successfully got VLC working on my Pi2. It works rather well and plays full screen video with sync'd audio just fine, however it does it with an overlay. In other words I can see the video playing perfectly, but I there are no visible video controls or any remnants of the VLC player GUI once the video starts to play. The only way I can find to get out, is to reboot the Pi2 manually by pulling power and rebooting.

I installed VLC over Raspian through Noobs.... if that makes any sense?

P.S. the video I played (multiple times) was a 1.8 GB file in AVI format from a USB stick....

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

Re: Compile VLC with HW acceleration - complete tutorial

Wed Mar 18, 2015 12:36 am

Boogaloo wrote:I am a Linux noob and a RPi noob as well.. Just got my RPi2 set up the other day...

I followed the directions in this thread and successfully got VLC working on my Pi2. It works rather well and plays full screen video with sync'd audio just fine, however it does it with an overlay. In other words I can see the video playing perfectly, but I there are no visible video controls or any remnants of the VLC player GUI once the video starts to play. The only way I can find to get out, is to reboot the Pi2 manually by pulling power and rebooting.

I installed VLC over Raspian through Noobs.... if that makes any sense?

P.S. the video I played (multiple times) was a 1.8 GB file in AVI format from a USB stick....
You can use the keyboard to control the video. Pressing "s", for example, stops the video, use space bar for play(pause, +,- enhance or reduce speed, CTRL+ jumps a minute ahead etc.

Don't ever pull the power plug!
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

sumwale
Posts: 1
Joined: Wed Mar 18, 2015 10:22 am

Re: Compile VLC with HW acceleration - complete tutorial

Wed Mar 18, 2015 8:43 pm

SamuelNel wrote:Hi all,

I finally fixed the broken dependencies thanks to PlugWash and got everything to compile correctly. I followed every step now twice and when i try and run a video via the terminal I always keep getting this error.

[017007d0] chain filter error: Too high level of recursion (2)
[01700078] core filter error: Failed to create video filter2
[017007d0] chain filter error: Too high level of recursion (2)
[01700078] core filter error: Failed to create video filter2
[017007d0] chain filter error: Too high level of recursion (2)
[01700078] core filter error: Failed to create video filter2
[016ff5d8] core filter error: Failed to create video filter2
[016f62d8] core vout display error: Failed to create video filter2
[016f62d8] core vout display error: Failed to adapt decoder format to display
Segmentation fault

Anyone know how to fix this?
I was having the same issue and finally figured it has to do with broken MMAL codec plugin that gets built by default on Raspberry Pi (due to libraspberrypi-dev package). I suppose disabling it at runtime in vlc should be possible and might work but have not tried it and instead disabled it completely during build using additional "--disable-mmal" option and then omxil output worked fine (else nothing was working not even the x11 output).

I have been using the debian jessie repositories on my raspberry pi2 which have been working very well so didn't have any dependencies problems to begin with. So used the vlc source from debian repo, and copied its "debian" build directory to create native debs instead of the procedure given in this tutorial. I had to make some changes to those debian build files (rules, install files, symbols file) to adapt to git version and the changed flags as mentioned in this tutorial. I can provide that if someone is interested.

In the latest vlc git, the omxil works quite well without lags on my pi2. One more tip to significantly improve the performance: use omxil as preferred decoder instead of avcodec which has otherwise higher priority. In vlc preferences "Input / Codecs" go to All settings, then in "Video codecs -> Preferred decoders list", set it to "omxil".

The GUI does not work very well because the OpenMAX output becomes the topmost layer whatever you do, so the GUI menus remain hidden and somewhat awkward to work with. Still the play/pause/stop and other buttons on the bottom should be usable. The keyboard hotkeys work perfectly well with OSD which is what I use in any case (which is way better than omxplayer).

Boogaloo
Posts: 2
Joined: Tue Mar 17, 2015 5:32 pm

Re: Compile VLC with HW acceleration - complete tutorial

Thu Mar 19, 2015 5:33 pm

gkreidl wrote:
Boogaloo wrote:I am a Linux noob and a RPi noob as well.. Just got my RPi2 set up the other day...

I followed the directions in this thread and successfully got VLC working on my Pi2. It works rather well and plays full screen video with sync'd audio just fine, however it does it with an overlay. In other words I can see the video playing perfectly, but I there are no visible video controls or any remnants of the VLC player GUI once the video starts to play. The only way I can find to get out, is to reboot the Pi2 manually by pulling power and rebooting.

I installed VLC over Raspian through Noobs.... if that makes any sense?

P.S. the video I played (multiple times) was a 1.8 GB file in AVI format from a USB stick....
You can use the keyboard to control the video. Pressing "s", for example, stops the video, use space bar for play(pause, +,- enhance or reduce speed, CTRL+ jumps a minute ahead etc.

Don't ever pull the power plug!
Ok thank you.. That explains how to have minimal control over the video itself, but what happens when I want to exit the video and get back to the the desktop in Raspian? How do you exit or quit VLC ?

Return to “Raspbian”