viofosync icon indicating copy to clipboard operation
viofosync copied to clipboard

Incorrect Journey Times

Open HenryBlackie opened this issue 3 months ago • 7 comments

I've been having an issue with journey correlations, for some reason the journey times seem to be an hour off of what they should be. This is causing most clips to either be correlated with incorrect journeys or left in the ungrouped section.

Initially I thought it was a timezone misconfiguration, but I have updated both my dashcam (UTC+1) and the container to use the same timezone (TZ: Europe/London). Even after running the re-evaluate journeys function, the issue is still present. I've also double checked inside the container and it has the correct system time.

I assume this isn't a widespread issue, as no one else has raised this, but I have no idea what else I could check to rule out a configuration issue.

Version: 2.6 Dashcam: A119 Mini V2

Example:

Image

Debug Dump:

viofosync-debug-viofosync-20260827-132338.md

HenryBlackie avatar Aug 27 '26 13:08 HenryBlackie

If you open one of the GPX files in a text editor, is the GPS time an hour out from the source mp4 filename?

What firmware version is on your camera?

If you run the debug log with the camera connected it can collect more info about the camera settings as well.

RobXYZ avatar Aug 27 '26 16:08 RobXYZ

GPX Files

I've checked a few GPX files and all of the GPS times match the filename (at least within a few seconds) although they don't seem to include any timezone offset.

GPX JSON Excerpt 1 (Expecting 1800 local time):

<name>20260826180035_000600.MP4.gpx</name>
	<trk><name>20260826180035_000600.MP4.gpx</name><trkseg>
		<trkpt lat="[REMOVED]" lon="[REMOVED]"><time>2026-08-26T17:58:22Z</time><speed>0.0</speed><course>20.3799991607666</course></trkpt>
		<trkpt lat="[REMOVED]" lon="[REMOVED]"><time>2026-08-26T17:58:22Z</time><speed>0.0</speed><course>20.3799991607666</course></trkpt>
		<trkpt lat="[REMOVED]" lon="[REMOVED]"><time>2026-08-26T18:00:38Z</time><speed>1.363276649061203</speed><course>213.63999938964844</course></trkpt>

GPX JSON Excerpt 2 (Expecting 1638 local time):

<name>20260826163814_000576.MP4.gpx</name>
	<trk><name>20260826163814_000576.MP4.gpx</name><trkseg>
		<trkpt lat="[REMOVED]" lon="[REMOVED]"><time>2026-08-26T16:37:46Z</time><speed>0.0</speed><course>0.0</course></trkpt>
		<trkpt lat="[REMOVED]" lon="[REMOVED]"><time>2026-08-26T16:37:46Z</time><speed>0.0</speed><course>0.0</course></trkpt>
		<trkpt lat="[REMOVED]" lon="[REMOVED]"><time>2026-08-26T16:38:16Z</time><speed>0.09259992367959023</speed><course>0.0</course></trkpt>

Firmware

A119 Mini 2 Firmware: V2.1_20250723 (latest special version for persistent wifi station mode)

Debug Log

viofosync-debug-viofosync-20260827-182334.md

Camera Settings

The debug log doesn't seem to include many of the camera settings, so here is a screenshot of the camera tab too. Image

HenryBlackie avatar Aug 27 '26 18:08 HenryBlackie

I'm not sure if it's relevant, but I also noticed that the video metadata incorrectly records the UTC+1 time as UTC. Image

HenryBlackie avatar Aug 27 '26 18:08 HenryBlackie

My camera, and I guess most others, record all GPS times as UTC so that’s hardcoded in Viofosync. Perhaps just a firmware oddity that yours stores the GPS including the timezone offset. It looks like your filenames are correct so we could offset the GPS to match that, which should solve the problem.

In the meantime you could try setting your Docker container timezone to UTC and the journeys will hopefully work, albeit one hour out, until I can make that fix.

RobXYZ avatar Aug 27 '26 19:08 RobXYZ

Yeah that seems to be it. I've just tried playing around with the dashcam settings and I can see that the parsed GPS times are changing depending on the dashcam timezone.

Video 1 (Dashcam UTC+1)

