Rip2
4 February 2025 22:14
241
All 3th party ffmpeg need build yourself then rebuild mpv.
JFL
5 February 2025 03:53
242
is there a simple step by step instructions how to build the kwiboo/ffmpeg? Am not familiar how build/compile packages.
Rip2
5 February 2025 06:05
243
what i do is, refer to AUR ffmpeg-xxx PKGBUILD, change source and ADD/DEL options.
JFL
5 February 2025 14:36
244
Thanks for the info. Donβt think I have the skill set to perform this task.
I am having issues with V4L2 HW h265 decoding with the very latest kernels.
Additional:
Looks like I hit a brick wall with RPi. They have done some back porting of some future commits to upstream and jc-kynesim needs to bring his branch up to match with some patches.
βWe wonβt be reverting the kernel change as it brings us closer to how it will be once merged to mainline, so your FFmpeg needs to pick up the changes to match.β
opened 11:55AM - 13 Mar 25 UTC
### Describe the bug
With the very latest kernel trees I am unable to do V4L2 H⦠265 HW decoding using ffmpeg built from jc-kynesim's fork.
### Steps to reproduce the behaviour
Example v6.12.18 does not work but v6.12.17 does.
### Device (s)
Raspberry Pi 5
### System
[ray@jellyfin ~]$ sudo vcgencmd version
2025/02/12 10:51:52
Copyright (c) 2012 Broadcom
version f788aab6 (release) (embedded)
[ray@jellyfin ~]$ uname -a
Linux jellyfin 6.12.18-1-MANJARO-RPI5 #1 SMP PREEMPT Mon Mar 10 15:04:45 UTC 2025 aarch64 GNU/Linux
Mesa: 24.3.4-1 and 25.0.1
### Logs
[ray@jellyfin ~]$ mpv --profile=fast --hwdec=auto-safe ./127w_nasa_uhd_02042022.ts
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: Skipping invalid undecodable NALU: 39
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: Skipping invalid undecodable NALU: 9
[ffmpeg/video] hevc: PPS id out of range: 0
repeats several times.....
β Video --vid=1 (hevc 3840x2160 59.9401 fps)
β Audio --aid=1 --alang=eng (mp2 2ch 48000 Hz 128 kbps)
β Audio --aid=2 --alang=eng (aac 2ch 48000 Hz 129 kbps)
[ffmpeg/video] hevc: Failed to find a V4L2 device for H265
[ffmpeg/video] hevc: Failed setup for format drm_prime: hwaccel initialisation returned error.
[ffmpeg/video] hevc: Could not find ref with POC -15067
[ffmpeg/video] hevc: Could not find ref with POC -15059
[ffmpeg/video] hevc: Device does not support the VK_KHR_video_decode_queue extension!
[ffmpeg/video] hevc: Failed setup for format vulkan: hwaccel initialisation returned error.
[ffmpeg/video] hevc: Could not find ref with POC -15067
[ffmpeg/video] hevc: Could not find ref with POC -15059
AO: [pipewire] 48000Hz stereo 2ch s16p
[ffmpeg/video] hevc: Failed to find a V4L2 device for H265
[ffmpeg/video] hevc: Failed setup for format drm_prime: hwaccel initialisation returned error.
β Video --vid=1 (hevc [Main 10] 3840x2160 59.9401 fps)
β Audio --aid=1 --alang=eng (mp2 2ch 48000 Hz 128 kbps)
β Audio --aid=2 --alang=eng (aac 2ch 48000 Hz 129 kbps)
β Subs --sid=1 (eia_608) [default]
VO: [gpu] 3840x2160 yuv420p10
Audio/Video desynchronisation detected! Possible reasons include too slow
hardware, temporary CPU spikes, broken drivers, and broken files. Audio
position will not match to the video (see A-V status field).
Consider trying `--profile=fast` and/or `--hwdec=auto-safe` as they may help.
AV: 00:00:01 / 00:02:03 (1%) A-V: 1.309 Dropped: 22
### Additional context
If I had to guess there is also an issue with the pi4 also as someone posted this on the arch-arm forums although I have no issue with v6.12.17:
https://archlinuxarm.org/forum/viewtopic.php?f=65&t=17222
Added:
jc-kynesim joined in the issue and I had to switch to his test/7.1/main branch. All seems good now. I pushed rpi-ffmpeg-7.1-4 to unstable when the mirrors sync.
1 Like