Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => A20 => Topic started by: denjell on August 20, 2013, 12:38:12 PM

Title: hardware accelerated video (debian)
Post by: denjell on August 20, 2013, 12:38:12 PM
i spent the bulk of yesterday building and recompiling to get a hardware-accelerated frame-buffer playback working without X, and although i had some success, i was watching videos as slideshows instead of 25fps.

here is my fazit:
VLC > broken as packaged, won't build according to http://linux-sunxi.org/VLC with cedarX
mplayer > not the slowest, but still useless.
gstreamer 1.0 (using > https://github.com/hglm/gst-fbdev2-plugins) slower than mplayer
ffplay > didn't even bother

most theoretically promising is the sunixfbsink from gst-fbdev2-plugins:
gst-launch-1.0 playbin uri=file:///home/media/test_720p.mp4 video-sink="sunxifbsink full-screen=true graphics-mode=true pan-does-vsync=true overlay-format=Y444" --gst-plugin-path /usr/local/lib/gstreamer-1.0 >output

but it is not using the acceleration.

anyone have a vetted workflow?
thanks
Title: Re: hardware accelerated video (debian)
Post by: denjell on August 20, 2013, 02:43:04 PM
is mali even integrated in build 2?

root@A20:/# lsmod
Module                  Size  Used by
sw_ahci_platform        3151  0
libahci                17798  1 sw_ahci_platform
libata                134101  2 libahci,sw_ahci_platform
sunxi_ts               17557  0

root@A20:/# modprobe mali
FATAL: Module mali not found.
Title: Re: hardware accelerated video (debian)
Post by: junetec on September 03, 2013, 01:44:49 PM
I'm searching too the way to play decent videos with the A20.
At the moment I use mplayer but,
It's better gst-launch-1.0 playbin ??

You have some intruccions to install in A20 gst-launch?

I need to play it in debian, but In the other hand I dont understand why the same videos if I play in the A20 Android play perfectly.
If Android it's a "derivate or sub-producte" of linux why it plays better these videos?

regards,

Enric
Quote from: denjell on August 20, 2013, 12:38:12 PM
i spent the bulk of yesterday building and recompiling to get a hardware-accelerated frame-buffer playback working without X, and although i had some success, i was watching videos as slideshows instead of 25fps.

here is my fazit:
VLC > broken as packaged, won't build according to http://linux-sunxi.org/VLC with cedarX
mplayer > not the slowest, but still useless.
gstreamer 1.0 (using > https://github.com/hglm/gst-fbdev2-plugins) slower than mplayer
ffplay > didn't even bother

most theoretically promising is the sunixfbsink from gst-fbdev2-plugins:
gst-launch-1.0 playbin uri=file:///home/media/test_720p.mp4 video-sink="sunxifbsink full-screen=true graphics-mode=true pan-does-vsync=true overlay-format=Y444" --gst-plugin-path /usr/local/lib/gstreamer-1.0 >output

but it is not using the acceleration.

anyone have a vetted workflow?
thanks
Title: Re: hardware accelerated video (debian)
Post by: haze on March 25, 2015, 07:03:05 PM
This HOWTO (http://forum.lemaker.org/thread-10992-1-1-.html) saved me a lot of time and nerves for use GStreamer1.0 with hardware acceleration on A20 OLinuXino Micro.
I took newest official release 10 (https://www.olimex.com/wiki/images/b/b4/A20_OLinuxino_Micro_debian_34_90_release_10.torrent) and followed according to the instructions.
I'm playing webcam stream
gst-launch-1.0 rtspsrc location=rtsp://192.168.0.123:554/mpeg4 latency=115 ! rtph264depay ! vaapiparse_h264 ! vaapidecode ! vaapisink fullscreen=true
It's working perfectly!
Title: Re: hardware accelerated video (debian)
Post by: rzr on August 03, 2015, 06:12:52 PM
Arent those built files published into some repo to ease usage of gstreamer with hw acceleration on A20 ?

If no I'd like to help on that