Skip to content

metagen exits when encounters < 600s files for icListen #102

@danellecline

Description

@danellecline

A number of files that are not 600 seconds in duration, largely from the somewhat rocky restart of recording in April - May from MARS audio data. Currently meta-gen exits when it encounters these files. They are valid wav files (according to SoX), so I am wondering if we can have meta-gen allow input files < 600 s for icListen. Below is an excerpt of running meta-gen.

searching :   5% (1715 of 29381) |####                                                                  | Elapsed Time: 0:00:00 ETA:   0:00:012025-11-14T11:55:36.914571-0800 INFO Found file /Volumes/PAM_Archive/2025/04/MARS_20250422_030741.wav with timestamp 2025-04-22 03:07:41
2025-11-14T11:55:36.918766-0800 INFO Found file /Volumes/PAM_Archive/2025/04/MARS_20250422_031741.wav with timestamp 2025-04-22 03:17:41
2025-11-14T11:55:36.923019-0800 INFO Found file /Volumes/PAM_Archive/2025/04/MARS_20250422_032741.wav with timestamp 2025-04-22 03:27:41
2025-11-14T11:55:36.927225-0800 INFO Found file /Volumes/PAM_Archive/2025/04/MARS_20250422_033741.wav with timestamp 2025-04-22 03:37:41
2025-11-14T11:55:36.931397-0800 INFO Found file /Volumes/PAM_Archive/2025/04/MARS_20250422_034741.wav with timestamp 2025-04-22 03:47:41
2025-11-14T11:55:36.935819-0800 INFO Found file /Volumes/PAM_Archive/2025/04/MARS_20250422_035741.wav with timestamp 2025-04-22 03:57:41
2025-11-14T11:55:36.939911-0800 INFO Found file /Volumes/PAM_Archive/2025/04/MARS_20250422_040741.wav with timestamp 2025-04-22 04:07:41
2025-11-14T11:55:36.944278-0800 INFO Found file /Volumes/PAM_Archive/2025/04/MARS_20250422_041741.wav with timestamp 2025-04-22 04:17:41
2025-11-14T11:55:36.948121-0800 INFO Found file /Volumes/PAM_Archive/2025/04/MARS_20250422_042741.wav with timestamp 2025-04-22 04:27:41
2025-11-14T11:55:36.952581-0800 INFO Found file /Volumes/PAM_Archive/2025/04/MARS_20250422_043741.wav with timestamp 2025-04-22 04:37:41
2025-11-14T11:55:36.956636-0800 INFO Found file /Volumes/PAM_Archive/2025/04/MARS_20250422_044741.wav with timestamp 2025-04-22 04:47:41
2025-11-14T11:55:36.960874-0800 INFO Found file /Volumes/PAM_Archive/2025/04/MARS_20250422_045741.wav with timestamp 2025-04-22 04:57:41
2025-11-14T11:55:36.965526-0800 INFO Found file /Volumes/PAM_Archive/2025/04/MARS_20250422_050741.wav with timestamp 2025-04-22 05:07:41
2025-11-14T11:55:36.969732-0800 INFO Found file /Volumes/PAM_Archive/2025/04/MARS_20250422_051741.wav with timestamp 2025-04-22 05:17:41
2025-11-14T11:55:36.974226-0800 INFO Found file /Volumes/PAM_Archive/2025/04/MARS_20250422_052741.wav with timestamp 2025-04-22 05:27:41
Searching : 100% (29381 of 29381) |#####################################################################| Elapsed Time: 0:00:00 Time:  0:00:00
2025-11-14T11:55:37.229266-0800 WARNING File 591.0  != 600.0. File is not complete
2025-11-14T11:55:37.231984-0800 INFO Done correcting metadata for 2025-04-22 00:00:00. Saved to json/MARS/2025/20250422.json
2025-11-14T11:55:37.232249-0800 INFO IcListenMetadataGenerator 20250409 Searching in file:///Volumes/PAM_Archive/2025/ for wav or flac files that match the search patterns MARS* ...
Searching : - |#                                                                                                     | 0 Elapsed Time: 0:00:00
Searching : 100% (29381 of 29381) |#####################################################################| Elapsed Time: 0:00:00 Time:  0:00:00
2025-11-14T11:55:37.590986-0800 INFO IcListenMetadataGenerator 20250409  No files found to process that cover the period 2025-04-22 23:00:00 - 2025-04-24 00:00:00```

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions