I have about a hundred home video files that I am recompressing for archival purposes. I want to convert them all to x264 using HandBrake, but I have a problem with the audio. They all follow this format:
- Video track: interlaced DV-PAL 720x576
- Audio track: 16-bit Integer Mono (Left), 48kHz
- Audio track: 16-bit Integer Mono (Right), 48kHz
When I add them into HandBrake, it can only choose one of these audio tracks to include in the conversion, so one audio channel gets lost. I need a way to either:
- pair the two audio tracks as stereo so that HandBrake recognises both tracks as two halves of a whole, or
- replace both tracks with one stereo track.
I need to automate this process without recompressing the video unless it performs the same function as HandBrake, as many of the videos are very long so it would take up too much time to compress them twice.
So far I'm leaning towards the second option. I have managed to batch output all of the audio as stereo WAV files, so I have a folder full of the original videos with corresponding audio files of the same name.
I've been using QuickTime Pro 7 on Mac OS 10.10, but I can boot into Windows 7 if necessary. I don't have any AV processing software installed on the Windows side. I'm not command-line savvy but willing to learn if it will help solve the problem. What should my next steps be?
EDIT: For anyone reading this with a similar problem, my solution involved using LordNeckbeard's code below to batch create stereo WAVs from the source files, and then using QuickTime Player 7 Pro to add these WAVs to the source files and delete the original audio tracks. This resulted in the MOVs having one video track and one stereo audio track. However HandBrake would still only allow me to output mono audio from these source files, for reasons I can't make out, so I'm still stuck.