Include ffmpeg as a dependency

question

#1

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?

Thanks!


#2

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


#3

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

#4

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

#5

OK, I see. Boo.

So number 2 maybe…

Thanks for the info!