Reversing bitrate order as temporary workaround for #9 / HLS-10
Reversing bitrate order as temporary workaround for #9 / HLS-10

--- a/HLS-Stream-Creator.sh
+++ b/HLS-Stream-Creator.sh
@@ -50,7 +50,7 @@
 # Video codec for the output video. Will be used as an value for the -vcodec argument
 VIDEO_CODEC=${VIDEO_CODEC:-"libx264"}
 
-# Video codec for the output video. Will be used as an value for the -acodec argument
+# Audio codec for the output video. Will be used as an value for the -acodec argument
 AUDIO_CODEC=${AUDIO_CODEC:-"libfdk_aac"}
 
 # Additional flags for ffmpeg
@@ -326,6 +326,7 @@
 then
       # Make the bitrate list easier to parse
       OP_BITRATES=${OP_BITRATES//,/$'\n'}
+      OP_BITRATES=$(echo "${OP_BITRATES}" | tac) # Reverse the order as a temporary workaround for #9/HLS-10
 
       # Create an array to house the pids for backgrounded tasks
       declare -a PIDS