I'd like to do audio mapping as described at , but I do not know how to convert the WMA files my to WAV en masse on Linux while preserving the mtime (that is, timestamps cannot change: They MUST remain as the audio logger set them).
What's the best way to accomplish this? Alternatively, am I overengineering this? Is there a plugin that lets JOSM make use of WMA files that I'm missing?
Update: I figured out preserving the timestamps while converting with a script.
---begin code snippet---
#!/bin/bash
for i in *.WMA; do mplayer -vo null -vc dummy -af resample=44100 -ao pcm:waveheader:file="${i%.WMA}.wav" "$i" ; done
for i in *.WMA; do touch -r "$i" "$(basename "$i" .WMA).wav"; done
---begin code snippet---
Now, it's just a matter of getting the sound into JOSM.
Discussion
Comment from davidearl on 3 March 2009 at 10:04
Hi Paul,
I wrote the JOSM audio stuff, so maybe I can help.
Firstly, do look at the help within JOSM for Audio, there's a detailed run through of the different ways to use it.
I'm puzzled why you need to keep the timestamps. When you associate an audio track with a GPX track, you bring the two into line by synchronising an audio cue (something you say on the audio) with a waypoint in the GPX, or a feature on the ground (like a sharp left turn) that you can recognise in your track, if you're not using waypoints.
It's also possible to associate audio snippets with the GPX track by editing the XML, though this seems to me to be much more inconvenient both in the oprocessing involved and the fact you have to keep starting and stopping the recorder - but maybe that's why you want the time stamps. If so, why not simply note the time stamps for the original tracks and so long as the file names have some patter to them you can just associate the new WAV file with the time stamp of the old WMA file using the file name.
Note also the need to at least check whether you need to calibrate your recorder's clock so it doesn't drift as you go along. If your recorders clock drifts by 0.15% as mine does, it doesn't sound much but you'll be out on the GPX track by a hundred metres or more after a couple of hours mapping.
David