<p>This question is a spin-off of a previous one focused mostly on Premiere Pro: <a href="https://video.stackexchange.com/questions/21872/how-match-this-broadcast-standards-with-premiere-and-ffmpeg">How match this broadcast standards with Premiere and ffmpeg</a></p>

<hr>

<p><strong>My goal in this one is learn as much as possible to handle the things with ffmpeg or ffmbc</strong></p>

<p>I have to create a MXF file from a input .mov in ProRes or DNxHD with various requests by the network:      </p>

<p><strong>Video Requests</strong></p>

<blockquote>
  <p><em>Conform to SMPTE 274M, “1920 x 1080 Scanning with no visible video impairment such as blocking errors or pixelization artefacts.
  <strong>Luminance and color difference signals must not exceed the bounds of legal gamut.</strong> Video technical standards are fully detailed in ITU-R
  BT.709.5.</em></p>
  
  <p><em>For the video levels, sync and blanking must be in accordance with EBU recommendations, <strong>the component video levels must not exceed
  700mV ±3% for the luminance channel and ±350 mV for the color
  difference channels.  No excursions below black level can be tolerated
  in the luminance, never below 0mV</strong>.</em></p>
</blockquote>

<p><strong>Audio Requests</strong></p>

<blockquote>
  <p><em>Alignment Level (AL) shall be –18dBFS with respect to maximum audio coding level (PPM4 on a BBC PPM – IEC type IIa). The Permitted Maximum
  Level (PML - as defined in ITU-R BS.645-2) must comply ITU-R BR.1384.1
  and ITU-R BS.1726. Peaks should not exceed a level -10dB below the
  digital full-scale level (0 dBFS) when monitored by a “quasi-peak
  programme meter” as specified in IEC 60268-10.</em></p>
  
  <p><em>Loudness control on all audio formats The method to measure the loudness of an audio program is settled by the recommendations,
  ITU-1770, ITU 1771 and ITU-Document 6/175-E.</em> </p>
  
  <p><em>Program Loudness Level represents the ordinary level of the program resulting from the measurement of the entire contents analyzed whole
  (from start to the end, and all audio channels making up the
  soundtrack).  The Program Loudness must conform to R128-EBU</em></p>
  
  <p><em>“Short-term” LKFS values shall not be higher than –21 LKFS for the whole program.  “Long-term” Loudness must be –24 LKFS ± 0,5. In both
  cases the gate must be active at a threshold at -8 relative to the
  target “Long Term” value (- 24 – 8 = -32 LKFS). Short-term and
  long-term LKFS shall be measured for each audio program accompanying
  the picture (ie: Dubbed stereo, original language stereo, M&amp;E stereo
  tracks, etc.).</em></p>
</blockquote>

<p>My interest is mostly on matching the Video Requests.. as for the audio ones if them can be handled also with the ffmpeg filters would be nice too..</p>

<p>My approach would be check with signalstats filter if everything is ok as suggested my @Mulvya in the previous answer. But i would put in output a MXF file that match already the requests.</p>