<?xml version="1.0" encoding="UTF-8"?>
<gpx version="1.0"
	creator="Viofo GPS Extractor"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns="http://www.topografix.com/GPX/1/0"
	xsi:schemaLocation="http://www.topografix.com/GPX/1/0 http://www.topografix.com/GPX/1/0/gpx.xsd">
	<name>20260827204333_000029.MP4.gpx</name>
	<trk><name>20260827204333_000029.MP4.gpx</name><trkseg>
		<trkpt lat="[REMOVED]" lon="[REMOVED]"><time>2026-08-27T20:43:31Z</time><speed>0.0</speed><course>0.0</course></trkpt>
		<trkpt lat="[REMOVED]" lon="[REMOVED]"><time>2026-08-27T20:43:33Z</time><speed>0.0</speed><course>0.0</course></trkpt>
		<trkpt lat="[REMOVED]" lon="[REMOVED]"><time>2026-08-27T20:43:34Z</time><speed>0.0</speed><course>0.0</course></trkpt>
		<trkpt lat="[REMOVED]" lon="[REMOVED]"><time>2026-08-27T20:43:35Z</time><speed>0.0</speed><course>0.0</course></trkpt>
		<trkpt lat="[REMOVED]" lon="[REMOVED]"><time>2026-08-27T20:43:35Z</time><speed>0.0</speed><course>0.0</course></trkpt>
		<trkpt lat="[REMOVED]" lon="[REMOVED]"><time>2026-08-27T20:43:37Z</time><speed>0.0</speed><course>0.0</course></trkpt>
		<trkpt lat="[REMOVED]" lon="[REMOVED]"><time>2026-08-27T20:43:38Z</time><speed>0.0</speed><course>0.0</course></trkpt>
		<trkpt lat="[REMOVED]" lon="[REMOVED]"><time>2026-08-27T20:43:39Z</time><speed>0.0</speed><course>0.0</course></trkpt>
		<trkpt lat="[REMOVED]" lon="[REMOVED]"><time>2026-08-27T20:43:40Z</time><speed>0.0</speed><course>0.0</course></trkpt>
		<trkpt lat="[REMOVED]" lon="[REMOVED]"><time>2026-08-27T20:43:40Z</time><speed>0.0</speed><course>0.0</course></trkpt>
		<trkpt lat="[REMOVED]" lon="[REMOVED]"><time>2026-08-27T20:43:42Z</time><speed>0.0</speed><course>0.0</course></trkpt>
		<trkpt lat="[REMOVED]" lon="[REMOVED]"><time>2026-08-27T20:43:43Z</time><speed>0.0</speed><course>0.0</course></trkpt>
		<trkpt lat="[REMOVED]" lon="[REMOVED]"><time>2026-08-27T20:43:44Z</time><speed>0.0</speed><course>0.0</course></trkpt>
		<trkpt lat="[REMOVED]" lon="[REMOVED]"><time>2026-08-27T20:43:45Z</time><speed>0.0</speed><course>0.0</course></trkpt>
		<trkpt lat="[REMOVED]" lon="[REMOVED]"><time>2026-08-27T20:43:45Z</time><speed>0.0</speed><course>0.0</course></trkpt>
		<trkpt lat="[REMOVED]" lon="[REMOVED]"><time>2026-08-27T20:43:47Z</time><speed>0.0</speed><course>0.0</course></trkpt>
		<trkpt lat="[REMOVED]" lon="[REMOVED]"><time>2026-08-27T20:43:48Z</time><speed>0.0</speed><course>0.0</course></trkpt>
		<trkpt lat="[REMOVED]" lon="[REMOVED]"><time>2026-08-27T20:43:49Z</time><speed>0.0</speed><course>0.0</course></trkpt>
		<trkpt lat="[REMOVED]" lon="[REMOVED]"><time>2026-08-27T20:43:50Z</time><speed>0.0</speed><course>0.0</course></trkpt>
		<trkpt lat="[REMOVED]" lon="[REMOVED]"><time>2026-08-27T20:43:50Z</time><speed>0.0</speed><course>0.0</course></trkpt>
		<trkpt lat="[REMOVED]" lon="[REMOVED]"><time>2026-08-27T20:43:52Z</time><speed>0.0</speed><course>0.0</course></trkpt>
		<trkpt lat="[REMOVED]" lon="[REMOVED]"><time>2026-08-27T20:43:53Z</time><speed>0.0</speed><course>0.0</course></trkpt>
		<trkpt lat="[REMOVED]" lon="[REMOVED]"><time>2026-08-27T20:43:54Z</time><speed>0.0</speed><course>0.0</course></trkpt>
		<trkpt lat="[REMOVED]" lon="[REMOVED]"><time>2026-08-27T20:43:55Z</time><speed>0.0</speed><course>0.0</course></trkpt>
	</trkseg></trk>
