[FFmpeg-user] ebur128: How to get truepeak stats?

Graham Schabel graham.schabel at gmail.com
Mon Jun 9 12:41:48 CEST 2014


Answered:

*ffmpeg -nostats -i A00010-01.wav -filter_complex ebur128=peak=true -f null
-*

This true peak option didn't run on ffmpeg 1.2.6 (libavfilter 3.42.103),
but did run okay on 2.2.git Built 8 Jun 2014. (libavfilter 4.6.100). I'm
not sure when the true peak feature came into being, as the change logs
were not overly helpful in this regard.

Example documentation. How should I go about requesting the above example
be included in the "example documentation"? I think the most appropriate
placement would be here:
https://www.ffmpeg.org/ffmpeg-filters.html#Examples-3

Thanks,
Graham



On 5 June 2014 22:38, Graham Schabel <graham.schabel at gmail.com> wrote:

> Hi,
> Simple syntax question: How can I get the filter ebur128 to show true peak
> statistics from ffmpeg?
>
> Below is a current example and printout, if it is needed for reference.
> Thanks in advance,
> Graham
>
> ffmpeg -nostats -i A00010-01.wav -filter_complex ebur128 -f null -
>
> ffmpeg version 1.2.6 Copyright (c) 2000-2014 the FFmpeg developers
>   built on Mar  7 2014 10:52:03 with gcc 4.7 (Debian 4.7.2-5)
>   configuration: --prefix=/usr --extra-cflags='-g -O2 -fstack-protector
> --param=ssp-buffer-size=4 -Wformat -Werror=format-security '
> --extra-ldflags='-Wl,-z,relro' --cc='ccache cc' --enable-shared
> --enable-libmp3lame --enable-gpl --enable-nonfree --enable-libvorbis
> --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc
> --enable-x11grab --enable-libgsm --enable-libtheora
> --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264
> --enable-libspeex --enable-nonfree --disable-stripping --enable-libvpx
> --enable-libschroedinger --disable-encoder=libschroedinger
> --enable-version3 --enable-libopenjpeg --enable-librtmp --enable-avfilter
> --enable-libfreetype --enable-libvo-aacenc --disable-decoder=amrnb
> --enable-libvo-amrwbenc --enable-libaacplus
> --libdir=/usr/lib/x86_64-linux-gnu --disable-vda --enable-libbluray
> --enable-libcdio --enable-gnutls --enable-frei0r --enable-openssl
> --enable-libass --enable-libopus --enable-fontconfig --enable-libpulse
> --disable-mips32r2 --disable-mipsdspr1 --dis  libavutil      52. 18.100 /
> 52. 18.100
>   libavcodec     54. 92.100 / 54. 92.100
>   libavformat    54. 63.104 / 54. 63.104
>   libavdevice    54.  3.103 / 54.  3.103
>   libavfilter     3. 42.103 /  3. 42.103
>   libswscale      2.  2.100 /  2.  2.100
>   libswresample   0. 17.102 /  0. 17.102
>   libpostproc    52.  2.100 / 52.  2.100
> [wav @ 0x1d595c0] max_analyze_duration 5000000 reached at 5015510
> microseconds
> Guessed Channel Layout for  Input Stream #0.0 : stereo
> Input #0, wav, from 'A00010-01.wav':
>   Duration: 00:06:41.41, bitrate: 1411 kb/s
>     Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz,
> stereo, s16, 1411 kb/s
> Output #0, null, to 'pipe:':
>   Metadata:
>     encoder         : Lavf54.63.104
>     Stream #0:0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
> Stream mapping:
>   Stream #0:0 (pcm_s16le) -> ebur128
>   ebur128 -> Stream #0:0 (pcm_s16le)
> Press [q] to stop, [?] for help
> [Parsed_ebur128_0 @ 0x1d69ce0] t: 0.0999792  M:-120.7 S:-120.7     I:
> -70.0 LUFS     LRA:   0.0 LU
> [Parsed_ebur128_0 @ 0x1d69ce0] t: 0.199979   M:-120.7 S:-120.7     I:
> -70.0 LUFS     LRA:   0.0 LU
>
> ....
>
> [Parsed_ebur128_0 @ 0x1d69ce0] t: 401.3      M:-142.9 S: -20.7     I:
> -17.7 LUFS     LRA:   8.1 LU
> [Parsed_ebur128_0 @ 0x1d69ce0] t: 401.4      M:-142.9 S: -21.0     I:
> -17.7 LUFS     LRA:   8.1 LU
> size=N/A time=00:06:41.40 bitrate=N/A
> video:0kB audio:75264kB subtitle:0 global headers:0kB muxing overhead
> -100.000029%
> Summary:
>
>   Integrated loudness:
>     I:         -17.7 LUFS
>     Threshold: -28.3 LUFS
>
>   Loudness range:
>     LRA:         8.1 LU
>     Threshold: -38.3 LUFS
>     LRA low:   -23.1 LUFS
>     LRA high:  -15.0 LUFS
>


More information about the ffmpeg-user mailing list