I merged the ffmpeg-rpi (v4) PKGBUILD with the ffmpeg PKGBUILD using that branch and it did do h264 v4l2m2m HW decoding with mpv and firefox but mpv would not do HEVC HW decoding. There were some features disabled that I believe HEVC needs in his 6.0 dev branch. It says options not available. So I am guessing he is in the early stages with that branch. Options disabled:
# for hw decoding
--disable-mmal #Most likely for 32bit
--enable-neon #Most likely not needed
--enable-v4l2-request
--enable-libudev
--enable-epoxy
--enable-sand
May not be a total loss though since ffmpeg-rpi and ffmpeg can be installed at the same time and have mpv and vlc use ffmpeg-rpi.
I looked at your PKGBUILD and mine and hardly any diff. I belive the problem was I pulled in the zip file and you cloned the repo. Some times the .zip files are not complete. I am compiling yours in a few.
@tartanpion@Rip2@JFL I have tested @JFL PKGBUILD and I am happy to report that firefox and mpv works using v4l2m2m using ffmpeg6. I did some other testing with a few programs that use ffmpeg6 and so far no problems. I also can report that mpv in the repo can use HW decoding with h264 and h265. I also tested a really stout hevc stream with these specs:
Video
ID : 1
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main 10@L5.1@High
HDR format : SMPTE ST 2086, HDR10 compatible
Codec ID : hvc1
Codec ID/Info : High Efficiency Video Coding
Duration : 2 min 7 s
Bit rate : 75.6 Mb/s
Maximum bit rate : 123 Mb/s
Width : 3 840 pixels
Height : 2 160 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 59.940 (60000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0 (Type 2)
Bit depth : 10 bits
what is your trick for hevc (with hwdec=auto (drm)) ?
Using hardware decoding (drm).
[hwupload] no support for this hw format
[hwupload] hardware format not supported
[autoconvert] Failed to create HW uploader for format rpi4_10
[autoconvert] HW-downloading from drm_prime
AO: [pipewire] 48000Hz 5.1(side) 6ch floatp
VO: [gpu] 3840x1584 yuv420p10
AV: 00:00:06 / 02:06:29 (0%) A-V: 0.489 Dropped: 93
I have
[autoconvert] Failed to create HW uploader for format rpi4_10
VO: [gpu] 3840x1584 yuv420p10
just plain mpv --hwdec=auto filename. Not sure why you are getting that but it is not using HW decode but using SW. I will upload my build after I eat.
Added:
I do have disable_fw_kms_setup=1 in /boot/config. You have to reboot when you make the change.
Here is my rpi-ffmpeg (v6) package I built based on @tartanpion PKGBUILD. It takes care of the issue with several other programs depending on ffmpeg6. It runs with mpv --hwdec=auto movie-filename. I do not know if it makes a diff at this tme but I have disable_fw_kms_setup=1 set in config.txt. It has to be that way with vlc doing HW.
Thanks. Need to remove the earlier ffmpeg-rpi-4.4, mpv-1:0.36.0-3 and ffmpeg-2:6.0-8 (from Manjaro-Arm Repo) that I have installed earlier on Manjaro-Arm-Gnome?
Here is all of the rebuilt files since some libs were updated today on the unstable branch. You miht want to update on the unstable branch as I do not know if it will make any diff or not. I also included all of the PKGBUILD’s. The packages are in the root of the directory I provided. Install them with:
Not sure what you are talking about. I never released my first build here with ffmpeg6. I wound up using @tartanpion PKGBUILD but changed it up slightly.