---
title: "How to Convert MP4, MOV, MKV to OGV with FFmpeg and Play in Godot"
description: "Learn how to convert videos to OGV using FFmpeg and set up a VideoStreamPlayer to play them natively in Godot."
slug: "how-to-convert-mp4-mov-mkv-to-ogv-with-ffmpeg-and-play-in-godot"
url: "https://furkanbaytekin.dev/blogs/how-to-convert-mp4-mov-mkv-to-ogv-with-ffmpeg-and-play-in-godot"
author: "Furkan Baytekin"
category: "Software"
tags: []
published: 2026-06-07T04:59:29Z
updated: 2026-06-07T04:59:29Z
readTime: 1
cover: "https://myblogcms.furkanbaytekin.dev/uploads/cover/cdcb91e6-97b7-4d02-8bef-4da019333a11"
---

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)

```bash
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):

```bash
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:

```gdscript
$VideoStreamPlayer.play()
```

Done. Your video works on all Godot platforms.

**Tip:** Keep videos short for best performance.
