Take the 2-minute tour ×
Video Production Stack Exchange is a question and answer site for engineers, producers, editors, and enthusiasts spanning the fields of video, and media creation. It's 100% free, no registration required.

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
add comment

1 Answer

up vote 0 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 
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.

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. –  Volodya Dec 3 '13 at 17:32
add comment

Your Answer

 
discard

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.