hardware accelerated video (debian)

Started by denjell, August 20, 2013, 12:38:12 PM

Previous topic - Next topic

denjell

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

denjell

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.

junetec

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

haze

#3
This HOWTO 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 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!

rzr

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