Mattk70 / Chirpity-Electron

AI powered audio analyser for bird call visualisation, detection and cataloguing
https://chirpity.mattkirkland.co,uk
24 stars 0 forks source link

Retrieve results for multiple files #105

Closed Vollpflock closed 3 months ago

Vollpflock commented 3 months ago

Is your feature request related to a problem? Please describe. This has to do with location data not being saved correctly (https://github.com/Mattk70/Chirpity-Electron/issues/101). I have recordings from various locations and need to organize them accordingly. Since my folder structure already separates them, I'd like Chirpity to allow me to open all files within a folder and display all the detections associated with it. Even if https://github.com/Mattk70/Chirpity-Electron/issues/101 gets resolved, I would like to have this option to quickly access detections or to change the location in retrospect.

Describe the solution you'd like Retrieving results for multiple files (not just one file).

Describe alternatives you've considered Locations getting saved (https://github.com/Mattk70/Chirpity-Electron/issues/101).

Additional context Add any other context or screenshots about the feature request here.

Mattk70 commented 3 months ago

So, I think you can do this by opening the folder from a location. If all the files you open are saved in the database, you will be able to 'retrieve results'. However if there is just one file amongst them which is not saved, you won't have this option.

Vollpflock commented 3 months ago

That doesn't work in my case, I tested it using two files that were already analyzed and it showed only the results from the first file when I opened both files and hit "Retrieve Results".

Btw, I just saw that it sets the "created date" when the file ended. F.e. when my file is 1 hour long and I started recording at 3 pm, it sets the created date to 4pm... I maybe need to run a script first to set recording date one hour back before opening them in chirpity. Otherwise, it messes up "nocturnal" mode.

File one: Screenshot 2024-04-13 at 17 19 50 Screenshot 2024-04-13 at 17 19 57

File two: Screenshot 2024-04-13 at 17 20 29

Both files: Screenshot 2024-04-13 at 17 20 50 Screenshot 2024-04-13 at 17 20 57

It only shows the results from file one. Screenshot 2024-04-13 at 17 21 02

Mattk70 commented 3 months ago

Ah, yes. My mistake. You have to hit "Analyse all open files". It won't. It will get the results from the database, if all the files have been previously analysed. I should really change the menu item for both "Analyse file" and "Analyse all open files" when all files are saved.

Edit: that's done. I'll put it in the next release.

Mattk70 commented 3 months ago

Btw, I just saw that it sets the "created date" when the file ended. F.e. when my file is 1 hour long and I started recording at 3 pm, it sets the created date to 4pm... I maybe need to run a script first to set recording date one hour back before opening them in chirpity. Otherwise, it messes up "nocturnal" mode.

Chirpity looks at "modified date" for nocmig mode, then works out the start time from the files' duration.

Vollpflock commented 3 months ago

amazing

Mattk70 commented 3 months ago

Fixed in 1.7.0

Mattk70 commented 2 months ago

Btw, I just saw that it sets the "created date" when the file ended. F.e. when my file is 1 hour long and I started recording at 3 pm, it sets the created date to 4pm... I maybe need to run a script first to set recording date one hour back before opening them in chirpity. Otherwise, it messes up "nocturnal" mode.

Is this related to Daylight Saving Time? Is the time on your recorder correct?

Vollpflock commented 2 months ago

I'm not sure if it actually messes up Daylight Saving Time. Yes, the time on my recorders are correct.