TS Diagnostics, Trim & Lossless MP4 Remux
Inspect MPEG transport-stream programs, PIDs, codecs, timing, continuity errors, scrambling, and keyframes. For a narrowly compatible H.264/AAC program, preview keyframes, choose a trim range, and copy the streams into MP4 without re-encoding.
Compatibility first: MP4 output is enabled only for one unscrambled H.264 video stream plus optional AAC/ADTS audio. MPEG-2 video, HEVC, AC-3, encrypted/scrambled streams, missing program maps, and other variants remain diagnostics-only. Lossless trim starts snap to a detected keyframe.
Мясцовы files remain in this browser. Diagnostics are capped at 256 MiB; the pinned 31 MiB FFmpeg runtime is loaded only for compatible preview/remux operations, which are capped at 96 MiB.
Transport-stream summary
PAT / PMT program and codec table
Program association and program-map sections are CRC-checked before their elementary PIDs and codecs are reported.
| праграма | PMT PID | PCR PID | Stream PID | Кодэк | PSI / descriptors |
|---|
PID traffic and error report
Bitrates are estimates from packet counts and the recovered duration. Null packets remain visible but do not create continuity errors.
| PID | Role / codec | Пакеты | Бітрэйт | Пераемнасць | ТЭІ | Скрэмблаваны | Выпадковы доступ |
|---|
Continuity-error details
| Пакет | PID | Expected CC | Actual CC | Класіфікацыя |
|---|
Lossless trim and MP4 remux
A compatible stream and detected keyframe are required for lossless trim planning.
“Lossless” means codec packets are copied with -c copy; the MP4 container is new. Trim is keyframe-aligned and not frame-accurate.
Compatible MP4 preview and keyframe thumbnails
Без папярэднягаview prepared. Diagnostics do not require decoding; preview and thumbnails load the pinned local FFmpeg runtime only when requested.
Prepare the compatible MP4 preview to render keyframe thumbnails.
Local processing log
TS diagnostic and remux boundaries
TS diagnostics and remux questions
What does the PID/program report prove?
It reports packet-level structures actually recovered from the file: PAT and PMT sections, their CRC status, mapped PIDs/codecs, PCR PID, traffic counts, transport-error flags, continuity counters, scrambling control, and bounded timing evidence.
Which TS files can be remuxed losslessly to MP4?
This route intentionally enables stream copy only for one unscrambled H.264/AVC video stream plus optional AAC/ADTS audio. Unsupported codecs and incomplete program maps remain visible in diagnostics but do not receive a misleading conversion button.
Why can the trim start move earlier?
Starting between keyframes would require decoding and re-encoding part of the video. The lossless path instead snaps backward to the nearest detected keyframe and shows the actual chosen time. End time remains approximate.
Does a continuity error prove visible corruption?
No. It proves an unexpected continuity-counter transition on a PID. The missing or repeated packet may affect video, audio, metadata, or nothing visible; the per-PID table provides the context.
Ёсць files uploaded or transcoded?
Мясцовы files remain in the browser. Compatible MP4 output uses a pinned local FFmpeg WebAssembly runtime with codec copy, not transcoding. URL mode contacts only the URL you provide and requires CORS permission.