Skip to content

Application provided invalid, non monotonically increasing dts to muxer #2

@dministro

Description

@dministro

We need a better solution to avoid:

[mp4 @ 0000028a15573080] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 130111755 >= 130111119
fail: VisusCore.Devices.Rtsp.Services.RtspStreamProducer[4h7m66q9ezczx5tvkw9n84gyxf][4gtxhkpke4s2rtvbcqr2nz4fxw][0]
      Error while capturing segments.
      VisusCore.Native.Ffmpeg.Core.AVException: Error writing frame.
      Invalid argument
         at VisusCore.Native.Ffmpeg.Core.AVException.ThrowIfError(Int32 errorCode, String message) in D:\Projects\VisusCore\sw_PC\VisusCore.Web\src\Libraries\VisusCore.Native\VisusCore.Native.Ffmpeg.Core\AVException.cs:line 36
         at VisusCore.Native.Ffmpeg.Core.StreamSegmenter.Segmenter.Worker() in D:\Projects\VisusCore\sw_PC\VisusCore.Web\src\Libraries\VisusCore.Native\VisusCore.Native.Ffmpeg.Core\StreamSegmenter\Segmenter.cs:line 273
      --- End of stack trace from previous location ---
         at VisusCore.Native.Ffmpeg.Core.StreamSegmenter.Segmenter.GetNextSegmentAsync(CancellationToken cancellationToken) in D:\Projects\VisusCore\sw_PC\VisusCore.Web\src\Libraries\VisusCore.Native\VisusCore.Native.Ffmpeg.Core\StreamSegmenter\Segmenter.cs:line 186
         at VisusCore.Devices.Rtsp.Services.RtspStreamProducer.CaptureSegmentsAsync(CancellationToken cancellationToken) in D:\Projects\VisusCore\sw_PC\VisusCore.Web\src\Modules\VisusCore.Devices.Rtsp\VisusCore.Devices.Rtsp\Services\RtspStreamProducer.cs:line 134
         at VisusCore.Devices.Rtsp.Services.RtspStreamProducer.SegmenterAsync(CancellationToken cancellationToken) in D:\Projects\VisusCore\sw_PC\VisusCore.Web\src\Modules\VisusCore.Devices.Rtsp\VisusCore.Devices.Rtsp\Services\RtspStreamProducer.cs:line 106

For inspiration: https://stackoverflow.com/questions/76197705/error-application-provided-invalid-non-monotonically-increasing-dts-to-muxer-i

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions