Hi ,
Very nice project, congrats !
Here some thoughts:
- it could be a daylight saving time related issue. Is ntp configured? See a Photon OS ipv4 example below.
An offending code in the startup code (before netcam_rtsp_handler_reconnect in netcam_rtsp.c) for a time api call right for reconnecting to camera could be the root cause.
- https://www.onvif.org/specs/stream/ONVIF-Streaming-Spec.pdf
There is a new spec release. The jpeg header extension has a distinction for wallclock time, ntp support, onvif replay, etc.
Btw this is the Photon OS forum for administrative questions purposes. For developer questions, a reproducible test code (docker file, host os specs, recorded mp4 ) would be helpful when opening an issue ticket @ https://github.com/vmware/photon .
But, hope this already helps !
-----
NTP
tdnf install -y ntp
Add server entries (Here in Switzerland eg. server ntp11.metas.ch, ntp12.metas.ch, ntp13.metas.ch) vi /etc/ntp.conf
tinker panic 0
restrict default kod nomodify notrap nopeer noquery
restrict 127.0.0.1
restrict -6 ::1
driftfile /var/lib/ntp/drift/ntp.drift
server <your ntp server 1>
server <your ntp server 2>
server <your ntp server 3>
iptables -A INPUT -i eth0 -p udp --dport 123 -j ACCEPT
iptables-save >/etc/systemd/scripts/ip4save
systemctl enable ntpd
systemctl start ntpd
It is also necessary to configure the timezone.
set Europe/Zurich timezone
ln -sf /usr/share/zoneinfo/Europe/Zurich /etc/localtime
Sync now and sync the RTC clock to system clock:
systemctl stop ntpd
ntpdate -s <your ntp server>
systemctl start ntpd
hwclock --systohc --localtime