<TaraC>
Hi! I'm currently looking at vdpau gles interop on the 3.4 kernel; I've seen that there's two main ways to achieve that, the most popular seems to be Mosterta's implementation but i've noticed that Rellla has also implemented this? I've looked at the irc logs and forum threads but information is scarce. What's the main difference between those two implementations and which one would you recommend if i wanted to write a little game? Also is there example
<TaraC>
Sorry for the wall of text lol
<TaraC>
oh and for context i'm using a bpi m1+
<jernej>
TaraC: Those implementations are long deprecated and I'm not aware anyone actively using them. Why don't you use mainline kernel with mainline solutions?
<TaraC>
I am aware of those problems. I have settled on the old kernel due to its stability, its feature set and performance; I did some experiments and there's a few issues i have with mainline as it currently is
<TaraC>
it's a bit of a silly project but i wanted to make my own retro-styled console for myself and a few friends for a sort of friends-only game jam
warpme has quit []
<TaraC>
my main issues with mainline were how composite video doesn't work, the performance of lima and the how the VE doesn't seem to support a lot of codecs
<TaraC>
the VE driver*
<jernej>
lima should work decently, but it depends what you're doing
<jernej>
which codec do you miss?
<TaraC>
lima got a really disappointing score in glmark2 (around 60)
<jernej>
that's fps?
<TaraC>
something like 63 points iirc
<TaraC>
and i know it's just a synthetic benchmark but seeing a rotating cube stuttering was a bit of a turn-off
<gamiee>
TaraC: if it was stuttering, something is bad
<gamiee>
I am using Lima on Banana Pi M2+ kmscube or glxgears works nice and smoothly. My app uses GLES and it works also pretty nice and smooth.
<gamiee>
and what codecs you need? It supports h.264 and h.265, (and mpeg2 as far as I remember?)
<gamiee>
and TVOUT is possible via jernej's patch
<jernej>
gamiee: it's m1+ which is A20
<jernej>
so it should have working CVBS out of the box
<jernej>
oh, it just needs to be enabled in DT
<jernej>
other pieces are already there
<TaraC>
oh that's neat
<TaraC>
would it also support vga and svideo?
<jernej>
mali is also clocked at highest frequency, so either there is really suboptimal implementation or display rendering issue
<jernej>
offline tests would be better to check that
<jernej>
TaraC: only CVBS afaik
<TaraC>
I tested lima with the most recent armbian image for context
<jernej>
and again, which codec you miss on mainline?
<TaraC>
on a 720p hdmi screen
<TaraC>
so long as i have mpeg2 and h264 i should be good ^^
<jernej>
that's already supported, along VP8
<TaraC>
oh nice
<TaraC>
is there zero copy interop for GLES?
<jernej>
but there is a trick to it - either you use gstreamer or patched ffmpeg, due to special api
<jernej>
you can import it via dmabuf
<jernej>
but if you plan to directly render it, without fancy postprocessing via GLES, it's quicker and less demanding do render it directly with DRM planes
<TaraC>
oh no, the goal would be to have video textures in the games
<jernej>
different videos I imagine?
<TaraC>
but i think it would be easier if someone could help me with the old vdpau/gles interop though; i've already got everything i needed working on the old kernel
<TaraC>
maybe, that'll be up to my friends haha
<jernej>
I'm not sure either old or new driver would be able to successfully decoded more than one video stream at the same time due to HW buffers in SRAM region.
warpme has joined #linux-sunxi
<gamiee>
as jernej says
<gamiee>
and using old api is... pain
<jernej>
TaraC: I can only help you with mainline, as I'm actively working in HW video decoding and rendering on kernel and userspace side (Kodi)
<jernej>
I quickly abandon vendor kernel
<TaraC>
that's okay thank you for your help!
<jernej>
and A20 is not ideal in this regard, IMO first good AW SoC for that is H3
<jernej>
IIRC A20 has low memory bandwidth (or was that A10? or both?).
<gamiee>
both
<gamiee>
and yes, H3 is still good for some stuff
<jernej>
yeah, for basic video playback H3 is still good, that's why I still support it in LibreELEC
<TaraC>
the h3 looks pretty interesting, but i liked how the a20 has a native sata interface and svideo and vga outputs
<gamiee>
even for simple graphical apps it is perfect.
<gamiee>
Only thing I don't like about H3 is terrible thermal and cpu freq management
<jernej>
yeah, H6 is no different in this regard. I wonder if this is intentional in a sense to make it cheaper.
<TaraC>
essentially i'm trying to build a small "retro" console for a gamejam with a few friends, each unit would come packaged like an old devkit with an SDK i wrote myself on a cd and a few video cables for their display of choice. the goal is to have something that looks and feels like it came from an obscure video game company from 2004
<TaraC>
i spent a few months comparing SoCs and github repos and the A20 with the old kernel seems like the perfect fit for what i need
<TaraC>
i'm pretty much all done rn with the only missing feature from the kernel being gles/vdpau interop, after that i was going to move to writing the sdk
<TaraC>
and the console's OS
<gamiee>
In this case, maybe A64 or H6 will be better
<TaraC>
i see that rellla is in this channel; do you know if they're still active on here? or if i can reach them somewhere else?
<gamiee>
probably H6
<jernej>
rellla is still here, but he switched to mainline based solutions some time ago
<jernej>
gamiee: A64 doesn't have TV out and while H6 has it, there is no mainline driver for it
<TaraC>
gamiee: the h6 and A64 feel a bit too powerful for the project
<TaraC>
oh yeah i need at least composite out for this
<TaraC>
jernej: do you know where i can reach rellla?
<jernej>
apart from IRC, no
<TaraC>
right i'll send a private message
<gamiee>
then h3
<TaraC>
thanks a lot for the help! ^^
<gamiee>
it have TVOUT
warpme has quit []
TaraC has left #linux-sunxi [#linux-sunxi]
TaraC has joined #linux-sunxi
bauen1 has quit [Ping timeout: 480 seconds]
warpme has joined #linux-sunxi
warpme has quit []
JohnDoe_71Rus has quit []
bauen1 has joined #linux-sunxi
warpme has joined #linux-sunxi
ftg has joined #linux-sunxi
warpme has quit []
warpme has joined #linux-sunxi
apritzel has joined #linux-sunxi
hentai has quit [Remote host closed the connection]
warpme has quit []
hentai has joined #linux-sunxi
hentai has quit [Max SendQ exceeded]
hentai has joined #linux-sunxi
karlp has quit [Quit: WeeChat 3.6]
vagrantc has quit [Quit: leaving]
grming has quit [Ping timeout: 480 seconds]
grming has joined #linux-sunxi
karlp has joined #linux-sunxi
kkk has quit [Remote host closed the connection]
grming has quit [Ping timeout: 480 seconds]
evgeny_boger has quit [Ping timeout: 480 seconds]
vagrantc has joined #linux-sunxi
ftg has quit [Read error: Connection reset by peer]