########################################################################################## HLS-7: Implement use of getopt ########################################################################################## Issue Type: New Feature ----------------------------------------------------------------------------------------- Issue Information ==================== Priority: Major Status: Closed Resolution: Done (2015-06-12 16:29:31) Project: HLS Stream Creator (HLS) Reported By: btasker Assigned To: btasker Components: - CLI Options Targeted for fix in version: - 1.0 Time Estimate: 0 minutes Time Logged: 0 minutes ----------------------------------------------------------------------------------------- Issue Description ================== 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. ----------------------------------------------------------------------------------------- Issue Relations ================ - blocks HLS-6: Adaptive Streams - blocks HLS-8: Implement ability to tell FFMPEG the input is a linear stream ----------------------------------------------------------------------------------------- Activity ========== ----------------------------------------------------------------------------------------- 2015-06-11 12:15:26 btasker ----------------------------------------------------------------------------------------- Not sure why I didn't use _getopt_ in the first place, though it was only originally ever intended as a quick and dirty script ----------------------------------------------------------------------------------------- 2015-06-11 12:27:15 git ----------------------------------------------------------------------------------------- -- BEGIN QUOTE -- Repo: HLS-Stream-Creator Commit: 613a9b90b72f6e7cdea7dd0b37de5d04b04e533c Author: Ben Tasker