Mercurial > mplayer.hg
comparison TOOLS/README @ 16462:fce59530dcfd
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
author | gpoirier |
---|---|
date | Mon, 12 Sep 2005 16:35:58 +0000 |
parents | 131464cb3dfb |
children | d9697b778be2 |
comparison
equal
deleted
inserted
replaced
16461:f93eaa5ad64d | 16462:fce59530dcfd |
---|---|
252 | 252 |
253 Note: Requires gnuplot. Comparison is based on file2. Comparison | 253 Note: Requires gnuplot. Comparison is based on file2. Comparison |
254 assumes that the frame numbers of both files fit. | 254 assumes that the frame numbers of both files fit. |
255 | 255 |
256 | 256 |
257 psnr-video.sh | |
258 | |
259 Author: Matthias Wieser | |
260 | |
261 Description: Calculates the PSNR between two existing video files. | |
262 The PSNR is calculated frame by frame. | |
263 Prints also the overall PSNR. | |
264 The script can be used to: | |
265 * compare different softwarescalers (should I use | |
266 -sws 1 or -sws 2) ? | |
267 * compare different resolutions (is it better to scale | |
268 down to 640x360 or to 560x320) | |
269 * compare different deinterlacers | |
270 * compare different video codecs | |
271 * compare video filters (is it better to use -vf hqdn3d | |
272 or lavcopts:nr=400) | |
273 * [...] | |
274 | |
275 Usage: psnr-video.sh <file1> <file2> [<frames>] [<options1>] [<options2>] | |
276 | |
277 <file1> and <file2> are the video files for which the PSNR | |
278 should be calculated. | |
279 [<frames>] is the number of frames to process, starting | |
280 from frame 1. | |
281 [<options1>] are additional MPlayer options for <file1> | |
282 [<options2>] are additional MPlayer options for <file2> | |
283 | |
284 A file called psnr.dat will be created with the following | |
285 content: | |
286 | |
287 File;Y;Cb;Cr | |
288 00000001.ppm;34.23;39.54;40.06;35.426 | |
289 00000002.ppm;33.03;38.71;39.26;34.271 | |
290 00000003.ppm;33.45;38.91;39.28;34.655 | |
291 00000004.ppm;32.72;38.69;38.85;33.972 | |
292 [...] | |
293 00000247.ppm;35.55;40.84;42.15;36.785 | |
294 PSNR:;35.9887 | |
295 | |
296 Note: This script relies on the the tool "pnmpsnr" for the | |
297 frame-by-frame PSNR calculation. | |
298 Be aware that psnr-video.sh needs a lot of temporal space | |
299 inside /temp/. | |
300 | |
301 | |
257 asfinfo | 302 asfinfo |
258 | 303 |
259 Author: Arpi | 304 Author: Arpi |
260 | 305 |
261 Description: a simple ASF header display program | 306 Description: a simple ASF header display program |