Answers.Body: <p>You can use the <code>-filter_script</code> option:</p>
  
  <pre><code>$ ffmpeg -i input -filter_script filtering -codec:a copy output.mkv
  </code></pre>
  
  <p>In this example, <code>filtering</code> is a file with the filtergraph.</p>
  
  <pre><code>$ cat filtering 
  scale=640:-1,negate
  </code></pre>
  
  <p>I believe this only works for <a href="http://ffmpeg.org/ffmpeg.html#Simple-filtergraphs" rel="nofollow">simple filtergrahps</a> that contain exactly one input and one output.</p>
  
  <p>Libav stuff (avconv and their fake, so-called "ffmpeg" version) is buggy. You can simply download a recent <a href="http://ffmpeg.org/download.html#LinuxBuilds" rel="nofollow">Linux build of ffmpeg from FFmpeg</a> or follow a <a href="https://ffmpeg.org/trac/ffmpeg/wiki/CompilationGuide" rel="nofollow">step-by-step guide to compile ffmpeg</a>.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2013-12-03T17:32:46.127Z
Answers.Text: 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.
Answers.UserDisplayName: v010dya
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2013-12-02T18:51:23.807Z
Answers.LastActivityDate: 2013-12-02T18:51:23.807Z
Answers.UserDisplayName: llogan
Body: <p>Good time of the day,</p>
  
  <p>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).</p>
  
  <p>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.</p>
  
  <p>If i'm mistaken and there's no way to do that, also kindly let me know.</p>
  
Tags: <ffmpeg>
Title: Using a parameter file for filter option of libav (or ffmpeg)
UserDisplayName: v010dya
ThreadText: # Using a parameter file for filter option of libav (or ffmpeg)
  
  (Asked by: username_0 on 2013-12-01)
  
  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.
  
  **Tags:** ffmpeg
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2013-12-02. Score: 0 | Accepted answer
  
  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](http://ffmpeg.org/ffmpeg.html#Simple-filtergraphs) 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](http://ffmpeg.org/download.html#LinuxBuilds) or follow a [step-by-step guide to compile ffmpeg](https://ffmpeg.org/trac/ffmpeg/wiki/CompilationGuide).
  
  > **Comments:**
  > **username_0**: 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.  
  
  ---
  
  