Video Production Stack Exchange is a question and answer site for engineers, producers, editors, and enthusiasts spanning the fields of video, and media creation. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Good time of the day,

I have heard that such a feature exists, but i've lost the reference and have been unable to find it now. I am looking for a way to use the file as the input for all the fileter options passed to libav's avconv (or ffmpeg).

I know i can do that via a command line with -f or -vf, but there are two problems: i often reuse the same settings and sometimes i need to reuse the particular approach after bash has already lost that particular command line from history.

If i'm mistaken and there's no way to do that, also kindly let me know.

share|improve this question
up vote 1 down vote accepted

You can use the -filter_script option:

$ ffmpeg -i input -filter_script filtering -codec:a copy output.mkv

In this example, filtering is a file with the filtergraph.

$ cat filtering 

I believe this only works for simple filtergrahps that contain exactly one input and one output.

Libav stuff (avconv and their fake, so-called "ffmpeg" version) is buggy. You can simply download a recent Linux build of ffmpeg from FFmpeg or follow a step-by-step guide to compile ffmpeg.

share|improve this answer
I've accepted the answer, and wanted to clarify that it does not mean that the fud in the last paragraph is of any use. Libav does appear to have the very same command line option, and i am happy. – v010dya Dec 3 '13 at 17:32
There is also -filter_complex_script option. – Paul B. Mahol Feb 15 at 9:12

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.