Skip to content

RTSP stream frequently interrupted causing recording gaps (AVERROR_EXIT) #413

@rivandraa

Description

@rivandraa

Description :

I’m experiencing frequent RTSP interruptions when recording a stream via go2rtc. This causes the MP4 recorder to stop and restart repeatedly, resulting in recording gaps.

Logs :
2026-05-02 09:02:09.700WARN[MP4Writer] [Home] Recording gap detected for stream 'Home': 7s gap
2026-05-02 09:02:09.667WARN[MP4Writer] [Home] RTSP read interrupted (AVERROR_EXIT) for /mnt/usb/mp4/Home/recording_20260502_090107.mp4 — recording thread is being stopped
2026-05-02 09:02:08.882WARNMP4 recording for stream Home exists but is dead, cleaning up before restart
2026-05-02 09:01:06.504WARNMP4 recording for stream Home exists but is dead, cleaning up before restart
2026-05-02 09:01:00.362WARN[MP4Writer] [Home] RTSP read interrupted (AVERROR_EXIT) for /mnt/usb/mp4/Home/recording_20260502_090010.mp4 — recording thread is being stopped
2026-05-02 09:01:00.349WARN[MP4Recorder] [Home] Stream Home: inner RTSP thread failed 5 times in a row. Entering 300-second cooldown before next attempt.
2026-05-02 09:00:10.279WARN[MP4Writer] [Home] RTSP read interrupted (AVERROR_EXIT) for /mnt/usb/mp4/Home/recording_20260502_085920.mp4 — recording thread is being stopped
2026-05-02 09:00:10.179WARN[MP4Recorder] [Home] Inner RTSP thread for stream Home dead for 5+ s, restarting (attempt 5/5)
2026-05-02 08:59:20.106WARN[MP4Writer] [Home] RTSP read interrupted (AVERROR_EXIT) for /mnt/usb/mp4/Home/recording_20260502_085830.mp4 — recording thread is being stopped
2026-05-02 08:59:20.029WARN[MP4Recorder] [Home] Inner RTSP thread for stream Home dead for 5+ s, restarting (attempt 4/5)
2026-05-02 08:58:29.933WARN[MP4Writer] [Home] RTSP read interrupted (AVERROR_EXIT) for /mnt/usb/mp4/Home/recording_20260502_085739.mp4 — recording thread is being stopped
2026-05-02 08:58:29.791WARN[MP4Recorder] [Home] Inner RTSP thread for stream Home dead for 5+ s, restarting (attempt 3/5)
2026-05-02 08:57:39.675WARN[MP4Writer] [Home] RTSP read interrupted (AVERROR_EXIT) for /mnt/usb/mp4/Home/recording_20260502_085649.mp4 — recording thread is being stopped
2026-05-02 08:57:39.540WARN[MP4Recorder] [Home] Inner RTSP thread for stream Home dead for 5+ s, restarting (attempt 2/5)
2026-05-02 08:56:49.519WARN[MP4Writer] [Home] Recording gap detected for stream 'Home': 20s gap
2026-05-02 08:56:49.474WARN[MP4Writer] [Home] RTSP read interrupted (AVERROR_EXIT) for /mnt/usb/mp4/Home/recording_20260502_085559.mp4 — recording thread is being stopped
2026-05-02 08:56:49.345WARN[MP4Recorder] [Home] Inner RTSP thread for stream Home dead for 5+ s, restarting (attempt 1/5)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions