Jehol
Jehol

Reputation: 203

Converting audio files with sox while keeping date/time information

I am converting .ima files, collected by an audiologger, into .wav format. It works fine, but when doing this I loose the information about the date/time at which the (original, .ima) files were created. Is there a way of having the .wav files somehow 'timestamped' so I could recover the date/time at which the audio was recorded?

Many thanks for any hint provided.

Upvotes: 2

Views: 544

Answers (1)

Ian
Ian

Reputation: 1251

As commented, you can either:

Store the date/time information in the file name

For example, store files with file names in the format 2018-09-23-19-53-45.wav, or whatever time format you like.

Store the audio in Broadcast WAV format files (BWF)

Broadcast WAV is based on WAV format but allows for metadata in the file. The difference between a Broadcast WAV file and a normal WAV is the presence of the BEXT chunk, and as such the file is compatible with existing WAV players.

The BEXT chunk contains two appropriate fields called OriginationDate and OriginationTime. The layout for the chunk can be found here: BEXT Audio Metadata Information.

Upvotes: 1

Related Questions