learn-video / mosaic-video

Generate mosaics from video inputs
Apache License 2.0
35 stars 6 forks source link
ffmpeg mosaic video

Mosaic Video

Generate mosaic videos from live inputs.

Mosaic with two input videos and a background image

What is it?

Mosaic Video is a project designed to transform live streaming videos into nice mosaics in realtime.

It uses ffmpeg to capture the video and position them in a grid.

Design

The project has two main components:

Mosaic Video design

Features

Running

To run the project, certain environment variables need to be set. These variables can be found in the .env file.

Each worker, when running, uses a well-structured content. An example is detailed in tasks.json. You will use this file to simulate the worker, enqueuing the tasks following the very same format described there.

Below is a breakdown of each field in the JSON:

Commands

just test to run the tests.

just lint to run linters.

just deps starts a mock API, Redis and S3 backend.

just worker starts the go process to generate mosaics.

just storage starts the uploader component.

just player starts the HLS player.

just simulate enqueues tasks from tasks.json to the server.

Installation

We are still working on the installation process. For now, you can install it by cloning the repository and running separately the components (see "Running and tests" section).

Contributing

Feel free to contribute to this project by opening issues or pull requests.