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

Motion stops recording after 00.mp4 #810

Open
jaajee opened this issue Nov 29, 2024 · 1 comment
Open

Motion stops recording after 00.mp4 #810

jaajee opened this issue Nov 29, 2024 · 1 comment

Comments

@jaajee
Copy link

jaajee commented Nov 29, 2024

I have a unique issue. I’ve been using wz_mini_hacks on my V3 for a long time, but for the past 1.5 years, I’ve noticed something strange. Every time the clock hits zero minutes (e.g., 10:00), my camera stops recording and writing to the tmp folder.

I’ve observed this happening live. When the clock reaches :00 minutes (e.g., 10:00), the 00.mp4 file gets stuck and stops recording. That file remains in the tmp folder, and no further recordings occur afterward. To fix this issue, I have to restart my camera. However, I’m unsure what’s causing it to stop precisely at zero minutes every time.

To address this, I’ve set up a cron job in /opt/wz_mini/etc/cron/root that runs at the start of every hour. The cron job locates the 00.mp4 file, deletes it, and then reboots the camera. While this approach seems to work, I do lose a couple of minutes of recording every hour, which isn’t ideal.

Here’s the cron job I’m using:

0 * * * * rm -f /media/mmc/record/00.mp4 && /sbin/reboot

P.S. I’ve mounted /media/mmc to a network drive and save my recordings to an NFS/CIFS network drive.

@virmaior
Copy link
Contributor

this sounds like an issue related to the cleanup function.

are you using network storage?
how big is your SD card?

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

No branches or pull requests

2 participants