Repository navigation
Releases
ts_analyze 2.6.2
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.
ts_analyze 2.6
ts_analyze 2.6: RTP, SMPTE ST 2022-1 FEC and ST 2022-7 inputs, a JSON report, and check ids that follow ETSI TR 101 290.
New (off by default; without these options the analysis is the same as in 2.5, apart from the TR 101 290 changes below)
--rtp: RTP input. Sequence numbers, losses, payload type and SSRC are checked.--fec: SMPTE ST 2022-1 (Pro-MPEG) FEC.- Column FEC arrives on port+2 and row FEC on port+4. 1D and 2D are detected from the stream.
- Lost datagrams are rebuilt before the TR 101 290 analysis.
--path2 <udp://...>(with--path-skew-ms): SMPTE ST 2022-7. Two paths of one stream are merged seamlessly by RTP sequence number.- Checks S.1-S.6 (unrecoverable loss, RTP protocol errors, path down, paths differ, path skew, FEC absent) take part in the verdict and exit code when the options are given.
--json: one compact JSON object (schemats_analyze/1) for scripts and AI agents. It holds the verdict, the exit code, and each problem with its standard clause, times and first events.
Changed
- Check ids follow ETSI TR 101 290 in the text, XML and JSON output. Checks the standard does not have get
AREA.nameids. The old ids are gone; CHANGELOG.md has the table. - 2.3a PCR_repetition_error fails above 40 ms, the TR 101 290 limit. Streams that send PCR every 80 ms now fail it.
-l/--pcr-limitis removed. - 1.1 and 1.2 follow TR 101 290.
- 1.1 TS_sync_loss = 2 or more bad sync bytes in a row; 1.2 Sync_byte_error = each one.
- A bad sync byte no longer shifts the packet boundaries.
- CRC errors count only in 2.2.
- A packet with the transport error indicator set no longer causes CC errors.
- UDP inputs wait for the first datagram up to
--wait-s(default 10 s). -V/--versionprints the version.
Static Linux x86_64 binary (musl), no dependencies. SHA-256: 8fdb3156b0028629659bcba4e6ff22a462ecf0df32886230b15faff8c5488071
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.
ts_analyze 2.5
ts_analyze 2.5: ETSI TR 101 290 (P1-P3), ISO/IEC 13818-1 T-STD buffer model, PCR accuracy and drift, UDP inter-arrival time; one verdict and exit code for every report mode.
Static Linux x86_64 binary (musl), no dependencies. SHA-256: 13f8907dfbe9ada72e0258f1c6aa049ca19f305643bf02248023c8cf6f291d82
Part of the Perfect Streamer Toolkit (https://meshwork.pstreamer.tv). Apache-2.0; libdvbpsi (VideoLAN, LGPL-2.1-or-later) is linked statically, see NOTICE.