github hua0512/rust-srec mesio-v0.7.0

one month ago

mesio 0.7.0

Mesio is the standalone media (HLS/FLV) streaming downloader engine and CLI.

Fixed

  • fMP4 HLS streams that switch initialization segments (#1046). Streams that change their init segment, for example around inserted ads, no longer write media after a switch back with the wrong initialization data. An ad's initialization data no longer leaks into the main recording, and a retried download no longer starts a file without one.
  • Redirected HLS playlists (#1046). Segment, key and init addresses now resolve against the server that actually delivered the playlist, so a playlist that redirects to another host no longer fails every segment.
  • HLS recordings no longer end or lose segments under pressure (#1047, #1048). Segments that drop out of the live playlist while still waiting to download or retry are kept, up to one playlist's worth. An empty or briefly outdated playlist no longer counts as a stream reset. Large segments are no longer failed while other downloads hold the memory budget, and single-file streams whose server ignores byte ranges download correctly. MPEG-TS streams that declare an EXT-X-MAP stay MPEG-TS.
  • --hls-retries now takes effect (#1047). The segment retry count and delays decide how often a failed segment is retried before it is skipped. Encryption keys are retried on network errors, timeouts, 5xx, 408 and 429.
  • HLS variant selection (#1047). Keyframe-only (EXT-X-I-FRAME-STREAM-INF) playlists are never selected, and audio-only and video-only selection go by the codecs a variant actually contains.
  • HLS splitting by size (#1045). Every file starts with its initialization data, and splits are placed so files stay within the limit; an oversized first item is kept whole. A resolution change no longer splits the recording repeatedly, and MPEG-TS program table revisions no longer produce duplicate programs.
  • FLV output and recovery (#1042, #1047, #1048). Every tag is written with its trailing back-pointer, AAC configuration is parsed correctly, E-AC-3 uses its standard codec name, and repeated sequence headers no longer shift timestamps. After corrupted data, parsing resumes at the next genuine tag instead of swallowing up to 16 MiB of real tags. A server that stalls before sending data no longer delays cancellation until the read timeout, an error page is reported as invalid content instead of a clean end, and a stream whose first bytes arrive in very small pieces is accepted.
  • Twitch ad detection (#1047) no longer logs a warning on every playlist refresh or misses new ad ranges on long streams.
  • Credentials stay out of logs (#1046, #1048, #1057). Proxy logins are no longer printed, and query values in stream addresses, which often carry tokens, are masked in errors and logs. Proxy usernames and passwords containing reserved characters such as @, :, % or spaces now work.

Performance

  • The FLV path no longer copies every downloaded byte through an extra buffer or keeps read buffers alive between tags (#807). MPEG-TS analysis is cached and reused when splitting HLS output (#1045).

Library changes

  • flv-fix duplicate-tag filtering is now off by default (#1042). The mesio CLI already turned it off, so its output is unchanged. DuplicateTagFilterConfig and TagClass gained fields; struct literals need them or a default initializer.
  • pipeline-common adds PostWriteAction::RotateOnNextItem (#1045), and media-types adds a SplitReason for manual splits (#1038). Exhaustive matches need the new variants.
  • The unused HlsEngineConfig::lifecycle_retry_* fields are removed (#1047); max_segment_retries, segment_retry_delay_base and max_segment_retry_delay control segment retries.
  • FlvWriter::write_tag and write_tag_with_filter take &[u8] instead of Bytes (#807).
  • The disk cache stores each entry in one versioned file (#1046); entries written by earlier versions are treated as cache misses. Multi-source HLS sessions no longer hang when the consumer stops reading, and sources recover after temporary failures (#1046, #1047).

Full Changelog: mesio-v0.6.0...mesio-v0.7.0

Don't miss a new rust-srec release

NewReleases is sending notifications on new releases.