Trevor Sullivan
Trevor Sullivan16mo ago

Retrieve and serve video from back-end script

I'd like to use FFmpeg to generate a snippet of video inside of a back-end Windmill script. What's the best way to store and return this data to the Windmill UI? I don't see a Video component available.
12 Replies
rubenf
rubenf16mo ago
Right now you would use the html component with the <video element
Trevor Sullivan
Trevor Sullivan16mo ago
What about returning the video data from the script to the UI? Base64 encoding? That's what I did for generated images.
rubenf
rubenf16mo ago
base64 for videos is really not gonna work well they're too big
Trevor Sullivan
Trevor Sullivan16mo ago
Yeah, that's what I thought Would slow the browser down a lot, most likely
rubenf
rubenf16mo ago
you should use a url to a static asset service windmill is not such one s3 most likely would work well
Trevor Sullivan
Trevor Sullivan16mo ago
Okay. I have Minio set up, but I was trying to avoid using any third-party services. Wanted to try to keep everything in Windmill for simplicity Basic static file hosting would be helpful
rubenf
rubenf16mo ago
For now we've judged it out-of-scope s3 api is simple and can hardly be improved
Trevor Sullivan
Trevor Sullivan16mo ago
Agreed, it's widely supported by so many tools these days.
Trevor Sullivan
Trevor Sullivan16mo ago
Works great, thank you for the solution.
No description
rubenf
rubenf16mo ago
We should probably make it a component
Trevor Sullivan
Trevor Sullivan16mo ago
Agreed I'm going to use Windmill to build a UI for my security camera recordings.
ym1198
ym119816mo ago
@pcgeek86 how did you use ffmpeg in windmill scripts ? it had to be installed locally i e. cli right ?