</gpx>

Video 2 (Dashcam UTC)

<?xml version="1.0" encoding="UTF-8"?>
<gpx version="1.0"
	creator="Viofo GPS Extractor"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns="http://www.topografix.com/GPX/1/0"
	xsi:schemaLocation="http://www.topografix.com/GPX/1/0 http://www.topografix.com/GPX/1/0/gpx.xsd">
	<name>20260827204432_000032.MP4.gpx</name>
	<trk><name>20260827204432_000032.MP4.gpx</name><trkseg>
		<trkpt lat="[REMOVED]" lon="[REMOVED]"><time>2026-08-27T19:44:32Z</time><speed>0.0</speed><course>0.0</course></trkpt>
		<trkpt lat="[REMOVED]" lon="[REMOVED]"><time>2026-08-27T19:44:32Z</time><speed>0.0</speed><course>0.0</course></trkpt>
		<trkpt lat="[REMOVED]" lon="[REMOVED]"><time>2026-08-27T19:44:35Z</time><speed>0.0</speed><course>0.0</course></trkpt>
		<trkpt lat="[REMOVED]" lon="[REMOVED]"><time>2026-08-27T19:44:35Z</time><speed>0.0</speed><course>0.0</course></trkpt>
		<trkpt lat="[REMOVED]" lon="[REMOVED]"><time>2026-08-27T19:44:36Z</time><speed>0.0</speed><course>0.0</course></trkpt>
		<trkpt lat="[REMOVED]" lon="[REMOVED]"><time>2026-08-27T19:44:38Z</time><speed>0.0</speed><course>0.0</course></trkpt>
		<trkpt lat="[REMOVED]" lon="[REMOVED]"><time>2026-08-27T19:44:39Z</time><speed>0.0</speed><course>0.0</course></trkpt>
		<trkpt lat="[REMOVED]" lon="[REMOVED]"><time>2026-08-27T19:44:40Z</time><speed>0.0</speed><course>0.0</course></trkpt>
		<trkpt lat="[REMOVED]" lon="[REMOVED]"><time>2026-08-27T19:44:40Z</time><speed>0.0</speed><course>0.0</course></trkpt>
		<trkpt lat="[REMOVED]" lon="[REMOVED]"><time>2026-08-27T19:44:41Z</time><speed>0.0</speed><course>0.0</course></trkpt>
		<trkpt lat="[REMOVED]" lon="[REMOVED]"><time>2026-08-27T19:44:43Z</time><speed>0.0</speed><course>0.0</course></trkpt>
	</trkseg></trk>
</gpx>

When I restarted the dashcam the filenames updated to match the timezone, so they are at least consistent.

I'm guessing an optional configurable offset would be the safest fix, as I have no idea if all of the firmware versions for this dashcam have the same quirk.

HenryBlackie avatar Aug 27 '26 20:08 HenryBlackie

Should be fixed in the latest image (2.6.1) by comparing the filename to the GPS rather than assuming UTC

RobXYZ avatar Aug 30 '26 14:08 RobXYZ

Thanks for this! That seems to have fixed all of the issues. I've imported a few more clips from the last few days and it looks like it correctly generated the journeys and correlated the clips with them. There are no ungrouped clips now.

I also ran the re-evaluate function and it looks like the old journeys are now also correctly displayed.

HenryBlackie avatar Aug 30 '26 15:08 HenryBlackie