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.
pgpKmT9Md0OTz.pgp
Description: PGP signature
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel