Skip to content

Instantly share code, notes, and snippets.

@kylophone
kylophone / loudness.rb
Last active Sep 23, 2020
FFmpeg loudnorm filter - dual pass loudness normalization example - http://k.ylo.ph/2016/04/04/loudnorm.html
View loudness.rb
#!/usr/bin/env ruby
require 'open3'
require 'json'
ffmpeg_bin = '/usr/local/bin/ffmpeg'
target_il = -24.0
target_lra = +11.0
target_tp = -2.0
samplerate = '48k'
You can’t perform that action at this time.