MacroPower / prometheus_video_renderer

Render videos using Prometheus and Grafana, e.g. Bad Apple.

Home Page:https://www.youtube.com/watch?v=ApJxFprSTqA

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

prometheus_video_renderer

Encode media into Prometheus metrics, display/render through the Prometheus UI or Grafana.

Works with: PNG, WAV, and PNG sequences (aka Video)!

Modes

Currently 3 different modes are supported.

Bitmap

The bitmap mode either creates a sample or does not, depending on the brightness of the source image. It is the only mode compatible with the Prometheus UI.

bitmap-preview

Example: https://www.youtube.com/watch?v=ApJxFprSTqA

Grayscale

The grayscale mode creates a metric and sets a brightness label matching an override for each unique brightness.

grayscale-preview

RGB

The RGB mode creates offset metrics for red, green, and blue, and sets a brightness label matching an override for each unique color/brightness.

rgb-preview

Example: https://www.youtube.com/watch?v=aLvh0oId3Go

Audio

You can store and stream wave files using prometheus_jukebox.

Example: https://www.youtube.com/watch?v=psk20qGVF10

Inspiration

A while back I thought giedrius's blog post on storing ascii art in Prometheus and the corresponding source code were really fun. After seeing some of kevinjycui's bad apple videos I thought combining these two ideas could be an interesting (and hilariously terrible) idea!

Installation / Usage

See docs on the renderer and jukebox.

About

Render videos using Prometheus and Grafana, e.g. Bad Apple.

https://www.youtube.com/watch?v=ApJxFprSTqA

License:Apache License 2.0


Languages

Language:Go 42.3%Language:Jsonnet 39.6%Language:Makefile 13.5%Language:Shell 3.2%Language:AutoHotkey 0.9%Language:PowerShell 0.5%