title: Using FFmpeg or Similar to Normalize audio in a video to EBU R128 standard
body: <p>This is my first time here on stack overflow asking question.</p>
  
  <p>I am stuck and really struggling with this. I am trying to make some of my MXF video files to be EBU r128 standard for its audio.</p>
  
  <p>This means that it has to be -23 and not higher than 0.5.</p>
  
  <p>My current process</p>
  
  <p>Watch_folder > Encoding to MXF > Output_folder</p>
  
  <p>I need to makesure when its comes to output folder, those MXF files are EBU R128 Loudness compliant. </p>
  
  <p>What I have done so Far:</p>
  
  <p><strong>FFMPEG:</strong></p>
  
  <p><code>ffmpeg -i input.mxf -af loudnorm=I=-23:LRA=7:tp=-2:print_format=json -f null -</code></p>
  
  <p>got the result: </p>
  
  <p>Input Integrated:    -15.1 LUFS
  Input True Peak:      +0.0 dBTP
  Input LRA:            17.1 LU
  Input Threshold:     -26.2 LUFS</p>
  
  <p>Output Integrated:   -17.1 LUFS
  Output True Peak:     -1.5 dBTP
  Output LRA:            5.3 LU
  Output Threshold:    -27.6 LUFS</p>
  
  <p>Normalization Type:   Dynamic
  Target Offset:        +1.1 LU</p>
  
  <p>then i did </p>
  
  <p><code>ffmpeg -i input.mxf  -af loudnorm=I=-23:LRA=7:tp=-2:measured_I=-15.1:measured_LRA=17.1:measured_tp=0:measured_thresh=-27.6:offset=1.1 -ar 48k -y output.mxf</code></p>
  
  <p>However, when i put it through the software <code>Eff</code>, it says that its not EBU compliant.</p>
  
  <p>*EDIT:
  This also reduces the quality. for example; my 6 Gb becomes 250 MB and you can tell the quality downgraded</p>
  
  <p><strong>ffmpeg-normalize</strong></p>
  
  <p>I did the following</p>
  
  <p><code>ffmpeg-normalize input.mxf -c:a pcm_s32le -ar 48000 -o output.mxf</code>
  but this gives me errors.</p>
  
  <p>if i do it without the output file type, i get a mkv which will not work for me. i need it to be mxf. </p>