Adding directory to queue for a batch slows to a crawl on "Updating Video Info"
FastFlix Version:
Latest 6.3.2
Operating System:
Windows 11
Tested on 2 systems, fresh fastflix installs, same thing
Describe the bug
After selecting a directory with a decent amount of files (100-200+) for a batch encode job, the initial parse in the small window (when choosing a profile) is fast, but then when adding the files to the queue the process gradually drops to an agonisingly slow crawl on the "Updating video info" step in the console window before moving on to the next file. The more files added, the longer and longer this takes on each subsequent file.
While it's hung on this step, fastflix CPU usage pegs around 8-9% on a 6C/12T CPU, and the UI window is completely unresponsive. No notable disk IO. Something seems to be very wrong with the "updating video info" process, what on earth could it be doing that it's maxing out a core for longer and longer while adding another video to the queue?
For comparison, competing tools are much faster. XMedia Recode briefly scans and adds 5-20 (depending on filesize/internal complexity) files a second regardless of queue size, and A's video converter is instant, presumably it only scans upon reaching the file while doing the batch encode. It's hard to fathom what on earth Fastflix is up to that's taking so long.
To Reproduce Add a large folder of video files for a batch job and watch it slow to a crawl.
Profile does not seem to matter, either my intended one (a custom AV1 via QSVEnc profile with pattern matched audio conversion) or one of the stock profiles.
Logs Nothing telling in the logs, though you can see from the timestamps the enormous pauses every time it's "Updating video info" (personal info / video names cropped out):
Out of curiosity's sake I left the batch queue add running (the source folder has 386 videos), it's now up to ~2 minute 30 second freezes every "updating video info". It seems as the queue gets larger, the time on this step just gets longer and longer.
To preserve sanity this can be worked around by not queueing more than say, 40 or 50 files as at the end the 100% cpu hanging while adding to queue isn't too long, though this is worth looking into.