Announcement

Collapse
No announcement yet.

Scripts to transcode a variety of audio formats for import to UE4

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    Scripts to transcode a variety of audio formats for import to UE4

    I wrote some PowerShell scripts called UE4PrepareAudio that transcode audio files from a variety of formats to PCM 16 little endian WAV files so they can be imported into UE4. The transcoding is done by ffmpeg.

    Feedback and pull requests welcome.

    Ideally, these scripts are just a stopgap and the UE4 editor will be enhanced to support importing a wider variety of audio files.
    Last edited by drichardson; 02-13-2019, 01:13 PM. Reason: update link

    #2
    Looks like 4.22 will have audio import improvements. I haven't tried 4.22 preview yet, but hopefully it makes my scripts obsolete.

    Comment


      #3
      We have an implementation of libsndfile to support our import conversion:

      http://www.mega-nerd.com/libsndfile/
      Dan Reynolds
      Technical Sound Designer || Unreal Audio Engine Dev Team

      Comment


        #4
        Thanks for the info dan.reynolds. I presume the import improvements will handle re-sampling as well as format conversions?

        Comment


          #5
          There is no need to convert sample rates on import. The Audio Engine will playback files at any sample rate as it does real time sample rate conversion during playback. I would not recommend the practice.

          There are options to convert the sample rate of your files on cook if needed.
          Dan Reynolds
          Technical Sound Designer || Unreal Audio Engine Dev Team

          Comment


            #6
            Oh right, I forgot. The current (as of 4.21) import restriction is on bit depth, not sample rate. I had a bunch of files I purchased that were 24-bit WAV that didn't import by default.

            Comment


              #7
              Bit depth conversion is handled.
              Dan Reynolds
              Technical Sound Designer || Unreal Audio Engine Dev Team

              Comment

              Working...
              X