Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

All recorded videos have a 3 seconds freeze in the beginning #2887

Open
hpicelli opened this issue Dec 12, 2023 · 15 comments
Open

All recorded videos have a 3 seconds freeze in the beginning #2887

hpicelli opened this issue Dec 12, 2023 · 15 comments

Comments

@hpicelli
Copy link

Hi there,
I'm facing this problem.
In a recorded video (all videos have this issue), it plays one second, freeze for 3 seconds, then plays normal until the end.
I'm using mp4 (h264) now, but tested avi (mpeg4) and the problem persists on all formats i've tested.
Check attached video.

motionEye Version: 0.43.0
Motion Version: 4.5.1
OS Version: Linux 6.1.0-13-686-pae (Debian 12 32bit)
*Using 32bit OS because i'ts a old machine. This issue is only on 0.43.0, 0.42 runs ok.

Best regards,
Henrique

ENTRADA_07-20-32.mp4
@scott-vincent
Copy link

I have the same problem where first 3 seconds of every recorded video is frozen. Running on Raspberry Pi 5 with 64-bit OS.

@MichaIng MichaIng added this to the v0.43.0 milestone Dec 29, 2023
@guaycuru
Copy link

guaycuru commented Jan 29, 2024

I have the same problem. I thought it was the encoder using too much cpu but changing the codec makes no difference

@bnhnbnhn
Copy link

I also have the same problem. Is it possible to downgrade to version 0.42.1 under dietpi?

@hpicelli
Copy link
Author

hpicelli commented May 24, 2024 via email

@Marijn0
Copy link

Marijn0 commented Jun 29, 2024

Maybe this has something to do with the pre_capture value:
https://motion-project.github.io/4.5.1/motion_config.html#pre_capture

Can someone who is experiencing this issue set the 'Captured Before' in motionEye to 0 and see if it makes a difference?

@MichaIng
Copy link
Member

MichaIng commented Jun 30, 2024

Indeed, pre_capture is set to 1 (second) by default. Not sure whether it can take 3 seconds to process this 1 second though. At least worth an attempt. Can be changed in motionEye UI.

EDIT: Also strange, while there should be 1 second of still frames at the beginning of the recording, it is not. Or the number of changed frames of the 1st second is not above the threshold, and would be missing without pre_capture 🤔.

@hpicelli
Copy link
Author

hpicelli commented Jul 1, 2024 via email

@Marijn0
Copy link

Marijn0 commented Jul 1, 2024

@hpicelli

What type of camera did you use?
Did you upgrade motioneye to 0.43.0 from 0.42 or a fresh installation?

@MichaIng
Copy link
Member

MichaIng commented Jul 3, 2024

The "captured before" and the "captured after" are defined in frames, not
seconds.

Oh right. Please assign "0" to "captured before", to see if it plays a role at all. "captured after" and "motion gap" do not matter in this regards.

See attached image.

Images cannot be posted when you answer via email.

@Marijn0
Copy link

Marijn0 commented Jul 3, 2024

Even if you have set pre_capture=0 there is probably still a buffer:
https://motion-project.github.io/4.5.1/motion_config.html#minimum_motion_frames
But even if this were the problem, it would be more down to motion 🤔

@MichaIng
Copy link
Member

MichaIng commented Jul 3, 2024

But that section of the docs at least does not state that one will miss frames until the buffer has been processed. I am not sure how motion handles this internally, so worth a try to disable pre-capture, where this is mentioned explicitly. But if it does not help, also setting minimum motion frames to "1" could be tested. motionEye sets this to 20 by default, but can be adjusted in web UI as well.

@hpicelli
Copy link
Author

hpicelli commented Jul 4, 2024

@hpicelli

What type of camera did you use? Did you upgrade motioneye to 0.43.0 from 0.42 or a fresh installation?

Hi.
Fresh 0.43.0. Upgraded to 0.43.1b2 yesterday. Same issue.
Cameras are generic. In 0.42 does't have this problem.

@Marijn0
Copy link

Marijn0 commented Jul 4, 2024

@hpicelli
Have you tried assigning 0 to captured before??
And 1 to minimum motion frames??
And if this doesn't solve the problem, please also try turning on Movie Passthrough!

Motion-Project/motion#1494 (comment) 🤔

@hpicelli
Copy link
Author

hpicelli commented Jul 4, 2024

Hi folks.
capture before set to 0: the problem stills (@MichaIng informed that maybe the 0 = 20 (default by motion))
capture before set to 1: the problem stills
Both options tested after system reboot.

@Marijn0

@hpicelli
Copy link
Author

hpicelli commented Jul 4, 2024

@Marijn0

Activating the button still causes the same problem.
No changes so far have changed the problem at all.
To ensure this, the system is restarted with every change made.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

6 participants