[FFmpeg-devel] Patch proposal : filter ebur128 : add filter name before each line of summary print

Clément Bœsch u at pkh.me
Mon Mar 9 22:32:36 CET 2015


On Mon, Mar 09, 2015 at 10:28:43PM +0100, Martin Vignali wrote:
> In attach a patch proposal, in order to make easier parse result of ebur128
> filter by external scripts
> 
> command line for testing :
> ffmpeg -i aFile.wav -filter ebur128=peak=true+sample -f null -
> 
> Before patch, summary look like this :
> [Parsed_ebur128_0 @ 0x7fe8b0d00000] Summary:
> 
>   Integrated loudness:
>     I:         -23.0 LUFS
>     Threshold: -33.0 LUFS
> 
>   Loudness range:
>     LRA:         5.0 LU
>     Threshold: -43.0 LUFS
>     LRA low:   -26.2 LUFS
>     LRA high:  -21.2 LUFS
> 
>   Sample peak:
>     Peak:       -8.9 dBFS
> 
>   True peak:
>     Peak:       -8.9 dBFS
> 
> 
> After the patch, summary looks like that :
> 
> [Parsed_ebur128_0 @ 0x7f9882c018c0] Summary:
> [Parsed_ebur128_0 @ 0x7f9882c018c0]   Integrated loudness:
> [Parsed_ebur128_0 @ 0x7f9882c018c0]     I:         -23.0 LUFS
> [Parsed_ebur128_0 @ 0x7f9882c018c0]     Threshold: -33.0 LUFS
> [Parsed_ebur128_0 @ 0x7f9882c018c0]   Loudness range:
> [Parsed_ebur128_0 @ 0x7f9882c018c0]     LRA:         5.0 LU
> [Parsed_ebur128_0 @ 0x7f9882c018c0]     Threshold: -43.0 LUFS
> [Parsed_ebur128_0 @ 0x7f9882c018c0]     LRA low:   -26.2 LUFS
> [Parsed_ebur128_0 @ 0x7f9882c018c0]     LRA high:  -21.2 LUFS
> [Parsed_ebur128_0 @ 0x7f9882c018c0]   Sample peak:
> [Parsed_ebur128_0 @ 0x7f9882c018c0]     Peak:       -8.9 dBFS
> [Parsed_ebur128_0 @ 0x7f9882c018c0]   True peak:
> [Parsed_ebur128_0 @ 0x7f9882c018c0]     Peak:       -8.9 dBFS
> 
> 
> 
> I know it can break some scripts, but it can also help script to parse
> result, when there is multiple filters
> I keep in this patch indent in print line.
> 

FFmpeg output is not supposed to be parsed. You have to use ffprobe to
extract the information in an appropriate format instead. The filter
exports metadata.

> Martin

-- 
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150309/a0375a91/attachment.asc>


More information about the ffmpeg-devel mailing list