(06-01-2020, 09:24 AM)termac Wrote: The ffmpeg comand you suggested uses ~75% of one core and decodes at 60 fps for a 1080p/60fps file. So I guess it works in principal. Will have to test kodi next than.
for a better example of the kodi-gbm+drm+gles experience, use: "ffmpeg -re --hwaccel drm -hwaccel_output_format drm_prime -i inputfile -f null -"
you can also add pixel format with "-pix_fmt bgra" and output to framebuffer with "-f fbdev /dev/fb0"
(06-01-2020, 02:31 PM)spikerguy Wrote: Hi @xmixahlx
I would like to know where did you get these patches from ?
Is there any plan to upstream these?
I understand we need v4l2 in ffmpeg but isn't the drm already available in 5.7 ?
I would love to test it too and build, package it for manjaro
Keep up the good work.
@spikerguy @tsys
the drm is available in 5.7, but it is patched for upstream + WIP features. the v4l2 api is in constant flux. kwiboo upstreams some patches, and what's still WIP is included in libreelec. their build system pulls in patches and builds packages from source, which makes adapting their patches from their git repo easier than cherry picking patches from LKML (!!!).
in more detail: after a major release he updates his repo branches and gets ready to package for libreelec, then he makes a PR on the libreelec main git. when merged he deletes his branch.
you can generally make his patches yourself by diffing each branch to their base. (that's what i do between his major releases.)
a few additional WIP things are not included in the official patches. you can get those via the branch diffs.
https://patchwork.kernel.org/project/lin...ter=182393
https://github.com/Kwiboo/linux-rockchip
https://github.com/Kwiboo/LibreELEC.tv/t...ux/default
for packaging, you would also want to include ffmpeg-v4l2-request. (the diff against official 4.2.2 is above and applies to 4.2.3, also), and kodi-git built with gbm+gles (see my other thread).
ffmpeg-v4l2-request: https://github.com/Kwiboo/FFmpeg/tree/v4...ccel-4.2.2
ffmpeg-v4l2-request-rockchip: https://github.com/Kwiboo/FFmpeg/tree/v4...2.2-rkvdec
(have these conflict. rkvdec is experimental for rockchip, the other is stable for both rockchip and allwinner, but less featureful on rockchip.)
libva and libva-v4l2-request are somewhat broken at the moment and can be skipped for packaging right now.
edit: i attached my patches, config, and patchseries script (delete .log). you can see several of these made it into libreelec 5.7 branch with similar naming.