modify script to support multiple sequences and bitrates