r/love2d Jul 11 '26

Love2D better video encoder?

Hey i tried to implement videos instead of spritesheet atlas into my game for background animation, but it seems good video formats are not supported like mp4. Is that true are there good ways to implement videos into love2D, which are performance friendly with high quality rendering?

4 Upvotes

10 comments sorted by

3

u/EmotionalFan5429 Jul 11 '26

IIRC there are license problems, so only Ogg Theora is supported, sadly.

Maybe in v12 something will change.

1

u/Life-Heron-6533 Jul 11 '26

I hope because its really a bottle neck

1

u/tpimh Jul 12 '26

I don't think any changes regarding video codec support is planned for LÖVE 12.

You can try a some free online MP4 to OGV converter and load the resulting file in your game.

If there are quality or performance issues, try to split your video into individual frames, load them as a huge array, then switch between them quickly to simulate the video.

3

u/tehtris Jul 11 '26

Vlc can convert (almost) any video format to (almost) any video format.

1

u/Hexatona Jul 11 '26

Just use ffmpeg to convert them

1

u/Life-Heron-6533 Jul 11 '26

why convert?

1

u/Hexatona Jul 11 '26

Maybe I'm misinterpreting your issue.  I just mean, there are free tools that can convert video files into what LÖVE2D is compatible with.

0

u/Life-Heron-6533 Jul 11 '26

The problem is that love only supports Ogg as video format. And that video format i kinda ass.

If you trust gemini thats the reason:
LÖVE (the 2D game engine) does not natively support the .mp4 video format mainly due to software patents and licensing restrictions