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).
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.
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
---------------------------------------------------------------------------
ZM 1.36.36 - 14 cameras on Orange Pi 5 (arm64) - Ubuntu Jammy 22.04
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