Convert video file or video stream to Base64 and publish on NATS
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