If it can handle a single frame, it can handle any length. There still some improvements I can do to improve the memory usage.