Repository navigation
ts_analyze 2.6.2: a T-STD model on decode times, PCR accuracy per interval, the decode lead per stream, and fixes from long live, loss and load runs.
Changed (verdicts can change on some streams; CHANGELOG.md has every detail)
- T-STD: this is now the ISO/IEC 13818-1 model.
- A PES leaves its buffer at its DTS (else PTS) on the program clock. Each packet is timed between its two neighbouring PCRs, which is exact for VBR muxes too.
- Underflow: an access unit arrives late, or the buffer is empty at the next decode time.
- Overflow: counted once per episode above max(ISO BSn, 1 s of the stream's rate).
- The model is independent of arrival timing, CPU load and the
-bhint. Before, it drained at a rate estimated from a 1 s warm-up, which drifted: clean streams read as start-up underflows or as overflows after minutes.
- 2.4 PCR_accuracy: TR 101 290 PCR_AC, judged per PCR interval at a median TS rate.
- A lost datagram is at most one error. Before, it was an offset that lasted to the end.
- PCR_AC assumes a constant TS rate, so read 2.4 only on CBR streams.
- PCR.drift: samples delivered off time are skipped (a stall's backlog, datagrams rebuilt by FEC). The JSON event carries the ppm.
- 2.3a / 2.3b: any unflagged PCR step, negative or above 2 s too, is 2.3b. 2.3a is then judged on the transport time.
- No PCR: a stream with no PCR at all exits 2, as documented.
- Absences:
- 1.6 counts an absence that ends;
- 2.5 counts PES without a usable PTS for more than 700 ms;
- required tables lost to the end of the analysis count;
- event times are when a table went missing.
- Live input:
- a pause ends the input only after
--wait-s, never past-t, and shows asIAT.gap; --rtpanalyses TS payloads of another payload type and reports S.2.
- a pause ends the input only after
New
- Decode lead per elementary stream: decode time minus arrival, min / avg / max in ms, next to its limit. Above the limit it raises the warning
TSTD.lead. - Shown in the text report, in XML (
lead_*_ms) and in JSON (context.tstd). - JSON:
first/lasttimes on every problem. - The XML root (
toolkit="…") and the JSON object ("toolkit") carry the toolkit attribution of NOTICE. - README: a quick start, requirements, a JSON sample, and a note on when to use ts_analyze.
2.6.2 is the first public release of these changes (2.6.1 was an internal build).
Static Linux x86_64 binary (musl), no dependencies. SHA-256: 2e215947fefc1c918c7de626364382fe4aa58f001f58d864b1591cd4430f2c6a
Part of the Perfect Streamer Toolkit by Perfect Soft (https://meshwork.pstreamer.tv). Apache-2.0. libdvbpsi (VideoLAN, LGPL-2.1-or-later) is linked statically; see NOTICE.