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
rubenf11mo ago
Right now you would use the html component with the <video element
Trevor Sullivan
Trevor Sullivan11mo ago
What about returning the video data from the script to the UI? Base64 encoding? That's what I did for generated images.
rubenf
rubenf11mo ago
base64 for videos is really not gonna work well they're too big
Trevor Sullivan
Trevor Sullivan11mo ago
Yeah, that's what I thought Would slow the browser down a lot, most likely
rubenf
rubenf11mo 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 Sullivan11mo 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
rubenf11mo ago
For now we've judged it out-of-scope s3 api is simple and can hardly be improved
Trevor Sullivan
Trevor Sullivan11mo ago
Agreed, it's widely supported by so many tools these days.
Trevor Sullivan
Trevor Sullivan11mo ago
Works great, thank you for the solution.
No description
rubenf
rubenf11mo ago
We should probably make it a component
Trevor Sullivan
Trevor Sullivan11mo ago
Agreed I'm going to use Windmill to build a UI for my security camera recordings.
ym1198
ym119811mo ago
@pcgeek86 how did you use ffmpeg in windmill scripts ? it had to be installed locally i e. cli right ?
Want results from more Discord servers?
Add your server
More Posts
here Introducing Concurrency Limits@here Introducing Concurrency Limits. Define them for scripts and flow's inline scripts and ensure tUI Issue: Browser zoom on the Configuration section for File Input stretches verticallyWhen the browser zoom is increased, the **Configuration** area for File Input components goes verticSearching for components should include categoryWhen I search for components, some items are filtered out, because the keyword doesn't appear in theIn the python script builder resourceIn the python script builder, resource types are now added as TypedDict with autocompletion of propeRemove App Refresh, but leave it enabledI want my data to periodically refresh in the background, but don't display the distracting UI elemeFront-end Table Script ErrorI have a front-end script that's filtering some JSON objects, displaying only a few key properties, Suggestion: Deploy Windmill with self-signed TLS certificate by default?When I deployed Windmill using Docker Compose, it didn't have a self-signed TLS certificate. This woTab Component: How do you select a different tab, when using "Invisible on View"?If I create a Tab component, and select the "Invisible on View" display mode, how do I cause a diffeTest Windmill Resource Connectivity From UIAfter entering the details for resource types, such as database servers, it would be awesome to haveChange REST API action to use well-defined fieldsRight now, the Windmill REST API action simply inserts some TypeScript code, that the user has to mo