- Introduction to Video
- Stream video files
- Start live streaming
- Make API requests
- Play your videos
- Enable static MP4 renditions
- Download for offline editing
- Embed videos for social media
- Listen for webhooks
- Secure video playback
- Create clips from your videos
- Get images from a video
- Create timeline hover previews
- Adjust audio levels
- Add watermarks to your videos
- Add subtitles to your videos
- Minimize processing time
- Upload files directly
- Autoplay your videos
- Stream an audio-only version of your video
- Synchronize video playback
- Integrate with your CMS
Adjust audio levels
This guide will show how to adjust the audio level to your videos. Audio normalization can be added to on-demand assets.
In this guide:
What is audio normalization
What is audio normalization
Adjusting the loudness of an audio stream or file
When to use audio normalization
When to use audio normalization
Learn when it's appropriate to use audio normalization
How to turn on audio normalization
How to turn on audio normalization
Learn how to enable audio normalization on your assets
Target loudness
Target loudness
Our internal LUFS value
Here at Mux, When we refer to audio normalization, we are referring to loudness normalization. Loudness normalization adjusts the recording based on perceived loudness.
Below, is an audio stream before normalization
An audio stream after normalization
LUFS, which stands for Loudness Units relative to Full Scale, are a measurement of loudness over the entire length of an audio stream. This is the measurement used in the normalization process. The whole goal of normalizing is attaining the gain to bring the average amplitude to a target level; the "norm".
The main use of audio normalization is to standardize the perceived loudness of your assets. Whether to use normalization at all depends on the content. When audio gain is normal and audio quality is high, normalization can be beneficial. Please note however, similar to other video and audio processing, this processing on your audio is going to change it some way. So make an informed decision on whether to use this feature or not.
At this moment, the only way to enable audio normalization on a Mux asset is through the create asset endpoint.API You cannot update this after the asset has been created. This option also only applies to on-demand assets (audio-only included) but not live streams.
To enable audio normalization on your asset ingest, set the normalize_audio
key to true
in the body of your asset creation. By default, this boolean is set to false.
A typical request and response might look something like this:
Request
curl https://api.mux.com/video/v1/assets \ -H "Content-Type: application/json" \ -X POST \ -d '{ "input": "https://example.com/myVideo.mp4", "playback_policy": ["public"], "normalize_audio": true }' \ -u ${MUX_TOKEN_ID}:${MUX_TOKEN_SECRET}
Response
{ "data": { "status": "preparing", "playback_ids": [ { "policy": "public", "id": "006Hx6bozgZv2sL9700Y8TT02MKdw4nq01ipMVawIGV9j000" } ], "normalize_audio": true, "mp4_support": "none", "master_access": "none", "id": "jlJydoVkYh01Z3JrLr02RGcp4mJdLvPRbk9n00000", "created_at": "1612979762" } }
Our target loudness value for audio normalization in our video stack is currently –24 LUFS. So, if possible, master your audio with this value in mind.