Максимальное количество файлов, которые можно объединить в SoX?

560
lord_missingno

Для тех, кто имеет опыт работы с аудио инструментом sox, каков максимальный объем (в МБ) файлов, которые вы пытались объединить?

До сих пор я слил wav-файлы объемом до 925 МБ, и у меня не было проблем, но для чего-то большего, чем около 3 ГБ, я получаю сообщение об ошибке «Слишком много файлов открыто», и объединение не происходит.

1

1 ответ на вопрос

2
Gombai Sándor

If I get it right, you give a bunch files to sox to merge at a time when you get that error. You should check the maximal open files setting for your user and it would also be worth a try to increase it. Here you can see, now mine is 1024 (note the -n which will be used to set a specific system resource setting):

$ ulimit -a | grep "open files" open files (-n) 1024 

but I just double it:

$ ulimit -n 2048 $ ulimit -a | grep "open files" open files (-n) 2048 

Now if I had suffered from the too many open files error, I would have a chance to go on. However, if this error is not passed forward from the OS by sox but it has its own limit for whatever reason, then this is not the solution.

IMPORTANT: the resource settings you specify with ulimit will be valid only in the given session and its children, in parallel shells the original limits will exist.

Это исправило мою проблему. Спасибо! lord_missingno 8 лет назад 0
YWC, я рад, что это было так легко (могло бы быть более загадочным). Gombai Sándor 8 лет назад 0