cropped-android-chrome-512x512-1-1
Video to Base64: Video to NATs Message Broker

Convert video file or video stream to Base64 and publish on NATS

v1.0.0

How it works

This solution uses OpenCV to "read" a video file as if it were just a text file. If the input video is at 30FPS, openCV will divide the 1 second video in 30 images (array of 30 images).

The docker container used here will read the array of image, convert to a numerical array form or bytes form (array of values or base64), and add timestamp to it and publish to NATs

Since NATs publishing has size limitations, here we also limit how many frames we can publish per second to a NATs topic

Video_to_base64

You may also like

Banner Lenses.io

A guide to connect LEM with your Lenses Kafka Monitoring.

View all solutions