EIRTeam / EIRTeam.FFmpeg

Plugin for godot that adds an FFmpeg-based decoder.
https://eirteam-docs.readthedocs.io/en/latest/documentation/ffmpeg/ffmpeg_getting_started.html
MIT License
152 stars 22 forks source link

4K (4096x2160) mp4 video freezes #34

Open juntaosun opened 1 month ago

juntaosun commented 1 month ago

When playing 4K (4096x2160) mp4 videos on Quest3, ( Pack apk to Android ) there are often freezes and choppy playback. How can I solve this problem?

EIREXE commented 1 month ago

Are you using the vulkan renderer? We aren't doing hardware accelerated decoding, so it may be a bit slow.

juntaosun commented 1 month ago

Request support for hardware decoding to improve performance, thank you very much~ :)

EIREXE commented 1 month ago

Request support for hardware decoding to improve performance, thank you very much~ :)

The problem is for hardware decoding to be efficient we need native vk handles, which might be hard to obtain in godot currently. We can have hardware decoding with a GPU->CPU->GPU copy but not sure if that would be fast enough