-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hardware transcoding does not work for some vertical videos #6921
Comments
Can you attach a sample file so we can reproduce the problem? |
https://www.pexels.com/video/road-trip-4434242/ @aviv926 the above sample can reproduce the problem on my end. Edit: I have also attached the ffmpeg log for the sample and my vainfo |
It seems this is an issue with AMD devices in particular. Intel supports 4096x4096 and I can't see a limit on this for Nvidia. I also don't know if it affects discrete AMD GPUs or just APUs, and if there are different limits for different APUs. All in all, it might be worth rotating for VAAPI only, but needs more investigation as to the surface area of the issue and how much of a performance hit it would be for devices that don't need this. |
Could this issue be on VAAPI itself? According to the datasheet for my Phoenix iGPU there should be 8k encode, decode support for h265 8/10 bit |
https://patchwork.freedesktop.org/patch/577299/ - I believe this is related. |
That does look related. I think we can wait for that to make its way into an FFmpeg release. |
Is this still an issue? |
Yes. It should be fixed once we upgrade to FFmpeg 7.0. jellyfin-ffmpeg's relevant PR was merged recently, so that might be possible soon. |
I still have the same issue on latest release with ffmpeg 7.0
|
What processor do you have? 7.0 should only help if the true dimension range is enough and was only misreported in earlier versions. |
It's a ryzen5 5600h Edit: Looks like it should support 8k encoding? I think it should have the Cezanna gpu |
I looked at this again and it's actually a driver patch rather than for FFmpeg. All in all, this doesn't seem like an immich issue to me. |
The bug
Hardware transcoding fails on vertical videos since the vertical resolution goes too high on 4k content.
VAAPI reports following resolution constraints on HEVC:
[hevc_vaapi @ 0x5565e27c180] Hardware does not support encoding at size 1080x2344 (constraints: width 256-4096 height 128-2304).
Possible workaround could be to rotate the video for transcoding and then rotate it back on finish no?
The OS that Immich Server is running on
Unraid 6.12.6 w/ Linux 6.8rc3
Version of Immich Server
v1.94.1
Version of Immich Mobile App
Platform with the issue
Your docker-compose.yml content
Your .env content
Reproduction steps
Additional information
Console output of the FFMPEG error.
The text was updated successfully, but these errors were encountered: