Discussion:
[SoX-users] Skip missing input files
m***@alexhackney.com
2017-03-09 19:26:47 UTC
Permalink
I’m trying to mix 5 files together but sometimes there will be no file in one of the spots.

Is there a way to skip that file instead of erroring out?


IE. sox --norm=-4 C:\cc-temp\1000.wav C:\cc-temp\1020.wav C:\cc-temp\1021.wav C:\cc-temp\1022.wav C:\cc-temp\1023.wav C:\cc-temp\1024.wav

If one or two of those files are missing, can I skip them and just continue on mixing the others?

Right now it appears to error out.


Alex
Will
2017-03-09 23:37:23 UTC
Permalink
If cc-temp only contains the wavs you have to process, you might be able to
use C:\cc-temp\*.wav

Otherwise you could use some batch scripting to filter the filenames to
those that exist.

Will
Post by m***@alexhackney.com
I’m trying to mix 5 files together but sometimes there will be no file in
one of the spots.
Is there a way to skip that file instead of erroring out?
IE. sox --norm=-4 C:\cc-temp\1000.wav C:\cc-temp\1020.wav
C:\cc-temp\1021.wav C:\cc-temp\1022.wav C:\cc-temp\1023.wav
C:\cc-temp\1024.wav
If one or two of those files are missing, can I skip them and just
continue on mixing the others?
Right now it appears to error out.
Alex
------------------------------------------------------------
------------------
Announcing the Oxford Dictionaries API! The API offers world-renowned
dictionary content that is easy and intuitive to access. Sign up for an
account today to start using our lexical data to power your apps and
projects. Get started today and enter our developer competition.
http://sdm.link/oxford
_______________________________________________
Sox-users mailing list
https://lists.sourceforge.net/lists/listinfo/sox-users
Loading...