3 Replies Latest reply on Jul 24, 2010 2:54 PM by Sean_Wilson

    Stripping out members of Director file

    sami90210 Level 1

      Hi

       

      i have more than 200 audio members i need to export as wav files. right now what i do is edit them with the external editor (set in director) and than save them as wav, i need to repeate this 200 times.

       

      i wonder if there is another way to batch proccessing this task?

       

      Thanks

      Shay

        • 1. Re: Stripping out members of Director file
          murali_kumar Level 1

          batch proccessing is Possible

          You Can Use valentin LameXtra

          URL:http://staff.dasdeck.de/valentin/xtras/mp3/

          • 2. Re: Stripping out members of Director file
            sami90210 Level 1

            can you explain how to use it and how it can help me?

             

            im new to director

             

            thanks\

            Shay

            • 3. Re: Stripping out members of Director file
              Sean_Wilson Adobe Community Professional

              You could download a copy of the Audio Xtra and install it in the authoring environment. You could then create a #movie script handler that uses this xtra to export any #sound cast members it finds as WAVE files.

               

              Perhaps something like the following will help. Execute

              mExportAudio()
              

              from your message window. You will see a dialog warning you that the xtra needs to be registered, but if you dismiss this message the handler will continue as normal and any sound members it finds will be exported.

              on mExportAudio
                mPath = _movie.path
                nLibs = _movie.castLib.count
                repeat with ll = 1 to nLibs
                  nMembers = castLib(ll).member.count
                  repeat with mm = 1 to nMembers
                    tMember = member(mm, ll)
                    if tMember.type = #sound then
                      tName = tMember.name
                      if tName = EMPTY then tName = string(mm)
                      OK = axLoadSound(tName, "member", tMember)
                      if OK <> 0 then put "axLoadSound failed:", OK, mm, tName
                      OK = axConvertToFile(tName, mPath & tName & ".wav", "WAVE")
                      if OK <> 0 then put "Export failed:", OK, mm, tName
                      OK = axRemoveSound(tName)
                    end if
                  end repeat
                end repeat
                put "Done..."
              end
              
              1 person found this helpful