viofosync icon indicating copy to clipboard operation
viofosync copied to clipboard

Large wait between downloads.

Open weltmeyer opened this issue 4 months ago • 10 comments

Thanks for this nice tool. Cutrently i have a prpblem getting bigger.

On my system, there is a large gap between two downloads.. by now i have more than 100 records pending. One file takes around 10 seconds then 1 Minute nothing, then the next file. It may be because it rereads the filelist on before every download. Could also be caused by the rescan of the archive after every download. I already disabled the instant gps extract post download which makes the wait time at least 5 seconds shorter... I think it should push those updates into a background task and start downloading the next file right after finishing a download.

weltmeyer avatar Aug 02 '26 17:08 weltmeyer

What camera model, host hardware and storage are you using?

I’ve added some more post-download logging to the robxyz/viofosync:dev image. Could you try running that and paste the logs?

RobXYZ avatar Aug 04 '26 20:08 RobXYZ

VIOFO_A229S_V1.5_260330;V1.3.1_250421 Storage is SMB, host has 8Cores/16GB. i have now rebuild the container with the :dev image.

(its downloading slower today as the car is parket a bit away from the wifi)

The pause between downloads seems smaller today.. but still around ~30seconds.

Here ist the info-log: https://logpasta.com/paste/94db1aa2-1825-40ea-99cd-6563d9e5e087

EDIT: Removed log here and put it to log hoster. Add camera Type

weltmeyer avatar Aug 05 '26 13:08 weltmeyer

Is your config on smb too? If so try moving it to localhost.

See this, might be related https://github.com/RobXYZ/viofosync/pull/11

jusii avatar Aug 05 '26 18:08 jusii

Is your config on smb too? If so try moving it to localhost.

See this, might be related #11

nope. just checked. the /config folder is on local storage - there also is a viofosync.db with around 10MB

weltmeyer avatar Aug 05 '26 18:08 weltmeyer

It looks like the camera is struggling to serve the file list, perhaps overheating.

The first file listing is normal at 1.3s then shoots up to 39.6s. As comparison, my A229 Pro takes about 3s mid-cycle but it’s only listing about 2,500 clips vs your 4,300+.

I will have a think but probably the best approach is to throttle the file listing so it’s not running every single time when you're downloading short parking clips.

It would be interesting to know if you pause recording whether it speeds things up.

RobXYZ avatar Aug 05 '26 19:08 RobXYZ

Is there a way to pause recording when viofosync starts syncing? the A229 plus has no geofence as far as i can tell from going through the menus

weltmeyer avatar Aug 06 '26 07:08 weltmeyer

Not at the moment. The official Viofo geofence option turns off the camera completely, so unfortunately it isn't useful for this application.

Recording control isn’t automated in Viofosync yet, but I’m currently testing it. The risk is that the car might drive away while recording is stopped.

If you refresh the dev image, you’ll see a new option under the Camera tab to manually stop and start recording so you can test if it helps with your issue.

RobXYZ avatar Aug 06 '26 08:08 RobXYZ

Listing refresh Speed is the same with recording on or off. Also sometimes the recording turns itself on after turning it off in the viofosync settinga

weltmeyer avatar Aug 09 '26 21:08 weltmeyer

It sounds like it’s either the number of files or SD card. It could be worth trying a different SD card, or turn on "Delete clips from dashcam after download" and see if a reduced number of files helps.

As a more general solution I will add a throttle timer so it doesn’t refetch the file list too often but it sounds like your particular camera is still going to take a long time to respond regardless.

You could also try the XML API (turn off "Use HTML directory listing") but that was even slower on my camera so the default is now scraping the html.

RobXYZ avatar Aug 13 '26 07:08 RobXYZ

You can try the latest dev image which now throttles the file refresh between downloads. Instead of re-fetching the list after every file, it waits until 10× the duration of the last refresh has passed. So for your 40 second listing that means a refresh roughtly of every 400 seconds that will hopefully help with those small files.

Let me know if it helps.

RobXYZ avatar Aug 13 '26 15:08 RobXYZ