15. Choose a video format that can load
| Format / decoder | What this build provides |
|---|---|
| Ogg Theora video, usually .ogv | Uses the native Theora playback path. This is the straightforward shared desktop test format. |
| MP4, MOV, WebM and other listed formats | Use the FFmpeg video decoder when it is present and usable. The file’s codec must also be supported. |
| Bundled FFmpeg platform check | The source enables this bundled decoder path for Windows and Linux on x86_64. Do not assume the same package is active on macOS or another architecture. |
The sample Theora clip and an MP4 comparison both loaded in the desktop environment used for this guide. That does not prove every codec inside an MP4 or every target build will work. Test the files in the package you plan to distribute.
A filename extension is a container hint. Renaming a file to .ogv does not turn it into Theora video, and an Ogg audio file is not a video just because the loader recognizes .ogg as a possible video extension.
1. Import a short known clip first.
2. Assign it as the Video element’s Media Asset.
3. Play it in a running game preview.
4. Test the actual exported game on the intended desktop platform.
A missing decoder can lead to a poster or Load Failure Text. That fallback is useful feedback, but it is not successful movie playback.
