mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-02-03 21:23:48 +00:00
[PR #2073] [MERGED] [FIX]macOS: Fix hardsub pipeline failing due to arm64/x86_64 build mismatch #2883
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/CCExtractor/ccextractor/pull/2073
Author: @gaurav02081
Created: 1/28/2026
Status: ✅ Merged
Merged: 1/29/2026
Merged by: @cfsmp3
Base:
master← Head:gaurav-v2📝 Commits (1)
f1bb0f4macOS: Fix hardsub pipeline failing due to arm64/x86_64 build mismatch📊 Changes
1 file changed (+10 additions, -1 deletions)
View changed files
📝
mac/build.command(+10 -1)📄 Description
In raising this pull request, I confirm the following (please check boxes):
My familiarity with the project is as follows (check one):
PR Description
On macOS (Apple Silicon), hardsub (burned-in subtitle) OCR exited early with
“No captions were found in input”, even when subtitles were visible.
This was caused by an architecture mismatch:
C code built as arm64
Rust toolchain and Homebrew deps (FFmpeg/Tesseract) built as x86_64 (Rosetta)
The mixed build silently prevented the hardsub pipeline from reaching frame/OCR processing.
Fix
Update the macOS build script to:
detect Cargo’s architecture
force the C build to match it (-arch x86_64 or -arch arm64)
This restores proper hardsub OCR execution on macOS.
Files changed
mac/build.command
Feedback on any macOS CI / Sample Platform impact is welcome.
Fix ---------------------------------------
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.