CC BY-SA 3.0
2017-07-07T21:06:50.300Z
The audio part is probably easier. Look at the [ebur128 filter](https://ffmpeg.org/ffmpeg-filters.html#ebur128-1) to measure loudness and the [loudnorm filter](https://ffmpeg.org/ffmpeg-filters.html#loudnorm) to correct loudness. Don't worry about the first paragraph on audio. If you get the loudness right, the rest will fall in place. You shouldn't be using a PPM meter anymore. It looks like they didn't remove the out of date specs when they added the loudness specs.
Michael Liebman
CC BY-SA 3.0
2017-07-08T09:19:20.060Z
@MichaelLiebman I see, well this is a good starting point. Any hint on how to normalize the video levels with a ffmpeg filter?
user3450548
CC BY-SA 3.0
2017-07-08T17:47:15.480Z
There appear to be several that could be useful (colorlevels, colorspace, colormatrix, limiter, and the various LUT filters). I don't know enough about them to say which would work for your situation.
Michael Liebman
<ffmpeg><video-quality><broadcasting><audio-quality><ffmbc>
Check first then enforce and match various broadcaster requests with ffmpeg
user3450548
# Check first then enforce and match various broadcaster requests with ffmpeg

(Asked by: username_0 on 2017-07-07)

This question is a spin-off of a previous one focused mostly on Premiere Pro: [How match this broadcast standards with Premiere and ffmpeg](https://video.stackexchange.com/questions/21872/how-match-this-broadcast-standards-with-premiere-and-ffmpeg)

---

**My goal in this one is learn as much as possible to handle the things with ffmpeg or ffmbc**

I have to create a MXF file from a input .mov in ProRes or DNxHD with various requests by the network:

**Video Requests**

> *Conform to SMPTE 274M, “1920 x 1080 Scanning with no visible video impairment such as blocking errors or pixelization artefacts.
> **Luminance and color difference signals must not exceed the bounds of legal gamut.** Video technical standards are fully detailed in ITU-R
> BT.709.5.*
>
> *For the video levels, sync and blanking must be in accordance with EBU recommendations, **the component video levels must not exceed
> 700mV ±3% for the luminance channel and ±350 mV for the color
> difference channels. No excursions below black level can be tolerated
> in the luminance, never below 0mV**.*

**Audio Requests**

> *Alignment Level (AL) shall be –18dBFS with respect to maximum audio coding level (PPM4 on a BBC PPM – IEC type IIa). The Permitted Maximum
> Level (PML - as defined in ITU-R BS.645-2) must comply ITU-R BR.1384.1
> and ITU-R BS.1726. Peaks should not exceed a level -10dB below the
> digital full-scale level (0 dBFS) when monitored by a “quasi-peak
> programme meter” as specified in IEC 60268-10.*
>
> *Loudness control on all audio formats The method to measure the loudness of an audio program is settled by the recommendations,
> ITU-1770, ITU 1771 and ITU-Document 6/175-E.*
>
> *Program Loudness Level represents the ordinary level of the program resulting from the measurement of the entire contents analyzed whole
> (from start to the end, and all audio channels making up the
> soundtrack). The Program Loudness must conform to R128-EBU*
>
> *“Short-term” LKFS values shall not be higher than –21 LKFS for the whole program. “Long-term” Loudness must be –24 LKFS ± 0,5. In both
> cases the gate must be active at a threshold at -8 relative to the
> target “Long Term” value (- 24 – 8 = -32 LKFS). Short-term and
> long-term LKFS shall be measured for each audio program accompanying
> the picture (ie: Dubbed stereo, original language stereo, M&E stereo
> tracks, etc.).*

My interest is mostly on matching the Video Requests.. as for the audio ones if them can be handled also with the ffmpeg filters would be nice too..

My approach would be check with signalstats filter if everything is ok as suggested my @Mulvya in the previous answer. But i would put in output a MXF file that match already the requests.

**Tags:** ffmpeg, video-quality, broadcasting, audio-quality, ffmbc

> **Comments:**
> **username_1**: The audio part is probably easier. Look at the [ebur128 filter](https://ffmpeg.org/ffmpeg-filters.html#ebur128-1) to measure loudness and the [loudnorm filter](https://ffmpeg.org/ffmpeg-filters.html#loudnorm) to correct loudness. Don't worry about the first paragraph on audio. If you get the loudness right, the rest will fall in place. You shouldn't be using a PPM meter anymore. It looks like they didn't remove the out of date specs when they added the loudness specs.  
> **username_0**: @MichaelLiebman I see, well this is a good starting point. Any hint on how to normalize the video levels with a ffmpeg filter?  
> **username_1**: There appear to be several that could be useful (colorlevels, colorspace, colormatrix, limiter, and the various LUT filters). I don't know enough about them to say which would work for your situation.  

---

## 0 answers

