Skip to content

Flickering in the recordings when using RTSP #1874

@blind-oracle

Description

@blind-oracle

Did you read the guide?

Yes

What is the base version number of Motion being used?

4.7.x

What was the install method?

Installed via package tool

What is base architecture?

x86/x64

What is the distro being used?

Ubuntu

Disto version number

24.04

Camera/Sound type(s) being used?

Network camera with RTSP

Describe the issue/problem and steps to reproduce

Hello and thanks for the awesome project!

I have a Reolink RLC-810A IP camera, it emits 4K H.265 stream over RTSP, camera is connected over LAN (not Wi-Fi).

When recording motion events or timelapses using Motion the resulting files have regular (every few seconds) 1-2-frame glitches in them, like this:

Image

When I watch the same stream using VLC everything is fine.
Is there anything that I can do to improve that? Thanks in advance.

P.S.
There's no CPU overload, no network packet loss or anything like this.

The config is very simple e.g.

camera_name Garage

width 3840
height 2160
framerate 5

netcam_url rtsp://foo:[email protected]:554/h264Preview_01_main

timelapse_codec mpeg4
timelapse_interval 1
timelapse_mode hourly

target_dir /var/lib/motion/garage
timelapse_filename %Y-%m-%d/%Y-%m-%d-%H_timelapse

Relevant Motion log output (at log_level 8)

Not relevant

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions