In order to allow more advanced configuration (such as specifying whether an input stream is linear, or to specify bitrates for an adaptive stream - HLS-6
) probably need to switch over to using getopt rather than position in the argument list (given that some of the arguments are optional - output_directory
being a prime example).
Need to maintain backwards-compatibility though, to ensure that scripts written around older revisions don't suddenly break completely.
As there's been no use of getopt so far, it should be as simple as running getopt, and if nothing is matched switch to using the old schema.