Page 1 of 1
Repeated error message:
Posted: Wed Jul 06, 2022 11:26 am
by jogo
I am getting repeatedly error messages related to a certain camera like
Code: Select all
Jul 06 13:15:05 <redacted> zmc_m4[2230]: ERR [zmc_m4] [Error writing packet: Invalid argument]
Jul 06 13:15:05 <redacted> zmc_m4[2230]: WAR [zmc_m4] [non increasing dts, fixing. our dts -4241066805 stream 0 last_dts 50175740]
Jul 06 13:15:05 <redacted> zmc_m4[2230]: WAR [zmc_m4] [pkt.dts(50175740) must be <= pkt.pts(-4241066805).Decompression must happen before presentation.]
I am not sure whether this is related to Zoneminder or the camera, which happens to be one of the more expensive Hanwha cameras. Other Hanwha cameras do not produce these messages (afaik).
Re: Repeated error message:
Posted: Wed Jul 06, 2022 4:18 pm
by Magic919
There was a similar sounding thread recently. Think it was the ffmpeg version behind it in the end.
Re: Repeated error message:
Posted: Fri Sep 15, 2023 4:08 am
by Vit-Lucius
Good time of day.
I had exactly the same error with 4 cameras. The program version is 1.36.33.
Code: Select all
9/15/23, 11:48:21 AM GMT+8 zmc_m24 42622 ERR Error writing packet: Invalid argument zm_videostore.cpp 1425
9/15/23, 11:48:21 AM GMT+8 zmc_m40 42653 ERR Error writing packet: Invalid argument zm_videostore.cpp 1425
9/15/23, 11:48:20 AM GMT+8 zmc_m23 42775 ERR Error writing packet: Invalid argument zm_videostore.cpp 1425
9/15/23, 11:48:20 AM GMT+8 zmc_m23 42775 WAR pkt.dts(35364600) must be <= pkt.pts(35363700).Decompression must happen before presentation. zm_videostore.cpp 1409
9/15/23, 11:48:20 AM GMT+8 zmc_m23 42775 WAR non increasing dts, fixing. our dts 35363700 stream 0 last_dts 35364600. reorder_queue_size=0 zm_videostore.cpp 1398
9/15/23, 11:48:17 AM GMT+8 zmc_m22 42628 ERR Error writing packet: Invalid argument zm_videostore.cpp 1425
OS Debian 12
ffmpeg version 5.1.3-1
IP Camera: IPC-HF3500
Encode Mode H.264
Resolution 3M (2048*1536)
Frame rate(FPS) 15
Bit Rate Type VBR
Quality 6(Best)
Bit Rate 8192
I Frame Interval 30
Re: Repeated error message:
Posted: Fri Sep 15, 2023 1:21 pm
by iconnor
In ffmpeg 4.8+ we started seeing out of order packets coming from decoding. Problem is when writing out to mp4, they need to be in order. So we now need to buffer them and sort them.
You can set a parameter in Encoder options, reorder_queue_size= to turn on this buffering. Testing seems to indicated that for most people setting it to keyframe interval or 2*keyframe interval should do.
In 1.37 we automatically detect the need and size, but in 1.36 you have to set it manually.
Re: Repeated error message:
Posted: Fri Sep 15, 2023 4:01 pm
by pat2
Hi Isaac,
thanks for your strong job.
Please, note that in the "proposed" repo 1.36.34 version is not available for jammy, focal, bionic, xenial.
Something went wrong in the build process.
thanks
Re: Repeated error message:
Posted: Mon Sep 18, 2023 1:54 pm
by iconnor
Ok, I have a few more fixes in there now, will push another release
Re: Repeated error message:
Posted: Mon Sep 18, 2023 5:22 pm
by pat2
iconnor wrote: ↑Mon Sep 18, 2023 1:54 pm
Ok, I have a few more fixes in there now, will push another release
upgraded !
thanks
Re: Repeated error message:
Posted: Tue Jan 30, 2024 8:16 am
by phuongpham
pat2 wrote: ↑Fri Sep 15, 2023 4:01 pm
Hi Isaac,
thanks for your strong job.
Please, note that in the "proposed" repo 1.36.34 version is not available for jammy, focal, bionic, xenial.
Something went wrong in the build process.
thanks
When will this fix be released?
Re: Repeated error message:
Posted: Tue Jan 30, 2024 9:20 am
by dougmccrary
When will this fix be released?
ZoneMinder Proposed - Ubuntu Jammy 1.36.34~20231031.12-jammy1 2023-10-31 None
( from
https://launchpad.net/~iconnor/+ppa-packages?batch=75 )