From owner-freebsd-firewire Sun Feb 16 17:53: 4 2003 Delivered-To: freebsd-firewire@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7150637B401 for ; Sun, 16 Feb 2003 17:53:03 -0800 (PST) Received: from rhymer.cogsci.ed.ac.uk (rhymer.cogsci.ed.ac.uk [129.215.144.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4919B43F75 for ; Sun, 16 Feb 2003 17:53:02 -0800 (PST) (envelope-from richard@cogsci.ed.ac.uk) Received: from sorley.cogsci.ed.ac.uk (sorley [129.215.144.53]) by rhymer.cogsci.ed.ac.uk (8.9.3/8.9.3) with ESMTP id BAA00905; Mon, 17 Feb 2003 01:53:00 GMT Received: (from richard@localhost) by sorley.cogsci.ed.ac.uk (8.9.3+Sun/8.9.3) id BAA11342; Mon, 17 Feb 2003 01:53:19 GMT Date: Mon, 17 Feb 2003 01:53:19 GMT Message-Id: <200302170153.BAA11342@sorley.cogsci.ed.ac.uk> From: Richard Tobin Subject: Re: PAL DV, doesn't quite work To: freebsd-firewire@freebsd.org In-Reply-To: Richard Tobin's message of Sun, 16 Feb 2003 18:56:09 GMT Organization: just say no Sender: owner-freebsd-firewire@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I wrote: > I then used "fwcontrol -R" to capture some video. I used "playdv" to > look at it, and both audio and video were scrambled. I added a printf > to fwdv.c, and found that the test > > pal = ((dv->payload[0] & DV_DSF_12) != 0); > > was returning 0 because dv->payload[0] is 63 (DV_DSF_12 is 128). I looked into this. It seems that my PAL camcorder is falsely claiming to be NTSC (525/60, 10 DIF sequences) in the header section, and correctly claiming to be PAL (625/50, 12 DIF sequences) in the VAUX section. I looked at the dvlib code, and this seems to be a known problem; there is a comment in dv_parse_header in parse.c: /* * parse vaux data now to check if there is a inconsistanciy between * header->dsf and vaux data for auto mode */ and it treats the stream as 625/50 if either the DSF bit is set or the VAUX data has the 50/60 flag set. -- Richard To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-firewire" in the body of the message