Skip to content

missing frames #1954

Closed
Closed

Description

@dia-de-muertos

Did you read the guide?

Yes

What is the base version number of Motion being used?

5.2.x

What was the install method?

Built from source code

What is base architecture?

x86/x64

What is the distro being used?

Debian

Disto version number

13.4

Camera/Sound type(s) being used?

Network camera with RTSP

Describe the issue/problem and steps to reproduce

motion build from current master.
In every recorded video a lot of frames are missing.
Here a example picture_output:
Image
And here the recorded Video:
https://github.com/user-attachments/assets/765d531f-d75a-4660-adf8-aa2ba924b468
The guy from the picture is not in the video.
And this way all my recordings are :-(

Relevant Motion log output (at log_level 8)

picture_filename %CTerrasse
movie_filename %CTerrasse

width 640
height 480
framerate 31
movie_passthrough on
movie_all_frames off
minimum_motion_frames 28
event_gap 33
pre_capture 2
post_capture 4
picture_output best

threshold 2000
netcam_high_params allowed_media_types=video
netcam_url rtsp://xxx/Preview_01_sub
netcam_high_url rtsp://xxx/Preview_01_main

Activity

  1. tosiara commented on Apr 20, 2026

    @tosiara
    Member

    what is the timestamp on the photo?

  2. dia-de-muertos commented on Apr 20, 2026

    @dia-de-muertos
    Author

    hm, don't realy know
    filename is 11.04.41Terrasse.jpg
    so possibly 11:04:41, which is after the recording stopped

  3. dia-de-muertos commented on Apr 21, 2026

    @dia-de-muertos
    Author

    hm, timesamp of imgae is 09:13:53
    Image
    here the recorded video:
    https://github.com/user-attachments/assets/94d6bc75-fd08-4046-accb-cc6871b2836e
    is in the middle but the bird is not visible

  4. tosiara commented on Apr 21, 2026

    @tosiara
    Member

    I cannot see 09:13:53 on the picture, while video contains that timestamp and not the bird. Are you sure about the picture and the timestamp? Sometimes stream and substream may be not in sync, so you may see such weird recordings. Increasing pre- and post-capture may help, as well as adjusting camera's encoding to have all key frames or set it to CBR.

    Also you can try to enable movie_output_motion which will record changed pixels only so you can try to debug (https://motion-project.github.io/motion_config.html#movie_output_motion)

  5. tosiara commented on Apr 21, 2026

    @tosiara
    Member

    And I mean the timestamp that camera prints on the image, not motion's timestamp

  6. dia-de-muertos commented on Apr 21, 2026

    @dia-de-muertos
    Author

    That's my problem, the timestamp is not readable.
    I will try to save larger/less compressed images and
    also increase pre-/post-capture and enable movie_output_motion

  7. Mr-Dave commented on Apr 21, 2026

    @Mr-Dave
    Member

    Have you looked to see if there were multiple movies created during the event? Either in the log or in the directory. Or that the movie names are not overlapping and over writing each other? i.e. A second movie during the last part of the event is not overwriting a movie created during the first part of the event.

    Based upon the camera timestamps and playback duration, it looks like all the frames were recorded so just not sure if the bird was there during a time before or after this movie. (Recall that the "best" picture per event and there can be multiple movies per event. So the "best" image is not going to be in every movie created.)

  8. dia-de-muertos commented on Apr 21, 2026

    @dia-de-muertos
    Author

    No, there's only one movie, also only one recording in the logfile.
    Now I've set precapture to 4 and postcapture to 8.
    First tests are good. I little bit to much frames after the event (about 8-9 seconds),
    but better then before, where the event was not visible.
    Will wait a couple of days to see if it stays ok.

  9. locked and limited conversation to collaborators on Apr 22, 2026
  10. converted this issue into a discussion #1956 on Apr 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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