Skip to content

Support compact single-channel Viofo filenames#24

Open
nittanygeek wants to merge 3 commits into
RobXYZ:mainfrom
nittanygeek:support-compact-viofo-filenames
Open

Support compact single-channel Viofo filenames#24
nittanygeek wants to merge 3 commits into
RobXYZ:mainfrom
nittanygeek:support-compact-viofo-filenames

Conversation

@nittanygeek

Copy link
Copy Markdown

Summary

  • accept compact single-channel Viofo filenames like YYYYMMDDHHMMSS_NNNNNN.MP4 alongside the existing channel-suffixed format
  • default suffix-less recordings to front-camera/normal metadata
  • derive queue day grouping from recorded_at so compact filenames do not produce malformed dates

Background

Some Viofo units expose recordings in their web listing without date/time separator underscores or a camera suffix. Those files were skipped because the filename parser only accepted the newer YYYY_MMDD_HHMMSS_NNNN[FRTI].MP4 style.

Tests

  • PYTHONPATH=. .venv/bin/python -m pytest tests/test_queue_filename_parsing.py tests/test_queue_day_grouping.py tests/test_scanner_compact_filename.py

@RobXYZ

RobXYZ commented Jun 25, 2026

Copy link
Copy Markdown
Owner

Thanks for this. What model is your camera? Does the GPS extraction work?

@nittanygeek

Copy link
Copy Markdown
Author

A119 mini 2, and yes GPS extraction works.

@RobXYZ

RobXYZ commented Jul 3, 2026

Copy link
Copy Markdown
Owner

I had a lot of other changes in the pipeline so have incorporated the single channel filename pattern from your PR into the dev branch rather than merged. Would you be able to test the dev version with your camera? It would also be great to know if the new GPS triage feature works on your camera as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants