[FEATURE]: AI translation when the file has no text track: use an English addon subtitle once audio sync confirms it
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- kotlin
- Ambito
- mobile-dev
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Kotlin
- Stelle
- 760
- Fork
- 122
- Merge medio
- 22h 38m
- PR unite (30g)
- 80
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di ProdigyV21/ARVIO
-
type:bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
ProdigyV21/ARVIO#931 ·
I maintainer di solito rispondono entro 1 giorno
-
area: web type:feature
Difficoltà 2/5 1-3 ore Idoneità per principianti 63/100
ProdigyV21/ARVIO#444 · 2 commenti · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
ProdigyV21/ARVIO#367 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
[FEATURE]:next buttonApertatype:feature
Difficoltà 3/5 Mezza giornata Idoneità per principianti 62/100
ProdigyV21/ARVIO#929 ·
I maintainer di solito rispondono entro 1 giorno
-
type:bug
Difficoltà 4/5 1-2 giorni Idoneità per principianti 48/100
ProdigyV21/ARVIO#927 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di ProdigyV21/ARVIO
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
krishnanunnir/vulcan-launcher#113 ·
I maintainer di solito rispondono entro 3 giorni
-
A model answer with prose after its fenced JSON is rejected as NOT_JSONForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertaafk-ok importer size:S
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
enorm-labs/event-junkie#5404 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 2 giorni
-
PNI-only contacts synced from Storage Service are left with RegisteredState.UNKNOWN and never appear in New ChatForse già presa @ArviFoxy l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
signalapp/Signal-Android#15142 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
ready-for-agent
Difficoltà 2/5 Mezza giornata Idoneità per principianti 70/100
I maintainer di solito rispondono entro 1 giorno