Include ffmpeg as a dependency

I’m writing a packages that needs to be able to

run(`ffmpeg ...`)

on all three architectures. I looked into VideoIO’s deps/build.jl file and cowered in fear.

Is there any simple way to include a build-dependency on ffmpeg so that my package could simply run ffmpeg?


what are you trying to do?, according to the ffmpeg self-description it’s

A complete, cross-platform solution to record, convert and stream audio and video.

and VideoIO seems to be an adaptation of the ffmpeg lib

I need to extract a section from a video file (.MTS, .avi, mpeg, etc), so something along the lines of:

ffmpeg -i $in -c copy -ss $start -to $stop $out

and extract and concatenate parts into one file, so something like this:

ffmpeg -f concat -safe 0 -i $list_with_video_files -c copy -ss $start -to $stop $out

in any case you need to spend some effort:

  1. Invent a method for command-line command dependencies OR
  2. Learn to do your job with library calls to libavXXX (maybe in a c program) and contribute this to VideoIO.jl

OK, I see. Boo.

So number 2 maybe…

Thanks for the info!