Documentation
¶
Overview ¶
Package embedded detects embedded subtitles in video files. Supports all containers and subtitle codecs that ffprobe can parse. Delegates stream detection to the subsync package (ffprobe wrapper).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider detects embedded subtitles via ffprobe.
func (*Provider) Name ¶
func (p *Provider) Name() api.ProviderID
Name returns the provider identifier.
type ProviderDirect ¶
type ProviderDirect struct{}
ProviderDirect provides direct access to embedded subtitle detection without going through the api.Provider interface. Returns all tracks (including bitmap) for coverage tracking.
Note: this type satisfies the search.TrackDetector interface, but the compile-time assertion lives in search/track_detector.go (search-side) rather than here, to keep this provider package decoupled from search/.
func (ProviderDirect) DetectTracks ¶
func (p ProviderDirect) DetectTracks(ctx context.Context, videoPath string) []api.EmbeddedTrack
DetectTracks detects embedded subtitle tracks in a video file. Returns all tracks including bitmap formats (PGS, VobSub) for coverage tracking. Codec filtering only applies to Search (downloadable subs). Implements search.TrackDetector.