pyglet-ffmpeg currently only supports Windows (32 or 64 bits) and Mac OS X 10.5 and above.

pyglet-ffmpeg bundles the binaries for FFmpeg v4. On PyPI, pyglet current stable release (v1.3.2) does support FFmpeg at all. There is an unstable release (v1.4.0a1) but it’s using FFmpeg v3.

In order to make things work, you will need to install pyglet from Bitbucket repository:

$ pip install -e hg+

You install pyglet-ffmpeg using pip:

$ pip install pyglet-ffmpeg


Using pyglet-ffmpeg is really simple. In your code, simply call:

import pyglet_ffmpeg

FFmpeg will be loaded and ready to be used with pyglet or arcade.

Example using Pyglet

Let’s say you have an audio file laser1.ogg in the same directory as this script. Here is a minimal example which would play the sound.

import pyglet
import pyglet_ffmpeg
from pathlib import Path


window = pyglet.window.Window()

this_dir = Path(__file__).parent
soundfile = str(this_dir / 'laser1.ogg')
sound =
player =

player.on_player_eos = window.close