Hello,
I come back to you after this discussion: https://www.openacousticdevices.info/support/configuration-support/how-to-create-300-sec-files-in-continuous-recording
Indeed, I went into continuous recording all night: 20:00 to 06:00 without cycle of recording and sleep.
I do get two files, but unfortunately not the "right" ones.
I get a file from 8:00 p.m. to 10:58 p.m. and a file from 2:00 a.m. to 2:51 a.m.
Have you had this problem or do you have a solution?
My settings: 384 kHz, medium gain and no cycle + firmware 1.4.1.
Thanks in advance,
Adrien CHARBONNEAU
@Adrien
Alex was barking up the wrong tree regarding your original problem!
The real issue is that the length of the data chunk in a wave file is saved as a 32bit integer, which imposes a limit of 4GB - which corresponds to just over 1hr33min at a sample rate of 384kHz.
The AudioMoth will happily continue to stuff samples into the file beyond this limit but when it comes to write the header the maximum data size it can record is limited to only 4GB. The actual size recorded will depend on how the firmware handles overrun of the 32bit integer and is likely to be very much smaller than 4GB. My experience suggests that it resets to zero, so that the recorded data size will be the actual amount of data in the file modulo 4GB, however the numbers you posted suggest that the actual situation may be more complex.
If you check the sizes of the your files from the other night I predict that they will be 16,200,001 and 10,800,001KB (corresponding to 6 and 4hr).
So whilst all the data is actually present in the files, a sound editing application will only recognise the amount of data encoded in the 32bit integer written by the AudioMoth. If you import as raw PCM data then the software will generally do better and recognise 4GB. However the full amount of data can be recovered if you divide the files into chunks each containing less than 4GB of samples and either fix the headers or import the files separately as raw PCM.
You should be able to record files up to 90min long at 384kHz rising to over 2hr if you sample at 256kHz.
EDIT: If you need to rescue data by dividing over-large files then GSplit is a good tool for the job: www.gdgsoft.com/gsplit/