Skip to content

v0.10.31: forward frames before the keyframe

Choose a tag to compare

@gnacho gnacho released this 05 Nov 23:16
· 30 commits to main since this release

Frames can reach the viewer before the first keyframe.

Added

  • WIBOX_VIDEO_ALL_FRAMES, exposed as the video_all_frames option (off by
    default). Until now every video frame before the first IDR was discarded, and
    the doorbell can go a minute and a half, or the whole session, without one, so
    a consumer received audio only.
  • With the option on, every frame is forwarded. Colours are wrong until a
    keyframe arrives, but there is a picture and the stream stays well formed.

Fixed

  • The G711A audio was written twice when the output is MPEG-TS: once inside the
    transport stream and once on stderr, which go2rtc collects as process log.

Verified

  • TestShouldSkipFrame covers the five combinations of the discard rule,
    TestEnvFlag the truth values, TestMpegtsEnabled the muxed output switch.
  • gofmt, go vet clean, full suite green in 8.0 s, coverage 64.1% against a CI
    floor of 62%.

Not verified

  • The live picture in Home Assistant: needs a waking window and the option
    enabled in the add-on.