0

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.

1

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 
scale=640:-1,negate

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.

  • 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
  • 2
    There is also -filter_complex_script option. – Paul B. Mahol Feb 15 '16 at 9:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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