feat(api): extract an embedded track on demand #261
Reference in New Issue
Block a user
Delete Branch "issue/260-extract-on-demand"
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?
Closes #260.
The reconcile loop extracts an embedded text track only while it is already translating a gap, so on a file where nothing is missing no sidecar is ever written and the translate lane says "nothing to translate from" about a file carrying an English text track.
/subtitles/statusjoins the codec in frommedia_files.probedand lists the file's extractable text tracks. Image-format tracks are never listed (§15 does not OCR); forced ones are not either, since a language has exactly one sidecar and no filename segment marks a forced one.POST /api/media-files/{id}/subtitles/extractwrites one track out. It claims the language and the path the same way a grab does, so a language that already has a sidecar is a 409.alassis deliberately not run: the track already carries the video's own timings.The daemon now passes its configured
ffmpeg_pathto the API. It never did, so the health lamp probed whateverPATHresolved; the extract lane runs the same binary.Verified
just cigreen. Exercised end to end against a local daemon with a real.mkv: picking thept-PTtrack wrote… - [1080p][WEB-DL].pt-PT.srtbeside the video with the Portuguese cues, and the lane repainted with it as a source.