jiixyj / libebur128

A library implementing the EBU R128 loudness standard.
MIT License
395 stars 76 forks source link

Using FFprobe to output loudness data #57

Open davidjmerritt opened 7 years ago

davidjmerritt commented 7 years ago

Hello,

This is more of a question. Is there a way to use libebur128 in ffprobe to output the loudness information that loundorm outputs within ffmpeg?

Here is what I am doing now:

ffmpeg -i in.aif -filter_complex "[0a]loudnorm=I=-5:TP=0:LRA=1:print_format=json[lna]; [lna]alimiter=limit=.8: level=disable[a_1]" -map "[a_1]"  -b:a 48k -ar 16000 out.mp3

Outputting this:

{
    "input_i" : "-10.26",
    "input_tp" : "-1.05",
    "input_lra" : "2.56",
    "input_thresh" : "-20.34",
    "output_i" : "-7.77",
    "output_tp" : "+0.00",
    "output_lra" : "2.09",
    "output_thresh" : "-17.84",
    "normalization_type" : "dynamic",
    "target_offset" : "2.77"
}

What I would like to do is add that data to this command's output:

/usr/local/bin/ffprobe -i test.mp3 -v quiet -print_format json -show_format -show_streams

Thanks! -D

kylophone commented 7 years ago

This is a question for ffmpeg-user@ffmpeg.org.