How to Convert MP4, MOV, MKV to OGV with FFmpeg and Play in Godot

How to Convert MP4, MOV, MKV to OGV with FFmpeg and Play in Godot

Learn how to convert videos to OGV using FFmpeg and set up a VideoStreamPlayer to play them natively in Godot.

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

  1. Drag the .ogv file into Godot FileSystem.
  2. Create a VideoStreamPlayer node.
  3. Set Stream → load your .ogv file.
  4. Call play() in script:
$VideoStreamPlayer.play()

Done. Your video works on all Godot platforms.

Tip: Keep videos short for best performance.