How to use match group in Python to take a values and ignore comma mark
Instead of

            match = search(r"(\d*)\.avi$", f)
            if match:
                startframe = match.group(1)
                out = InsertSign(out, join(root, f), int(startframe))


use

            match = search(r"(\d+),(\d+)\.avi$", f)
            if match:
                startframe = match.group(1)
                endframe = match.group(2)
                out = InsertSign(out, join(root, f), int(startframe), int(endframe))