Skip to content

Muxer error when using always available file #5775

@JustJoostNL

Description

@JustJoostNL

Which version are you using?

1.18.2

Which operating system are you using?

Linux arm64 Docker

Describe the issue

When MediaMTX tries to switch to the always available file when the stream "ends", it has the following error:
muxer error: unable to extract DTS: DTS is greater than PTS. This results in all video players freezing.

Describe how to replicate the issue

  1. start MediaMTX & for alwaysAvailableFile put a H265 MPEG-4-audio mp4 file
  2. publish with SRT: HEVC (H265) & MPEG-4 Audio
  3. read with web player
  4. stop publishing
  5. observe the error

MediaMTX configuration

paths:
  mypath:
    source: publisher
    useAbsoluteTimestamp: false
    alwaysAvailable: true
    alwaysAvailableFile: "end.mp4"

MediaMTX logs

INF [HLS] [muxer mypath] destroyed: muxer error: unable to extract DTS: DTS is greater than PTS

Packet dump

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions