pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Hardware decoding in ffmpeg3 on RPI.

On Tue, 3 Oct 2017, Thomas Klausner wrote:

On Wed, Sep 27, 2017 at 09:26:12AM +0100, trebol wrote:
Hello, something like this in adds support for hardware decoding.

# Raspberry Pi support
.if !empty(PKG_OPTIONS:Mrpi)
.include "../../misc/raspberrypi-userland/"
#CFLAGS+=		"-L${PREFIX}/lib"
SUBST_CLASSES+=		vc		pre-configure	Fixing path to VideoCore libraries.		configure		-e 's;-isystem/opt/vc;-I${PREFIX};g'		-e 's;/opt/vc;${PREFIX};g'
CONFIGURE_ARGS+=	--enable-omx-rpi --enable-mmal --disable-xvmc

Thanks, I've added this.

I can't test it though, so someone with an rpi should do that :)

Well... it's broken.

ffplay3 codec:v:1 h264_mmal video.mp4

And you'll have a wonderful 'translation fault' crash.

Xine has mmal support too, but is also broken. mpv has mmal support, but it needs other GL libraries appart of the ones from raspberrypi-userland to compile and it was a mess... and I was already giving up. The only application I was able to use with hardware acceleration is omxplayer, and it is just complete unstable.

If someone is using NetBSD current in a RPI (I have a RPI2 v1.1) and is able to compile, for example, SDL2 with a working rpi driver, I'd love to hear about it.


Home | Main Index | Thread Index | Old Index