I had posted a while ago that I found an app that allowed me to replace the audio track of a video file without re-encoding the video (which creates a loss in quality). Of course, I’ve been so busy the last few weeks that the demo license ran out before I had a chance to process all the files I wanted to process. I knew they just used FFMPEG to do this (a command line video utility), so I had ChatGPT create a script to run in Terminal on my Mac to process all the files in a particular folder. Of course, I made a duplicate of the folder first before running the script. It threw up a bunch of scary looking lines but it worked perfectly.
Other prep was to remove the “_01” in the WAV filenames that Audition put on there to make sure the file names of the video file and file name of the audio file were exactly the same. The script was smart enough to add “_new” to the end of each file. I used the “Rename” function that’s built into the Mac’s Finder to do both of those processes.