]> git.sesse.net Git - nageru/commitdiff
In measure-x264.pl, allow single-digit SSIM levels.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 23 Apr 2018 21:08:09 +0000 (23:08 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 23 Apr 2018 21:08:09 +0000 (23:08 +0200)
experiments/measure-x264.pl

index 94f8715477cb8bc86fd08be717bf98568a83e8e0..7c0236c02a3bd17bdac13d2103d51cbb70ba79a7 100644 (file)
@@ -62,7 +62,7 @@ sub measure_preset {
        my $ssim;
        open my $x264, "-|", "/usr/bin/x264 $flags $preset $override_flags -o /dev/null $file 2>&1";
        for my $line (<$x264>) {
-               $line =~ /SSIM Mean.*\((\d+\.\d+)db\)/ and $ssim = $1;
+               $line =~ /SSIM Mean.*\(\s*(\d+\.\d+)db\)/ and $ssim = $1;
        }
        close $x264;
        my $elapsed = Time::HiRes::tv_interval($now);