Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
VLC on Raspberry Pi 2 with Hardware Acceleration
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM
View previous topic :: View next topic  
Author Message
dinominant
Tux's lil' helper
Tux's lil' helper


Joined: 27 Oct 2006
Posts: 102

PostPosted: Fri Aug 07, 2015 5:27 am    Post subject: VLC on Raspberry Pi 2 with Hardware Acceleration Reply with quote

I've got a working KDE with sound and VLC installed on my raspberry pi 2, but I don't have hardware acceleration yet. I've installed VLC with these use flags:

Code:
rpi2 ~ # emerge -pv vlc

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ~] media-video/vlc-2.2.1:0/5-8::gentoo  USE="X a52 alsa avcodec avformat cdda cddb dbus directfb dts dvbpsi dvd encode faad fdk ffmpeg flac gcrypt jpeg kde libass libcaca libnotify libsamplerate live lua matroska modplug mp3 mpeg ncurses neon ogg omxil opengl opus png qt4 rdp rtsp samba sdl sdl-image shout speex svg swscale taglib theora truetype twolame udev v4l vcdx vnc vorbis wma-fixed x265 xcb xml xv zeroconf -aalib (-altivec) -atmo (-audioqueue) -bidi (-bluray) (-chromaprint) -dc1394 -debug (-directx) (-dvb) (-dxva2) (-fluidsynth) -fontconfig -gme -gnome -gnutls -growl -httpd (-ieee1394) -jack -kate -libav (-libtar) -libtiger -linsys (-lirc) (-macosx-dialog-provider) (-macosx-eyetv) (-macosx-qtkit) (-macosx-quartztext) (-media-library) (-mtp) (-musepack) (-opencv) -optimisememory -postproc (-projectm) -pulseaudio -qt5 -run-as-root (-schroedinger) -sftp (-sid) -skins {-test} -tremor (-upnp) (-vaapi) (-vdpau) -vlm (-vpx) (-x264) (-zvbi)" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB


I have also changed the video output in vlc to "OpenMAX IL video output" but it still seems the video is being decoded by the cpu.

How do I enable accelerated video?
Back to top
View user's profile Send private message
Leio
Developer
Developer


Joined: 27 Feb 2003
Posts: 494
Location: Estonia

PostPosted: Fri Aug 28, 2015 5:03 am    Post subject: Reply with quote

At least in the 2.1 series you would have to pass --enable-rpi-omxil - USE=omxil probably passes --enable-omxil, but rpi stack isn't generic enough (i.e there's no good X GL integration unless playing with the new VC4 mesa drivers, so everything needs their own rpi specific initialization sequence) - it seems to be the case with OMX as well, which seems logical as there are many RPi specifics in the gstreamer stack for this as well (with which I'm more intimately familiar). Probably related to dispmanx usage and the likes. So you'll need to find or make an ebuild that passes that instead or as well (not sure how it wants it). Maybe the arm overlay or some other overlay out there already has something like this. Additionally stuff like this ought to enter main tree as well imho - maybe I can help with that in the future, but currently my RPis are far away from me.
I found this by running "ebuild <ebuild file> prepare" on vlc and then going to the prepared location in my PORTAGE_TMPDIR and running ./configure --help |less to see the options easily. The specific needs and dependencies can probably be found by reading configure.ac source file, which might require some autotools knowledge.
_________________
GNOME team lead; GStreamer; MIPS/ARM64
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum