From owner-freebsd-questions@FreeBSD.ORG Tue Sep 2 15:59:53 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8823C1065680 for ; Tue, 2 Sep 2008 15:59:53 +0000 (UTC) (envelope-from freebsd@optiksecurite.com) Received: from tomts27-srv.bellnexxia.net (tomts27.bellnexxia.net [209.226.175.101]) by mx1.freebsd.org (Postfix) with ESMTP id 20A2E8FC13 for ; Tue, 2 Sep 2008 15:59:52 +0000 (UTC) (envelope-from freebsd@optiksecurite.com) Received: from toip40-bus.srvr.bell.ca ([67.69.240.41]) by tomts27-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20080902155952.MSGQ5613.tomts27-srv.bellnexxia.net@toip40-bus.srvr.bell.ca>; Tue, 2 Sep 2008 11:59:52 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApoEAOr8vEhKD7BS/2dsb2JhbACzdoFp Received: from mtrlpq02-1242542162.sdsl.bell.ca (HELO [69.69.69.183]) ([74.15.176.82]) by toip40-bus.srvr.bell.ca with ESMTP; 02 Sep 2008 11:59:36 -0400 Message-ID: <48BD62D0.4030809@optiksecurite.com> Date: Tue, 02 Sep 2008 11:59:12 -0400 From: FreeBSD User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: Polytropon References: <090220081512.17537.48BD57E100051D800000448122068246930B020E080C9DCF03@comcast.net> <48BD5A8A.5080400@optiksecurite.com> <48BD5C65.9030502@optiksecurite.com> <20080902174044.520fbbb3.freebsd@edvax.de> In-Reply-To: <20080902174044.520fbbb3.freebsd@edvax.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Cc: Tom Marchand , Andrew Gould , freebsd-questions@freebsd.org Subject: Re: How to compare 2 images from command line X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Sep 2008 15:59:53 -0000 Polytropon a écrit : > On Tue, 02 Sep 2008 11:31:49 -0400, FreeBSD wrote: >> I want to determine if Mplayer is working correctly. The best way to be >> sure is to check if the display on the screen is changing. That's the >> purpose of the screenshots. > > And this works? I always thought mplayer would output the video > stream via DRI / DRM, so on the screenshot, nothing would be seen... > Yes it works. I don't know how scrot takes it's screenshot but it does it well ;) >> The screenshots are taken by Nagios every 5 >> minutes and the new screenshot is compared with the preceding one. But, >> by now, it doesn't work because every tool we try is seeing a diffence >> between 2 identical images. > > The images may be identical in content, but it's completely possible > that other data (others than the pictural information) is coded into > the file, for example date and time of creation, so the files may be > different, while the pictures they show are identical. > > It would be useful first to "decompile" the files - create a new file > that only contains pictural information, nothing more. > > >