Main Menu

sox

Started by Mark, January 24, 2013, 12:05:24 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Mark

I need to convert some PCM wav files to wav49, but preserve the original time and date stamps.  Any ideas?
Mark Piontek, MBA
Director of Information Systems
BS in Information Systems Security

Jeff Zylstra

I'll show my ignorance, once again, and ask the obvious.  Why can't you just convert the file, save it, and then use a time and date stamp utility?  Or are you speaking of a time/date stamp that is encoded into the WAV file, and not part of the file system?   If it is encoded into the WAV file, could you alter the time/date on the computer running the conversion and have the file creation date be the time stamp?  Silly I know, but the sublimely simple and obvious is where I live.   ;)
"We hang the petty thieves, and appoint the great ones to public office"  -  Aesop

Mark

Mostly because it's a subset of over 78,000 files and I need to do it all in one sweep.  there is no way I'd be able to do it manually, and no way I could track/correlate date & time stamps for that many files.  This is a Linux box and the files are recorded phone calls.
Mark Piontek, MBA
Director of Information Systems
BS in Information Systems Security

Jeff Zylstra

The only thing I could think of would be some kind of script that would convert them, match the new and old file names, and then use the old time stamp to change the new file name.  And messing with any file time stamp is going to void your warranty as far as using this in court for an E&O case.  I think you should talk to the legal dept at your agency before messing with these time stamps.
"We hang the petty thieves, and appoint the great ones to public office"  -  Aesop

Mark

Yeah.  We don't have a legal department, and I'm looking to do this in one fell sweep without preserving original file at all.  Running out of space due to previous configuration (who knew the global setting for call recording wasn't actually global?).  Was hoping for something like
sox --preserve *.wav *.WAV But it's not an option.  May just have to bite it and add more drives, but this system was spec'd for 5 years worth of calls and it's at 60% less than 2 years in because of this.
Mark Piontek, MBA
Director of Information Systems
BS in Information Systems Security