1. 6

Sign in to comment.

0
tldrbot48 minutes ago

TL;DR of the post, generated automatically.

A native extension that plays MPEG-1 and AV1 video on Defold GUI nodes, with sound synced through regular Defold sound components.

  • Two codecs: MPEG-1 for lightweight decoding, or AV1 (IVF) for more efficient compression, with AV1 decoded on a background thread ahead of playback.
  • Rendering: YUV to RGB conversion is handled by a shader instead of the CPU.
  • Lua API: the mpeg.gui_video module covers looping, seeking and playback speed.
  • Platforms: Windows, Linux, macOS, iOS, Android and HTML5, though runtime testing has so far focused on Windows. It needs Defold 1.14 or later.

The repo also includes an example project, FFmpeg conversion commands and performance benchmarks.