ChanServ changed the topic of #linux-sunxi to: Allwinner/sunxi development - Did you try looking at our wiki? https://linux-sunxi.org - Don't ask to ask. Just ask and wait for an answer! - This channel is logged at https://oftc.irclog.whitequark.org/linux-sunxi
arti has joined #linux-sunxi
apritzel_ has quit [Ping timeout: 480 seconds]
cnxsoft has joined #linux-sunxi
ftg has quit [Ping timeout: 480 seconds]
cmeerw[m] has joined #linux-sunxi
JohnDoe_71Rus has joined #linux-sunxi
mehdix has joined #linux-sunxi
apritzel_ has joined #linux-sunxi
hlauer has joined #linux-sunxi
gsz has joined #linux-sunxi
apritzel_ has quit [Ping timeout: 480 seconds]
hlauer has quit [Read error: Connection reset by peer]
Daanct12 has joined #linux-sunxi
apritzel_ has joined #linux-sunxi
Danct12 has quit [Ping timeout: 480 seconds]
apritzel_ has quit [Ping timeout: 480 seconds]
gsz has quit [Ping timeout: 480 seconds]
apritzel_ has joined #linux-sunxi
t4h4[m] has joined #linux-sunxi
apritzel_ has quit [Ping timeout: 480 seconds]
apritzel has joined #linux-sunxi
gsz has joined #linux-sunxi
gsz has quit [Ping timeout: 480 seconds]
mripard_ has quit []
mripard has joined #linux-sunxi
prefixcactus has joined #linux-sunxi
hlauer has joined #linux-sunxi
JohnDoe_71Rus has quit []
aggi_ has joined #linux-sunxi
aggi has quit [Ping timeout: 480 seconds]
Daanct12 has quit [Remote host closed the connection]
aggi_ has left #linux-sunxi [#linux-sunxi]
aggi has joined #linux-sunxi
JohnDoe_71Rus has joined #linux-sunxi
apritzel_ has joined #linux-sunxi
Danct12 has joined #linux-sunxi
gsz has joined #linux-sunxi
apritzel_ has quit [Ping timeout: 480 seconds]
evgeny_boger has quit [Ping timeout: 480 seconds]
<blathijs> jernej: ndufresne: With your suggestions, I managed to get H264 hw decoding work. The decoding is now superfast, which is nice. I'm still struggling with the NV12 format though. It seems kmssink supports rendering NV12 according to drm_info and debug output, but only on plane 0, which produces no output for me (I have to explicitly pass a plane-id for planes 1/2/3 to get any HDMI
<blathijs> output). Does that ring a bell maybe?
<ndufresne> blathijs: yes, you can set a plane property to fix that, the "overlay" is in fact an underlay
<ndufresne> so its there, but under the opaque fbcon
<ndufresne> give me a sec
<blathijs> Right, that's exactly the thought that was forming in my head just now :-)
<blathijs> Thanks :-)
<ndufresne> On most HX board, I think you can change the z order like this kmssink plane-properties=s,zpos=1
<blathijs> Cool, let me try that
<blathijs> I also see that plane1 has an FB_ID set according to drm_info, so it indeed seems that that plane is used by the fb
<ndufresne> Works for me on Tritium/H3
<ndufresne> by default, kmssink looks for an overlay, and will use that, its a bit of a strange behaviour, but kmssink is a bit of a test thing for now
<blathijs> Yeah, that worked! (with zpos=2, the primary plane already had zpos=1 according to drm_info)
<ndufresne> cool cool
<ndufresne> which chip do you run on for my record ?
<blathijs> Ah, that was another question I had, how are these defaults determined. I do still wonder: why is this "overlay" not above the primary by default (which I guess is drm/kernel decided, right?)
<blathijs> H3
<blathijs> orange pi PC
<ndufresne> I think the default are reflective of the state of the HW after reset
<ndufresne> arguably, underlay is what you want if you make an app like khodi, or want to use mpv under your UI
<blathijs> Right, though (naively) I would think that the UI would be *another* overlay maybe. Or both planes should be primary maybe.
<blathijs> Or hide the primary fb plane maybe
<jernej> blathijs: only one plane can be primary
<blathijs> Yeah, that makes sense
<blathijs> Also, it seems that just using "playbin" actually already correctly uses the v4l2codecs decoder (and now that I manually set the zpos=2 once, the video is also actually displayed right away). This originally did not happen, but that was because I was accidentally using an MP4 encoded file rather than H264 :-P
<jernej> MP4 is container, do you mean MPEG4 part 2 (used by divx, etc.)?
<jernej> H264 is MPEG4 part 10, so either can be called MPEG4 :)
<blathijs> jernej: I think "file" said "divx", so I think I mean MPEG4 part 2, yes. Terminology is tricky indeed :-p
<jernej> if you really want to confuse people, you can say AVC instead of H264 :)
apritzel has quit [Ping timeout: 480 seconds]
vagrantc has joined #linux-sunxi
ftg has joined #linux-sunxi
JohnDoe_71Rus has quit []
<blathijs> jernej: ndufresne: Many thanks for your help, I think I should be to make my project work with this. I'll have to convert my player python script from using libvlc to using gstreamer, but from reading the gstreamer documentation the past days, I think this will be a pleasant experience :-)
<ndufresne> cool cool!
<ndufresne> for that kind of low level playback, I only know gst and mpv as viable options, I never seen any effort in libvlc to handle things like bare metal display
<blathijs> ndufresne: On the rpi, I think vlc implements some hardware-specific module (that interfaces with a binary GPU blob I think), where you can just shove a h264 stream into the GPU and it will handle decoding and rendering completely in the binary blob, no X involved. So that was superconvenient and fast, but not really portable. Before that I was using omxplayer, which really did
<blathijs> not much more than shoving data into the GPU (and audioplayback), that was a direct evolution of the example program that came with the binary blob, I think.
<blathijs> I do hope that I can get gstreamer to also do this hw decoding on the rpi, so I do not need to also keep supporting vlc for those boards...
<blathijs> But it seems there are some "omx" plugins for GST, so it will probably work.
evgeny_boger has joined #linux-sunxi
<ndufresne> blathijs: they should not need to use such massive hack on newer RPI stack
<ndufresne> the decoder is a V4L2 M2M device, which is well supported mainline ffmpeg
<ndufresne> and the GPU is a mesa driver and supports zero-copy from dmabuf produces by the decoder
<ndufresne> omxplayer was another story, it would pipeline the omx component, in a way that in fact the entire player was running on the co-processor and rendering on the co-processor too
<ndufresne> you need a year 2000 design to support this (running stuff on baseband)
<blathijs> ndufresne: Ah, that would be even nicer. Does that mean that decoding and rendering now uses open code, or is it still binary blobs that do the actual work?
<ndufresne> there is a blob on the firmware side, but that's all
<blathijs> Clearly you know more about this than what I've found out so far :-)
<ndufresne> the GPU is now managed by the CPU not the baseband
<jernej> for HEVC it will be entirely open driver, but it's not mainlined yet (API is not complete)
<ndufresne> yeah, HEVC decoder is managed by the CPU now
<ndufresne> jernej: you seen Ben first iteration of a final uaPI ?
<ndufresne> he spent few days on that this week, and ported hantro and cedrus driver, if you can test that there is no regression on cedrus, could be nice
<ndufresne> and comment back about the offsets
<jernej> ndufresne: yes, I've seen, but I don't have much spare time until Monday
<ndufresne> blathijs: in short, the HEVC core on RPi4 is a massive bump in term of tech, 4K HDR, very powerful
<ndufresne> jernej: same for me
<jernej> there is another issue with bit offset, I'll explain in response, early next week
apritzel_ has joined #linux-sunxi
<blathijs> Cool :-)
<jernej> in short, Cedrus requires bit offset to be right after header, before padding bits, while in uAPI you would expect that padding bits are included in bit offset
<jernej> I hope I could convince HW to work with expected offset
evgeny_boger has quit [Ping timeout: 480 seconds]
rm has quit [Ping timeout: 480 seconds]
rm has joined #linux-sunxi
<ndufresne> jernej: yeah, this one is massive odness of cedrus, perhaps there is a workaround, otherwise we'll just add "padding bit size" and you will have to substract
<ndufresne> it no worst then hantro skip ?
<jernej> no, it's not worst, but I really hope it will not come to that
<jernej> hopefuly start code detection or something like that would allow to skip it
<jernej> *enabling
hlauer has quit [Ping timeout: 480 seconds]
aggi has quit [Remote host closed the connection]
aggi has joined #linux-sunxi