Support .ts/.m2ts/.mts transport streams#28
Merged
Merged
Conversation
…er already handle them, only the scanner's extension gate said no.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
用户有 .ts(MPEG-TS)录制文件。转录管线(ffmpeg 抽音频)和播放器(Qt FFmpeg 后端)本就原生支持 TS,唯一的拦截点是扫描器的扩展名白名单。
改动与实现
.ts.m2ts.mts(同为 MPEG 传输流家族,AVCHD 摄像机常用后两者),其余零改动验证
uv run pytest -q:164 passed / 5 skipped,新增扫描器用例extract_audio产出 16kHz 单声道 WAV(转录入口 ✓);播放器离屏实播 .ts,字幕正常叠加(✓)已知边界
.ts与 TypeScript 源码同后缀:若把代码目录整个拖进来,其中的 .ts 源码会被当媒体收进列表,并在 ffmpeg 探测阶段以清晰的单文件错误失败(不影响其他文件)