09-02-2020, 10:29 AM
(08-31-2020, 11:16 AM)xmixahlx Wrote: you could do everything with hantro as it also has h264 support, however rkvdec supports h264 also and is favored.
you should be able to review the linux and ffmpeg scripts, files under /resources/, and kwiboo's repositories for linux-rockchip and ffmpeg. see how these are addressed by libreelec - kwiboo prepares patches for matching repositories, and the linuxtv-rkvdec linux-rockchip branch is additional WIP, but usually stable.
if possible, i would rebase your project on 5.8. i will be rebasing the hwaccel patches for 5.9 soon.
i added ADDPATCH and KERNELCONFIG variables to the linux script, so you may be able to use the script with your own patch and kernel for your project. this approach can actually work for any rockchip hardware with some effort, snd i will soon be expanding for rockpro64.
Thanks for the tips. I decided it was easier to forward port our 5.4 changes to 5.8.5. I spent yesterday doing that (mostly dts and some network mods) and the node boots fine with both the hantro and rkvdec drivers. I ran some v4l2 commands and it looks far better than the original 4.4 stuff I had.
Next I'll take a look at your ffmpeg script(s) and kwiboo's ffmpeg repo. My goal is to show ffmpeg doing hwaccel'd encoding and decoding, though I'm not quite sure the best way to do that yet. I guess I could try a file conversion from h.264 to ... something else? ... and back. I also need to test motion jpeg encoding somehow. I don't have video input on the device (at least not yet). And I don't have a display working yet either (we do on 4.4 - it's dsi, not hdmi - but I haven't ported that forward yet).
Any additional suggestions are appreciated - and again: thanks for your work and help on this!
Michael J. Hammel
mjhammel@graphics-muse.org
michaelhammel@acm.org
mjhammel@graphics-muse.org
michaelhammel@acm.org