Page 1 of 1
Error writing packet: Invalid argument
Posted: Thu Nov 30, 2023 2:14 am
by Simpler
Running 1.37.47 (latest commit) and I keep seeing the following error message repeated in my logs:
Code: Select all
2023/11/29 - 18:14:22 zmc_m6 458760 ERR Error writing packet: Invalid argument zm_videostore.cpp 1427
I saw the previous posts about this issue. One was on an earlier version.
viewtopic.php?p=131788&hilit=Error+writ ... nt#p131788
And the other said the system couldn't keep up.
viewtopic.php?p=132484&hilit=Error+writ ... nt#p132484
Neither the CPU nor the RAM is maxed out when this occurs. I currently only have two cameras capturing.
Any suggestions on things to try to alleviate this?
Re: Error writing packet: Invalid argument
Posted: Thu Nov 30, 2023 4:02 am
by dougmccrary
Maybe your storage is slow? I have 21 cameras, but at low frame rates and mostly 640 x 360 res.
I don't see that problem. I have Ubuntu OS on SSD and recordings going to HDD. I've added a second HDD for added history, but maybe in your case a second one would decrease load, if storage is the problem.
Re: Error writing packet: Invalid argument
Posted: Thu Nov 30, 2023 1:02 pm
by Simpler
Hi Doug,
Thanks for the reply. My OS is on an HDD, but my images and recordings are on an SSD.
Here are the write speeds of these disks:
Code: Select all
/tmp$ sync; dd if=/dev/zero of=tempfile bs=1M count=1024; sync
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB, 1.0 GiB) copied, 0.444337 s, 2.4 GB/s
Code: Select all
/data# sync; dd if=/dev/zero of=tempfile bs=1M count=1024; sync
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB, 1.0 GiB) copied, 0.483123 s, 2.2 GB/s
2GB/s seems pretty fast for both.
My 2 cameras are both 640x480 with Analysis FPS set to 9.00
Re: Error writing packet: Invalid argument
Posted: Thu Nov 30, 2023 2:04 pm
by iconnor
Are you recording audio? Most often I've seen this with strange audio streams.
The gist of the error is that ffmpeg is saying it didn't like the packet it was given. Maybe timestamps were invalid, or something. Would need debug level 3 to see what the packet looked like.
Re: Error writing packet: Invalid argument
Posted: Thu Nov 30, 2023 2:10 pm
by Simpler
No audio. I'll kick up the debug and see what I get.
Thanks
Re: Error writing packet: Invalid argument
Posted: Fri Dec 01, 2023 12:18 am
by dougmccrary
You might also think about getting the OS and database on SSD. I had some problems with my setups until I did that.
(That's mostly a simple way to get the database on SSD.)
Cheap 240GB sata ssds do nicely for me.
Re: Error writing packet: Invalid argument
Posted: Fri Dec 01, 2023 12:33 am
by Simpler
Database is on the same ssd as the images.
Thanks for the suggestions
Re: Error writing packet: Invalid argument
Posted: Fri Dec 01, 2023 1:18 am
by dougmccrary
Ah. OK then...
Re: Error writing packet: Invalid argument
Posted: Thu Jan 23, 2025 5:49 pm
by realrube
Hi, old thread but did you ever find a solution to this? I'm experiencing the same.
Simpler wrote: ↑Thu Nov 30, 2023 2:10 pm
No audio. I'll kick up the debug and see what I get.
Thanks