Commit Graph
3 Commits
Author SHA1 Message Date
hoelee fc3d1ff022 fix(tracks): ffprobe / ffmpeg 子进程统一 CREATE_NO_WINDOW
Windows 上每次探测轨道、取流摘要都会闪一个黑窗(命令行窗口),
批量扫描几百个文件时尤其明显。ffprobe 的 subprocess.run 与
_stream_digest 的 ffmpeg Popen/run 全部加 creationflags=NOWIN,
与 library_run.py / transcode.py 的既有做法保持一致。

scripts.test_tracks 55/55。
2026-10-29 08:03:18 +08:00
hoelee 68a2265026 fix(tracks): honour TRANSCODE_FFPROBE instead of the bare name
packaged builds ship ffmpeg inside their own tree; tracks.py called `ffprobe` by
bare name, which only resolved because this host has ffmpeg on PATH. The bundle
acceptance strips PATH on purpose, so probe() raised FileNotFoundError [WinError 2]
two seconds into the item and the queue logged it as a quality refusal.
Mirror transcode.py:36-37 (TRANSCODE_*/RT_* with a bare fallback).
2026-10-24 08:53:39 +08:00
Hermes Agent f088ae78e3 feat(tracks): carry every audio track, subtitle and font attachment
MP4 (default) keeps the 'opens anywhere' promise: all audio tracks become AAC at the
source's own channel layout (5.1 stays 5.1), text subtitles become mov_text, bitmap
subtitles are skipped with a logged note, font attachments are not carried.
container=mkv is the explicit fidelity mode: every audio/subtitle/attachment stream is
copied bit-for-bit, chapters and tags ride along.

New scripts/tracks.py holds the pure plan + the container-aware gate; library_run.py
uses it for mapping, per-track codecs, container extension, install-path names and the
hvc1 check (Matroska has no codec tag). Capability report gains container/audio_downmix/
subs and 'containers' (contract 3, version 1.2.0).

Verified: scripts/test_tracks.py 55/55 (both containers end to end, per-packet md5),
plus two real library_run.py runs (MP4 3x AAC incl. 6ch + 2x mov_text; MKV bit-exact).
2026-10-24 03:56:30 +08:00