Dermot McNally wrote:
> b) Recording timestamp is not preserved in the files created by the
> Windows software. This is just dumb. The software itself will display
> the timestamp, so it's known on some level, but it isn't applied as
> the file system timestamp, nor can I find it in any meta-information.
> I had hoped to be able to geocode my voice samples in JOSM, but no go
> with this device.

i had written a small perl script that reads the date/time information
from files saved by the windows software
(works with my Olympus VN-120PC)

----- cut -------
use File::Format::RIFF;

foreach my $file (@ARGV)
{
    open( IN, $file ) or die "Could not open file: $!";
    my $riff1  = File::Format::RIFF->read( \*IN );
    close( IN );

    foreach $i (@{$riff1->{'data'}})
    {
        if($i->{'id'} eq 'cd  ')
        {
            my @x = unpack("C*",$i->{'data'});
            printf("$file\t%04d/%02d/%02d-%02d:%02d:%02d\n",
                ($x[0]+2000),$x[1],$x[2],$x[3],$x[4],$x[5]);
        }
    }
}
----- cut -------

now i'm using odvr (http://code.google.com/p/odvr/) on Linux

(reminds me that i have to update
http://wiki.openstreetmap.org/wiki/Audio_mapping#By_Frank)

Frank

        
                
___________________________________________________________ 
Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: 
http://mail.yahoo.de


_______________________________________________
newbies mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/newbies

Reply via email to