|
From: Rainer M. E. <en...@en...> - 2013-01-15 12:19:50
|
Hello Ulrich, I tested your advice and had difficulties with 1000 files (each 1sec). sox.exe FAIL formats: can't open input file `..490.wav`: Too many open files I attached a compressed container with these 1000 and m3u files. https://dl.dropbox.com/u/414433/SoX/sox_m3u-concat.7z (uncompr. 360MB!) ------------------------------------------------------------ sox.exe Q:\sox\combine_0480.m3u Q:\sox\combine_0480.wav sox.exe Q:\sox\combine_0500.m3u Q:\sox\combine_0500.wav sox.exe Q:\sox\combine_1000.m3u Q:\sox\combine_1000.wav sox.exe "Q:\sox\silence_*.wav" Q:\sox\combine_1000.wav ------------------------------------------------------------ >From above lines only the first one works here. I use sox 14.4.0 (on WIN32). Is it a caching issue? Because .. sox.exe Q:\sox\combine_0480.wav Q:\sox\combine_0480.wav Q:\sox\combine_0960.wav and sox.exe Q:\sox\combine_0960.wav Q:\sox\combine_0960.wav Q:\sox\combine_1920.wav work just fine in the same environment. But I can work around this issue for my application and I only wanted to give feedback. Best Regards, Rainer Am 14.01.2013 02:02, schrieb Ulrich Klauer: > Rainer M. Engel <en...@en...>: > >> I made a concatenation test and it worked to up to 500 files. Not beyond. > > There is often a restriction on the length of a command line. SoX > itself should not be limiting the number of files. > > You can avoid the shell in at least two ways: > > 1. Use a playlist file. Make a file "list.m3u" that contains all the > file names, each on a separate line, then run > sox list.m3u output.wav effects ... > or similar. > 2. Use internal globbing: > sox "file_*.wav" output.wav > Note the quotes around the first argument, they tell the shell not to > replace this with a list of matching file names (instead, SoX will do > this internally). > >> Perhaps something like this.. >> sox -cat ascending file_%04d.wav new-wave.wav >> ..would be nice to concat all files matching that filter to one outputfile. > > Actually, globbing (both shell and internal) will do that. The files > are ordered lexicographically; i.e., as long as numbers are > zero-padded (file09, file10; not file9, file10), you can just write > file_*.wav or "file_*.wav" as above. > > Ulrich > > > ------------------------------------------------------------------------------ > Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, > MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current > with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft > MVPs and experts. SALE $99.99 this month only -- learn more at: > http://p.sf.net/sfu/learnmore_122412 > _______________________________________________ > Sox-users mailing list > Sox...@li... > https://lists.sourceforge.net/lists/listinfo/sox-users > |