Allowed inputfile to be a path.
Allowed inputfile to be a path.

--- a/HLS-Stream-Creator.sh
+++ b/HLS-Stream-Creator.sh
@@ -197,9 +197,8 @@
   mkdir -p $OUTPUT_DIRECTORY
 fi
 
-# For now, INPUTFILENAME is going to == INPUTFILE
-# Later, we'll change so that INPUTFILE could be an absolute path, whilst INPUTFILENAME will just be the filename
-INPUTFILENAME=$INPUTFILE
+# Pulls file name from INPUTFILE which may be an absolute or relative path.
+INPUTFILENAME=${INPUTFILE##*/}
 
 # Create the M3U8 file
 create_m3u8 "$INPUTFILENAME" "$SEGLENGTH"

file:a/README.md -> file:b/README.md
--- a/README.md
+++ b/README.md
@@ -16,7 +16,7 @@
 Usage is incredibly simple
 
 ```
-./HLS-Stream-Creator.sh inputfile segmentlength(seconds)
+./HLS-Stream-Creator.sh inputfile segmentlength(seconds) [outputdir='./output']
 ```
 
 So to split a video file called *example.avi* into segments of 10 seconds, we'd run