ffmpeg is one of many tools I've come across over the years where the order of the options is important. ffmpeg can combine multiple inputs, each can have filters or format conversions applied, and then there can be multiple output codecs each of which has its own parameters. The parameters "queue up" so that options applying to inputs collect until the next '-i' option, where they get applied to that input. You can then specify completely different values for the same options before the next '-i'.
To be fair, I actually don't like the interface that much myself, because I can't remember the details and need to consult the manual each time. But, I assume that someone who does lots of video encoding could remember the details and be quite happy with it.
I was being a bit flippant, but my point is that you are judging his interface as defective without even knowing what problem it's solving. There are certainly times when a "script of commands" can comfortably be arranged in the arguments of a command line tool. The next larger alternative is to create a custom scripting language for the problem, or make it into an API that can be used by a full-fledged scripting language. Sometimes that seems like overkill for the size of problem the tool is meant to solve.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.