Tools to normalize pre-roll volume?

I recently added a randomized set of “home theater intro” pre-roll videos to my server. They are all MP4 files with 2-channel AAC LC audio (44.1 kHz, 152 kb/s). Most of my movies are MKV blu-ray rips with either Dolby TrueHD or DTS HD-MA audio. The pre-roll videos tend to be at a much higher volume level than the movies. Is there a tool, or even just a “follow these steps” list, that I can use to normalize the volume of these intro videos in relation to my movies? Thanks.

Thanks for the suggestion. I am on Windows (should have mentioned that originally). I’m not interested in re-encoding the movie audio–it is a straight copy from the blu-ray and I don’t want to reduce it in quality at all. What I want to do is get a relative audio level for maybe a few movies and then adjust the volume level of the pre-roll videos to more-or-less match.

You said above that the audio format is AAC. That’s not a straight copy from BluRay. On BluRay, you get audio as AC3 or DTS or PCM (or in the “better” variations of Dolby digital or DTS).

Unfortunately there is no way to normalize the loudness of AAC without re-encoding it. So you will inevitably have some loss of fidelity.

I think you may have misunderstood the OP. The short pre-roll intro videos have AAC audio, but the movies are Dolby TruHD or DTS HD-MA. I’m fine with re-encoding the audio of the intros but not the movies. I’m just looking for something that would help determine what kind of gain/volume adjustment needs to be made to the intro audio based upon the gain/volume level of a movie (assuming an overall average or the like). I think I might be able to extract the audio and then use Audacity to normalize just the intro audio, then re-mux. I was just checking to see if there was something special made for this task.

This sounds like you’d like to have a special intro for each particular movie?

Still, I think Xmediarecode is the tool for you.
You can let it analyze the loudness of an audio track.
Then you can compare the loudness of the movie with the loudness of the intro(s) and adapt the normalization value down to match that of the movie.
(At least to verify the viability. Afterwards, you can develop a ffmpeg commandline or something.)

  1. Determine the loudness of the movie (1). Note down the dB value (2).
  2. Determine the loudness of the pre-roll.
  3. put the loudness value of the movie into the target loudness selector (3) and re-encode the audio track to whichever format you like.
    ‘Copy’ the video (and the subtitle) track to maintain its quality.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.