add: WebDL / TVRip media types and filename-token override

Source kind is now declared per-file via a `dvd` / `bluray` / `webdl` /
`tvrip` token in the basename (case-insensitive, word-bounded). Matches
the existing `tt…` / `tvm…` filename convention. When no token is
present, falls back to the pixel-count guess in DetectMediaType, which
still only chooses between DVD and Blu-ray.

The parsed media type drives both ORIGINAL_MEDIA_TYPE in the muxed
metadata and the CRF/preset profile used for encoding. EncodingConfig
gains `webdl` and `tvrip` sub-blocks with conservative defaults
(WebDL 30/3, TVRip 32/2); user can override in config.yaml.

Manual updated with the new tokens, config fields, and pipeline
description.
This commit is contained in:
Esa Kataja
2026-05-16 20:17:10 +03:00
parent 022d131cd6
commit 244bdce586
5 changed files with 94 additions and 13 deletions
+4
View File
@@ -9,6 +9,8 @@ type MediaType string
const (
MediaTypeDVD MediaType = "DVD"
MediaTypeBluRay MediaType = "Blu-ray"
MediaTypeWebDL MediaType = "WebDL"
MediaTypeTVRip MediaType = "TVRip"
)
type Job struct {
@@ -42,6 +44,8 @@ type Config struct {
type EncodingConfig struct {
DVD EncodingParams `yaml:"dvd"`
Bluray EncodingParams `yaml:"bluray"`
WebDL EncodingParams `yaml:"webdl"`
TVRip EncodingParams `yaml:"tvrip"`
}
type EncodingParams struct {