fix: swift_ocr 使用已廢棄的 -vsync vfr(ffmpeg 9 移除)
Cross-Project Integration / integration (push) Has been cancelled

- ffmpeg 9 移除 -vsync 選項 → swift_ocr frame extraction 完全失敗(0 幀)
- 改為 -fps_mode vfr(ffmpeg 9 新語法)
- 重新編譯 swift_ocr binary 並部署
- 結果: OCR 從 0 幀 → 494 幀有文字
This commit is contained in:
Accusys
2026-11-19 14:06:33 +08:00
parent 2df98eb31c
commit e0d09ed7b3
622 changed files with 3420 additions and 3318 deletions
+1 -1
View File
@@ -89,7 +89,7 @@ struct SwiftOCR: ParsableCommand {
extractProc.executableURL = URL(fileURLWithPath: "/opt/homebrew/bin/ffmpeg")
extractProc.arguments = ["-y", "-v", "quiet", "-i", inputPath,
"-vf", scaleFilter,
"-vsync", "vfr", "-q:v", "15", framePattern]
"-fps_mode", "vfr", "-q:v", "15", framePattern]
let startExtract = Date()
try extractProc.run()
extractProc.waitUntilExit()