Commit Graph
13 Commits
Author SHA1 Message Date
Esa Kataja 5584bbca57 fix: detect video stream by codec_type instead of codec name allowlist
GetMediaInfo previously only recognized mpeg2video/h264/hevc and silently
returned 0x0 with no error for other codecs (VC-1, MPEG-4 ASP, AV1,
ProRes), causing DetectMediaType to misclassify as DVD and feeding bogus
dimensions to the zscale filter. Pick the first stream with
codec_type=video and return an explicit error if none is found.
2026-05-16 20:07:33 +03:00
Esa Kataja 0662ee3576 fix: drop literal quotes from TITLE and COLLECTION metadata
exec.Command does not invoke a shell, so the wrapping " characters
were inserted into the muxed tag value verbatim (e.g. TITLE read as
"Snatch" instead of Snatch). Use unquoted Sprintf format strings.
2026-05-16 20:07:24 +03:00
Esa Kataja 07f999a338 fix: correct interlace detection and reap idet child
The previous detector substring-matched "TFF"/"BFF" against idet's own
label text, so it returned true on every source, and `cmd.Start()` was
never paired with `Wait()`, leaving a zombie ffmpeg per file.

Run idet bounded with `-frames:v 400 -an -sn -f null -` so it completes,
use CombinedOutput so the child is reaped, and parse the "Multi frame
detection" summary line — interlaced only when TFF+BFF > Progressive.
2026-05-16 19:39:33 +03:00
Esa Kataja 4783d0e0d4 fix: restore metadata tags and sanitize output filenames 2026-04-04 19:39:17 +03:00
Esa Kataja 3f3eef5d1f add: keyint=10s svtav1 parameter 2026-04-04 19:34:55 +03:00
Esa Kataja 9d8cc17e69 fix: add -preset as separate FFmpeg argument 2026-04-04 19:27:00 +03:00
Esa Kataja 832e5568f5 fix: preserve stream language metadata using ffprobe and -map_metadata -1 2026-04-04 19:20:46 +03:00
Esa Kataja 31b5f03e09 fix: use ffprobe for SAR detection and calculate zscale width 2026-04-04 19:18:43 +03:00
Esa Kataja 4eeacfe551 fix: use consistent filenames for audio extraction 2026-04-04 19:00:30 +03:00
Esa Kataja bc58017414 fix: reorder FFmpeg args to fix input option error 2026-04-04 18:58:10 +03:00
Esa Kataja 935912e376 fix: improve FFmpeg output parsing for resolution detection 2026-04-04 18:08:49 +03:00
Esa Kataja 53adafbc40 add: add interlaced detection and bwdif deinterlacing 2026-04-04 18:08:25 +03:00
Esa Kataja 0f11c62c4d add: add encoder, mover, watcher, and logger packages 2026-04-04 18:07:37 +03:00