Author Topic: sox  (Read 2291 times)

0 Members and 1 Guest are viewing this topic.

Online Mark

  • ScurvyDawg
  • *******
  • Posts: 7519
  • Karma: +657/-7
  • meh.
sox
« on: January 24, 2013, 12:05:24 pm »
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 IT
BS in Information Systems Security

Offline Jeff Zylstra

  • ScurvyDawg
  • *******
  • Posts: 5223
  • Karma: +573/-2
Re: sox
« Reply #1 on: January 24, 2013, 12:15:10 pm »
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

Online Mark

  • ScurvyDawg
  • *******
  • Posts: 7519
  • Karma: +657/-7
  • meh.
Re: sox
« Reply #2 on: January 24, 2013, 01:13:46 pm »
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 IT
BS in Information Systems Security

Offline Jeff Zylstra

  • ScurvyDawg
  • *******
  • Posts: 5223
  • Karma: +573/-2
Re: sox
« Reply #3 on: January 24, 2013, 01:24:32 pm »
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

Online Mark

  • ScurvyDawg
  • *******
  • Posts: 7519
  • Karma: +657/-7
  • meh.
Re: sox
« Reply #4 on: January 24, 2013, 01:30:27 pm »
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
Code: [Select]
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 IT
BS in Information Systems Security