Godot natively supports .ogv (Theora + Vorbis) video format. Here's the quick way to convert your videos and use them in Godot.
FFmpeg Conversion (One Command)
ffmpeg -i input.mp4 -c:v libtheora -q:v 6 -c:a libvorbis -q:a 6 output.ogv
Works with MP4, MOV, MKV and most formats.
For better quality/speed:
- Use
-q:v 5(higher quality) or-q:v 8(smaller file).
Batch example (all mp4 files):
for f in *.mp4; do ffmpeg -i "$f" -c:v libtheora -q:v 6 -c:a libvorbis -q:a 6 "${f%.mp4}.ogv"; done
Import & Play in Godot
- Drag the .ogv file into Godot FileSystem.
- Create a VideoStreamPlayer node.
- Set Stream → load your .ogv file.
- Call
play()in script:
$VideoStreamPlayer.play()
Done. Your video works on all Godot platforms.
Tip: Keep videos short for best performance.