sox-users@lists.sourceforge.net unofficial mirror
 help / color / mirror / code / Atom feed
From: Jeremy Nicoll - ml sox users <jn.ml.sxu.88@wingsandbeaks.org.uk>
To: sox-users@lists.sourceforge.net
Subject: Re: multitasking
Date: Wed, 25 Oct 2017 19:39:44 +0100	[thread overview]
Message-ID: <3aadb4dd4f9e89308eac6927e7b2d7aa@wingsandbeaks.org.uk> (raw)
In-Reply-To: <CAKS_MTtNEPhcTtbum5gN-oHrM+b3aTb1MqNLHmh_5V-rbu0vWA@mail.gmail.com>

On 2017-10-25 01:29, Glenn English wrote:
> On Tue, Oct 24, 2017 at 7:44 PM, Jeremy Nicoll - ml sox users
> <jn.ml.sxu.88@wingsandbeaks.org.uk> wrote:
> 
>> I can't answer the question, but I think whoever does will need to 
>> know
>> more.  Are these multiple capabilities needed on different pieces of
>> audio, but all being processed at the same time?
> 
> No, just one hugish (1G++) flac file, processed in several different 
> ways.
> 
>> Or do you mean that for one audio source a whole sequence of things
>> are to be done to it?
> 
> Got it :-)
> 
>>  - which seems to me to be one sox command with various effects
>>    coded one afetr another
> 
> That's another possibility, but it takes a very long time to cat a
> billion little flacs into a single or mp3 it, so I assumed it'd take a
> long time to eq or compress the huge flac, so I wanted to do several
> things in parallel. That's not a deal killer because this program is
> being designed to do the SoX part(s) of the job with no human
> intervention. But I'd like to get its job done overnight.

It's either one huge file, or it's not.

I have no idea whether for the effects you wish to use it'd make any
difference whether you apply them to all the small files first, then
concatenate the results, or whether some/all will only work properly
if applied to the huge file.

On Windows, if a script issues

   start sox ...

(though such a command tends to look rather more like

  start /b "atitle" "c:\x\y\z\sox.exe" arg1 arg2 arg3...  )

then that started sox runs in a different process from the one that
the script is running under, and therefore a script could issue a
series of "start sox..." commands at a time.  However if, say, it
issued 7 of these (if one had a 4 cpu ie 8 core machine) there'd be
no easy way to find out when each sox command stopped so it was a
good time to start another one.

On the other hand if you divided your umpteen files into, say, 7
lists of files you could have your master script start 7 subsidiary
scripts with "start .. whatever's needed to start that script" and
then each one could issue a sox command, then when that's complete
issue the next one and so on.  You might find that 7 sets of sox
commands was too many on an 8 core machine; it depends what else
has to run at the same time.

If I were doing that I would have the subsidiary script create when
it starts a flag file unique to it, then check that file exists each
time it's about to issue another sox command.  If not, stop.  That
way you can easily stop one set of commands by deleting its flag file.
Scripts I have that do that also delete the unique flagfile when they
stop naturally.



-- 
Jeremy Nicoll - my opinions are my own

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Sox-users mailing list
Sox-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users

  reply	other threads:[~2017-10-25 18:39 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-24 19:00 multitasking Glenn English
2017-10-24 19:44 ` multitasking Jeremy Nicoll - ml sox users
2017-10-25  0:29   ` multitasking Glenn English
2017-10-25 18:39     ` Jeremy Nicoll - ml sox users [this message]
2017-10-25 18:07 ` multitasking Jan Stary
2017-10-25 19:49   ` multitasking Jan Stary
2017-10-25 20:25   ` multitasking Glenn English
2017-10-25 21:11     ` multitasking Jeremy Nicoll - ml sox users
2017-10-26  2:35       ` multitasking Glenn English
2017-10-26  7:39         ` multitasking Jeremy Nicoll - ml sox users
2017-10-26  9:51         ` multitasking Jan Stary
2017-10-26 14:41           ` multitasking Glenn English
2017-10-26 18:57             ` multitasking Jan Stary
2017-10-26 19:17               ` multitasking Glenn English
2017-10-26 20:27                 ` multitasking Jeremy Nicoll - ml sox users
2017-10-26 22:05                   ` multitasking Glenn English
2017-10-26  9:43     ` multitasking Jan Stary
2017-10-26 14:26       ` multitasking Glenn English
2017-10-26  9:48     ` multitasking Jan Stary
2017-10-26 14:34       ` multitasking Glenn English

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://lists.sourceforge.net/lists/listinfo/sox-users

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3aadb4dd4f9e89308eac6927e7b2d7aa@wingsandbeaks.org.uk \
    --to=sox-users@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/sox.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).