title
Products            Buy            Support Forum            Professional            About            Codec Central
 

batch conversion??

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Snafuone
    • Sep 2003
    • 1

    batch conversion??

    hi. I'd love it if the software can batch or mass convert files. Please reply if there's a way to do this. thanks!

    Rick
  • Razgo
    Administrator
    • Apr 2002
    • 2532

    #2
    Re: batch conversion??

    there are several ways to do this. MMC can do it when you highlite all the files and select "convert".

    or you can use "file selctor" to convert folders and files etc...: http://www.dbpoweramp.com/dmc.htm it is an add on.

    Comment

    • Unregistered

      #3
      Re: batch conversion??

      Here is a vb script using db's scripting plus vb code.

      We use task scheduler to schedule this script every night to automatically convert over 1000 wav files.

      Obviously you will need to change the path and file structures for your own environment.....




      call waveconvert("mycnv")

      Sub WaveConvert(directory)

      ' ================================================== ================================
      'These next few lines are directly from dbconverter script

      ' Create dMC Object
      Set dMC = CreateObject("dMCScripting.Converter")

      ' Set My options (Volume norm off, ID Tag Preservation On, No delete Source files)
      dMC.VolumeNormalize = False
      dMC.PreserveTags = True
      dMC.DeleteSourceFiles = True

      dMC.ConvertToFolder = False ' Puts converted file into same folder
      ' ================================================== ================================

      ' Because we put each days recordings into a folder based on the Month, then a sub-folder based on the date, need to create the folder names into variables for path.
      ' There are many ways of doing this. I did it this way.

      myDay = Day(Now)
      myMonth = Month(Now)
      myMonthName = MonthName(Month(Now))
      myYear = Year(now)

      myYear = right(myYear,2)

      if mymonth < 10 then mymonth = "0" & mymonth
      if myday < 10 then myday = "0" & myday

      myFolder = mymonth & "-" & myDay & "-" & myYear


      Dim fso, fldr, fls, fl, fldrPath, fPath, fExt, i
      i=0
      fldrPath = "d:\" & myMonthName & "\" & myFolder & "\"
      fExt = ".WAV" 'MUST BE CAPS
      Set fso = CreateObject("Scripting.FileSystemObject")
      Set fldr = fso.GetFolder(fldrPath)
      Set fls = fldr.Files

      For Each fl In fls
      ' check for file type
      If UCase(Right(fl.Name, 4)) = fExt Then
      ' build full path of file
      fPath = fldrPath + fl.Name

      ' ================================================== ================================
      ' Add My Files to Convert
      Call dMC.AddFromFile(fPath)
      ' ================================================== ================================


      End If
      i = i + 1
      Next

      Call dMC.GoConversion("Wave", True, True, True, False)

      End Sub

      Comment

      • Spoon
        Administrator
        • Apr 2002
        • 44098

        #4
        Re: batch conversion??

        That has got me thinking...what creates 1000 wav files per day? (thinks of an ex-east German telephone exchange ) I presume they are large if they are being converted over night.
        Spoon
        www.dbpoweramp.com

        Comment

        • Unregistered

          #5
          Re: batch conversion??

          Customer Service recordings. Due to laws on the kind of work we do, we must keep recordings. Around 2GB of files per day, give or take a few meg.

          MusicConverter saves about 800MB per day.

          Takes about an hour and a half on a Compaq ProLiant ML530 900MHz server.

          Comment

          Working...

          ]]>