Take a look at:
- GitHub - JuliaIO/FFMPEG.jl: Julia Package for the FFMPEG builder binaries
- https://github.com/JuliaIO/VideoIO.jl
I’d recommend trying to use iterative encoding to build the video in place, which avoids the unnecessary round trip of JPEGs to & from your hard drive.
If you want to stick to your strategy of calling FFMPEG from the shell within Julia, see this old post: Creating a video from a stack of Images - #8 by stillyslalom