Adding directory to queue for a batch slows to a crawl on "Updating Video Info"

未关闭
#782 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
45/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
python

调研方向

Start by tracing the queue-add flow that logs “Updating video info” and identify which video metadata work runs for each file; the issue does not name source files or tests. Reproduce with a folder of 100+ videos on Windows 11 and profile the slow step. Done means files are added without the reported 20–40 second pauses and the UI remains responsive.

由索引模型根据 Issue 内容生成。

描述

bug

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+) 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 quickly drops to an agonisingly slow crawl, always taking a long time, up to 20-40 seconds on the "Updating video info" step in the console window before moving on to the next file.

While it's paused, 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 nearly a minute for every video?

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.

Preset 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):

Image
主要语言
Python
星标
1.6k
派生
79
平均合并
1 小时 6 分钟
30 天内合并 PR
2

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

cdgriffith/FastFlix 的其他 Issue

查看 cdgriffith/FastFlix 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。