FFMPEG on DO Functions

Is it possible to run FFMPEG on DO functions? We are looking to write a function to capture frame from a remote video on the fly via an API call. i.e run ffmpeg -ss time -i "url" -vframes 1 -f image2pipe -

Any suggestions/examples would be great.

Thank you,

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Have you found any answer/solution to this? I am actually interested in the exact same thing using DO functions, but from what I have found, it doesn’t seem there’s any means to install OS level packages for use with the functions.

I did, however, just today post a question looking for a way to install ffmpeg on app platform for use in a production PHP app I have deployed on app platform that I want to be able to continue deploying with push to deploy from a github repo and without needing to use a custom Dockerfile in the repo (to add an apt install of ffmpeg) and someone posted a solution that I am about to try where he installs ffmpeg using just an added run_command where he installs ffmpeg, moves it to a different directory, and then adds the binary directory for ffmpeg to the PATH.

Here’s the link to the reply on my question regarding this:

So, I was going to just try this out, and if it doesn’t work for me, I’d probably go the route of adding a custom Dockerfile to my github repo for the PHP app and add a command in there to install ffmpeg. However, if you have found a way to install and use ffmpeg from the functions, I would LOVE to do that instead.

Any luck?

Best, Jon.