title
Products            Buy            Support Forum            Professional            About            Codec Central
 

How can I get batch file conversion to use multiple cores?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chrisjj
    dBpoweramp Enthusiast
    • Nov 2008
    • 296

    How can I get batch file conversion to use multiple cores?

    Please?

    My test batch file sequentially converting nine WMAs to MP3 takes 22s, whereas the same in dbPa Batch converter uses 4 cores and takes 11s, so I can see there is a big advantage to using 4 cores.

    No answer found in the CLI docs http://web.archive.org/web/201610172...li-encoder.htm .

    Thanks.
  • Spoon
    Administrator
    • Apr 2002
    • 43901

    #2
    Re: How can I get batch file conversion to use multiple cores?

    Your batch file has to call 4 independent converters, that is how Batch Converter works.
    Spoon
    www.dbpoweramp.com

    Comment

    • chrisjj
      dBpoweramp Enthusiast
      • Nov 2008
      • 296

      #3
      Re: How can I get batch file conversion to use multiple cores?

      Originally posted by Spoon
      Your batch file has to call 4 independent converters
      Thansk, but how? I see I could have it simultaneously launch separate batch files, one for each core, across which I have split my thousands of files. But I'm hoping there's a better way.

      Comment

      • Spoon
        Administrator
        • Apr 2002
        • 43901

        #4
        Re: How can I get batch file conversion to use multiple cores?

        A simple batch file will not work as you want.
        Spoon
        www.dbpoweramp.com

        Comment

        • chrisjj
          dBpoweramp Enthusiast
          • Nov 2008
          • 296

          #5
          Re: How can I get batch file conversion to use multiple cores?

          Originally posted by Spoon
          A simple batch file will not work as you want.
          I know that. Hence my question. You said "Your batch file has to call 4 independent converters" and I'd like to know how I should do that.
          Last edited by chrisjj; 10-18-2016, 01:22 PM.

          Comment

          • Spoon
            Administrator
            • Apr 2002
            • 43901

            #6
            Re: How can I get batch file conversion to use multiple cores?

            You would probably need some programming language, such as visual basic scritping. Not sure that you can do from a single batch file.
            Spoon
            www.dbpoweramp.com

            Comment

            • chrisjj
              dBpoweramp Enthusiast
              • Nov 2008
              • 296

              #7
              Re: How can I get batch file conversion to use multiple cores?

              Originally posted by Spoon
              You would probably need some programming language, such as visual basic scritping. Not sure that you can do from a single batch file.
              I can't see any solution in VBscript other than the one I suggested in CMD. The fact VBScript would execute dBpa by WinShell.Run rather than START doesn't seem to help.

              Originally posted by Spoon
              Your batch file has to call 4 independent converters, that is how Batch Converter works.
              I've found that actually Batch Converter calls Music Converter to handle that, and I can do the same. So I'll try that.

              Thanks.

              Comment

              • Spoon
                Administrator
                • Apr 2002
                • 43901

                #8
                Re: How can I get batch file conversion to use multiple cores?

                You would need to create multiple threads (such as 4 for each core) and then these threads take from a central list of files to process, and call coreconverter:

                Gathering the right people, content and resources, IT Pro gives professionals insight into the technologies and skills needed to take on the challenges
                Spoon
                www.dbpoweramp.com

                Comment

                • chrisjj
                  dBpoweramp Enthusiast
                  • Nov 2008
                  • 296

                  #9
                  Re: How can I get batch file conversion to use multiple cores?

                  Originally posted by Spoon
                  You would need to create multiple threads (such as 4 for each core) and then these threads take from a central list of files to process, and call coreconverter:

                  http://windowsitpro.com/scripting/ho...script-scripts
                  That's the same solution I already mentioned for CMD https://forum.dbpoweramp.com/showthr...l=1*post169561 merely translated to another language for no advantage that I can see.

                  But if I can't get the existing dBps multi-threading to do the job, it is useful to know there's no alternative.

                  Thanks.

                  Comment

                  • chrisjj
                    dBpoweramp Enthusiast
                    • Nov 2008
                    • 296

                    #10
                    Re: How can I get batch file conversion to use multiple cores?

                    Originally posted by kryten100
                    Back to v15 that used all processors automatically.
                    How does R16 differ in this respect? I see no difference in the changelog http://web.archive.org/web/201610260...hanges-DMC.htm

                    Comment

                    • Spoon
                      Administrator
                      • Apr 2002
                      • 43901

                      #11
                      Re: How can I get batch file conversion to use multiple cores?

                      Each core converter would only run with 1 core, regardless of r version.
                      Spoon
                      www.dbpoweramp.com

                      Comment

                      • chrisjj
                        dBpoweramp Enthusiast
                        • Nov 2008
                        • 296

                        #12
                        Re: How can I get batch file conversion to use multiple cores?

                        Originally posted by Spoon
                        Each core converter would only run with 1 core, regardless of r version.
                        As I thought. Thanks for the confirmation. I guess kryten100 was thinking of one of the other exes.

                        Are there plans for coreconverter.exe to use multiple cores? This would instantly meet the needs of batchfile users such as I. Plus give Batch Converter and Music Converter users a speed-up of up to 16x on batches of up to 16 files.

                        Comment

                        • Spoon
                          Administrator
                          • Apr 2002
                          • 43901

                          #13
                          Re: How can I get batch file conversion to use multiple cores?

                          It is not possible, the encoders expect data to be encoded start to finish on one core, and core converter is started with one file at a time.
                          Spoon
                          www.dbpoweramp.com

                          Comment

                          • chrisjj
                            dBpoweramp Enthusiast
                            • Nov 2008
                            • 296

                            #14
                            Re: How can I get batch file conversion to use multiple cores?

                            Originally posted by Spoon
                            It is not possible, the encoders expect data to be encoded start to finish on one core, and core converter is started with one file at a time.
                            OK, thanks.

                            Comment

                            • Overlord_Laharl
                              • Aug 2015
                              • 5

                              #15
                              Re: How can I get batch file conversion to use multiple cores?

                              this has probably already been thought of but couldn't you use multi-CPU force in the DSPs this would instead of using multiple cpus per file it converts multiple files at once.
                              i use it to maintain 1 core free (so my computer is fully responsive even with the priority set to "above normal")
                              or are you dead set on using a script.

                              Comment

                              Working...

                              ]]>