diff options
author | gpoirier <gpoirier@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-09-12 16:35:58 +0000 |
---|---|---|
committer | gpoirier <gpoirier@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-09-12 16:35:58 +0000 |
commit | 07ea8451969cbfa0ab0a58250934f438bf055853 (patch) | |
tree | 0210c84fe6d45401cb84eb067e16178c710f2ddb /TOOLS/README | |
parent | 28ee54a9405b05464873efc68638620c11228788 (diff) | |
download | mpv-07ea8451969cbfa0ab0a58250934f438bf055853.tar.bz2 mpv-07ea8451969cbfa0ab0a58250934f438bf055853.tar.xz |
Adds the script psnr-video.sh to calculate the PSNR between two existing video files.
Script by Matthias Wieser < mwieser AH gmx POUM de >
Original thread:
Date: Aug 25, 2005 1:54 PM
Subject: [MEncoder-users] [Script] PSNR between two video files
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16463 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'TOOLS/README')
-rw-r--r-- | TOOLS/README | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/TOOLS/README b/TOOLS/README index aa10e2f522..b4813b13f4 100644 --- a/TOOLS/README +++ b/TOOLS/README @@ -254,6 +254,51 @@ Note: Requires gnuplot. Comparison is based on file2. Comparison assumes that the frame numbers of both files fit. +psnr-video.sh + +Author: Matthias Wieser + +Description: Calculates the PSNR between two existing video files. + The PSNR is calculated frame by frame. + Prints also the overall PSNR. + The script can be used to: + * compare different softwarescalers (should I use + -sws 1 or -sws 2) ? + * compare different resolutions (is it better to scale + down to 640x360 or to 560x320) + * compare different deinterlacers + * compare different video codecs + * compare video filters (is it better to use -vf hqdn3d + or lavcopts:nr=400) + * [...] + +Usage: psnr-video.sh <file1> <file2> [<frames>] [<options1>] [<options2>] + + <file1> and <file2> are the video files for which the PSNR + should be calculated. + [<frames>] is the number of frames to process, starting + from frame 1. + [<options1>] are additional MPlayer options for <file1> + [<options2>] are additional MPlayer options for <file2> + + A file called psnr.dat will be created with the following + content: + + File;Y;Cb;Cr + 00000001.ppm;34.23;39.54;40.06;35.426 + 00000002.ppm;33.03;38.71;39.26;34.271 + 00000003.ppm;33.45;38.91;39.28;34.655 + 00000004.ppm;32.72;38.69;38.85;33.972 + [...] + 00000247.ppm;35.55;40.84;42.15;36.785 + PSNR:;35.9887 + +Note: This script relies on the the tool "pnmpsnr" for the + frame-by-frame PSNR calculation. + Be aware that psnr-video.sh needs a lot of temporal space + inside /temp/. + + asfinfo Author: Arpi |