[FEATURE]: AI translation when the file has no text track: use an English addon subtitle once audio sync confirms it
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- kotlin
- 領域
- mobile-dev
調査の方向性
The fallback belongs in SubtitleSelectionPolicy.aiSource, which currently accepts only embedded text tracks; start there and trace how the existing audio sync is invoked for a candidate. The issue asks for English addon subtitles to be retimed and used as the AI source only when audio sync confirms timing, with a 6-candidate cap and no change otherwise. Done means a file with no text track and a confirmed English addon subtitle yields an AI source, and every other path behaves as before. It depends on the retimed-file keying fix described in the linked bug report.
索引モデルが issue の本文から書いたものです。
説明
Problem
When a file has no embedded text subtitle (many WEB-DL / x265 releases) and no well-synced target-language subtitle is found, AI translation is not available at all, because SubtitleSelectionPolicy.aiSource only accepts embedded text tracks. Very often a perfectly good English subtitle is available from an addon (OpenSubtitles, SubDL, SubSource), but it is never used as the AI source.
Examples: Top Gear Middle East Special (x265, no built-in subtitles, English only from SubDL), Rise of the Nazis S01 (AMZN WEB-DL, no built-in subtitles, several English addon subtitles). In both cases the player ends with "No well-synced subtitle found" and no AI option, not even manually.
Proposed Solution
A fallback that only runs when there is no embedded text track and no usable target-language subtitle:
- Take the English addon subtitles (no forced; SDH/HI last), best release-name match first.
- Run the existing audio sync (hearing) on the first one. Only when the audio confirms its timing, and the mapping still holds after ~20 s of playback, a copy retimed to that mapping becomes the AI source.
- If the audio cannot confirm it, or it drifts, try the next English candidate (up to 6). If none is confirmed, nothing changes — same behaviour as today.
The embedded-track rule stays the default. This only adds a fallback for files with no text track at all, and only with audio-confirmed timing, so the AI never translates a subtitle that is out of sync.
Alternatives Considered
- Using the best-scored English addon subtitle directly, without the audio: rejected, because a subtitle for another release/edit would be translated out of sync.
- Letting the user pick any addon subtitle as AI source manually: useful too, but it does not help the automatic flow.
Additional Context
I have this working in my personal fork (galinosT/ARVIO) on a Dune HD Homatics Box R 4K Plus, on top of ARVIO's own audio sync. Note: it depends on the retimed-file fix from my bug report (retimed subtitle files keyed only by provider + id), otherwise season-pack subtitles can feed the previous episode's text to the AI.
Would you be open to a PR for this? Happy to adapt it to how you'd prefer it structured.
- 主要言語
- Kotlin
- スター
- 760
- フォーク
- 122
- 平均マージ
- 22時間 38分
- マージ済み PR(30日)
- 80
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ProdigyV21/ARVIO のほかの issue
-
type:bug
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
ProdigyV21/ARVIO#931 ·
メンテナーはふだん 1 日以内に返信
-
area: web type:feature
難易度 2/5 1〜3時間 初心者へのやさしさ 63/100
ProdigyV21/ARVIO#444 · コメント 2 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
ProdigyV21/ARVIO#367 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
type:feature
難易度 3/5 半日 初心者へのやさしさ 62/100
ProdigyV21/ARVIO#929 ·
メンテナーはふだん 1 日以内に返信
-
type:bug
難易度 4/5 1〜2日 初心者へのやさしさ 48/100
ProdigyV21/ARVIO#927 ·
メンテナーはふだん 1 日以内に返信
ProdigyV21/ARVIO の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
krishnanunnir/vulcan-launcher#113 ·
メンテナーはふだん 3 日以内に返信
-
A model answer with prose after its fenced JSON is rejected as NOT_JSON対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンafk-ok importer size:S
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
enorm-labs/event-junkie#5404 ·
メンテナーはふだん 1 日以内に返信
-
enhancement good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 2 日以内に返信
-
PNI-only contacts synced from Storage Service are left with RegisteredState.UNKNOWN and never appear in New Chat対応中かも @ArviFoxy が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
signalapp/Signal-Android#15142 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
ready-for-agent
難易度 2/5 半日 初心者へのやさしさ 70/100
メンテナーはふだん 1 日以内に返信