# From a Julia program, run a ffmpeg shell command on a folder of files to make a mp4 movie

**URL:** <https://discourse.julialang.org/t/from-a-julia-program-run-a-ffmpeg-shell-command-on-a-folder-of-files-to-make-a-mp4-movie/65910>\
**Category:** General Usage\
**Tags:** question, shell\
**Created:** [August 5, 2021, 9:18pm UTC](https://discourse.julialang.org/t/from-a-julia-program-run-a-ffmpeg-shell-command-on-a-folder-of-files-to-make-a-mp4-movie/65910 "2021-08-05T21:18:45Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![stillyslalom](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stillyslalom/32/45687_2.png) [@stillyslalom](https://discourse.julialang.org/u/stillyslalom)\
**Post date:** [August 5, 2021, 9:29pm UTC](https://discourse.julialang.org/t/from-a-julia-program-run-a-ffmpeg-shell-command-on-a-folder-of-files-to-make-a-mp4-movie/65910/2 "2021-08-05T21:29:39Z")

</div>

Take a look at:

- [GitHub - JuliaIO/FFMPEG.jl: Julia Package for the FFMPEG builder binaries](https://github.com/JuliaIO/FFMPEG.jl)
- [https://github.com/JuliaIO/VideoIO.jl](https://github.com/JuliaIO/VideoIO.jl)

I’d recommend trying to use [iterative encoding](https://juliaio.github.io/VideoIO.jl/latest/writing/#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](https://discourse.julialang.org/t/creating-a-video-from-a-stack-of-images/646/8)

---

_[View the full topic](https://discourse.julialang.org/t/from-a-julia-program-run-a-ffmpeg-shell-command-on-a-folder-of-files-to-make-a-mp4-movie/65910)._
