Playing video in a Golang game

This page summarizes the projects mentioned and recommended in the original post on dev.to

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  1. Pixel

    A hand-crafted 2D game library in Go

    In videogames, we often need to show the player beautiful cinematics, either for ending or in the middle of the playthrough. To do it, we need to somehow load video frames and render them on the screen. Here's how to do that using Pixel game library and goav, Golang bindings for FFmpeg.

  2. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  3. goav

    Golang bindings for FFmpeg (This repository is no longer maintained)

    Now we need to obtain frames from the video stream of the file. goav provides an example code on how to do that. To make it work with Pixel game library, we need to set the frame decoding format to avcodec.AV_PIX_FMT_RGBA which is used by Pixel.

  4. Ebiten

    Ebitengine - A dead simple 2D game engine for Go

    This method can be adapted for other Golang game engines like Ebiten if you know the way to convert RGBA bytes to the appropriate form.

  5. pixel-video

    A demo of playing video using Pixel game library.

    Enjoy the full source code.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • How to add RTP timestamp to MP4 container for self-made RTSP client in Go?

    3 projects | /r/golang | 22 Aug 2022
  • How Nat Traversal Works

    4 projects | news.ycombinator.com | 5 Jan 2025
  • Pion WebRTC v4.0.0

    1 project | news.ycombinator.com | 12 Oct 2024
  • Building a Sliding Puzzle with Go

    2 projects | dev.to | 13 May 2024
  • Criando um Sliding Puzzle em Go

    2 projects | dev.to | 13 May 2024