Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

AV1 Decoding does not work on Desktop #83

Open
dasisdormax opened this issue Feb 23, 2024 · 3 comments
Open

AV1 Decoding does not work on Desktop #83

dasisdormax opened this issue Feb 23, 2024 · 3 comments

Comments

@dasisdormax
Copy link
Contributor

@Frosty-J reported an issue decoding AV1-encoded video files on Windows over at #77.

I tried it myself, encoding the included test video with
ffmpeg -i 'libGDX - It's Good For You!.webm' -c:v libaom-av1 -crf 31 -cpu-used 5 -row-mt 1 -tiles 4x1 -c:a copy 'libgdx-av1.webm'.

The resulting file played fine in VLC player, but caused errors when loaded in the test app.

So the issue described can be reproduced. This might be an issue with the cross build environment or compile settings. I'll look into it when I have time.

@dasisdormax dasisdormax changed the title AV1 Decoding does not work on Windows AV1 Decoding does not work Feb 25, 2024
@dasisdormax
Copy link
Contributor Author

After more testing, AV1 also does not work on Linux and Mac anymore.

@dasisdormax dasisdormax changed the title AV1 Decoding does not work AV1 Decoding does not work on Desktop Feb 25, 2024
@dasisdormax
Copy link
Contributor Author

Update: Apparently, the AV1 decoder only works when it detects hardware decoding support, and there is no software decoding fallback.

Decoding works on Linux 64 Bit when building FFmpeg with --enable-libdav1d --enable-decoder=libdav1d, and adding -ldav1d to the JNI build flags.
Getting this to work with cross compiles and on all platforms might take a while though.

@Frosty-J
Copy link
Contributor

Frosty-J commented Feb 25, 2024

Hardware decoding in gdx-video in general would be cool. The videos I've tested can be decoded in hardware when played with VLC, but for gdx-video it's all in software. Probably easier said than done, of course, and software fallback is a must for compatibility.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants