QutEcoacoustics / audio-analysis

The audio analysis code (AnalysisPrograms.exe) for the QUT Ecoacoustics Research Group
https://ap.qut.ecoacoustics.info/
Apache License 2.0
52 stars 12 forks source link

error: Failed parsing 'N/A' to get FORMAT duration #487

Open ninascarpelli opened 3 years ago

ninascarpelli commented 3 years ago

Describe the bug

I'm analysing .flac files and getting this error:

System.AggregateException: One or more errors occurred. (Failed parsing 'N/A' to get FORMAT duration.)

and no results on the results folder

Expected behavior

I'm using Towsey.acoustics.yml script so I would expect acoustic indices calculated in a results folder

Diagnostics

Instructions

✅ I have followed the instructions for reporting a bug

I have attached a log:

log_20210510T023634Z.txt

The operating system I'm using is:

BigData10 computer

The version of AnalysisPrograms.exe I'm using is:

20.11.2.2

The data used can be found:

BigData10\D:\Marina\a2o\20201211_64\253\337

atruskie commented 3 years ago

So, I've narrowed this down: for a two-hour file, ffprobe is reporting a duration of four hours. When AP tries to gut segments out to analyze past the two-hour mark, it fails...

It looks the files have a corrupt header.

atruskie commented 3 years ago

I've sent an email to Frontier Labs to try and work out the root cause of the issue.

I suspect I'll be able to hard code a special case for files with the affected firmware version.