dthpham / sminterpolate

Make motion interpolated and fluid slow motion videos from the command line.
MIT License
1.38k stars 91 forks source link

Run butterflow with ffmpeg in Docker #77

Open cclloyd opened 6 years ago

cclloyd commented 6 years ago

Is it possible to have butterflow utilize ffmpeg in Docker instead of native on OS X? I ran tests and in every test, running ffmpeg:latest completed every task faster than native ffmpeg on OS X; although ffmpeg:alpine is slower unless it runs natively in linux.

And to add to that it lets me keep ffmpeg updated easily without having to spend ages recomiling.

So is there a way to have it utilize the ffmpeg docker image instead of native OS X?

Ravenstine commented 6 years ago

@cclloyd

I've been using this Docker image: https://hub.docker.com/r/saren/butterflow/

Link to the Dockerfile: https://github.com/Saren-Arterius/my-dockerfiles/blob/master/butterflow/Dockerfile

If you create your own Dockerfile based on that one, I imagine you can do a multi-stage build with ffmpeg:latest.

https://docs.docker.com/develop/develop-images/multistage-build/#before-multi-stage-builds

It would require figuring out how to copy the binaries from FFMPEG to the final stage. (see the part in the page above about using COPY --from=)

Props to you if you accomplish this and also use Alpine instead of Arch.