fix: swift_ocr 使用已廢棄的 -vsync vfr(ffmpeg 9 移除)
Cross-Project Integration / integration (push) Has been cancelled
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user