From owner-freebsd-firewire@FreeBSD.ORG Tue Jul 6 04:07:09 2004 Return-Path: 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 C80E116A4CE for ; Tue, 6 Jul 2004 04:07:09 +0000 (GMT) Received: from smtp3.jp.viruscheck.net (smtp3.jp.viruscheck.net [154.33.69.54]) by mx1.FreeBSD.org (Postfix) with ESMTP id A053A43D1F for ; Tue, 6 Jul 2004 04:07:09 +0000 (GMT) (envelope-from bland@freebsd.org) Received: from scan1.jp.viruscheck.net ([154.33.69.36] helo=mail5.jp.viruscheck.net) by smtp3.jp.viruscheck.net with esmtp (Exim 3.36 #1) id 1BhhEa-0000Lk-00; Tue, 06 Jul 2004 13:07:08 +0900 Received: from [220.221.3.201] (helo=noc.orchid) by mail5.jp.viruscheck.net with esmtp (Exim 3.36 #2) id 1BhhEa-00023J-00; Tue, 06 Jul 2004 13:07:08 +0900 Received: from [89.60.10.11] (horse.orchid [89.60.10.11]) by noc.orchid (8.12.11/8.12.11) with ESMTP id i66477N9097472; Tue, 6 Jul 2004 13:07:07 +0900 (JST) (envelope-from bland@FreeBSD.org) Message-ID: <40EA256B.6060101@FreeBSD.org> Date: Tue, 06 Jul 2004 13:07:07 +0900 From: Alexander Nedotsukov User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a1) Gecko/20040520 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Hidetoshi Shimokawa References: <40E4C710.1040702@FreeBSD.org> <87d63bswig.wl@tora.nunu.org> In-Reply-To: <87d63bswig.wl@tora.nunu.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-firewire@FreeBSD.org Subject: Re: Block noise? when trying to send dv stream to video camera X-BeenThere: freebsd-firewire@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Firewire support in FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jul 2004 04:07:09 -0000 Hidetoshi Shimokawa wrote: >How log does the noise-less image last? a few seconds or shorter? > > > >>square blocks and some parts of those blocks stay gray while >>another contains correct image. Blocks are moving. The size of blocks >>may vary. Time before video get corrupted as well from 0 to 50 sec. Do >>you have any idea what it can be and what is much better how to fix the >>situation? >>I running one week old -CURRENT world+kernel. >> >>Thanks, >>Alexander. >> >> > >Every DV frame has a timestamp on the packet. The DV specification >said that the timestamp must be synced with the bus cycle timer. >Some DV equipments are very sensitive to it and if it's out of sync, >we often observe block noises. > >Current iso transmit code start transmit at specific bus cycle to >ensure that the timestamp must be synced at the start. >The following packets have timestamps which are calculated under >the assumption that a packet is sent for each bus cycle. >If the assumption is broken for some reason(bus is busy to transmit >a packer, the host is too slow to feed the packet and etc.), >the timestamp will be out of sync. > >Do you use PAL or NTSC? > > Well now things become a little bit clear :-) Thanks for explanation. I use NTSC and regilar 4:3 video format. The time I can see noise-less image vary. Some time it 40-50 sec before noise come and some time I see it right after start fwcontrol -S. After you explained me this timing issues I tried to start fwcontrol from system console (not from gnome-terminal window as I did before) and yahoo block noise gone. But there is still a problem. Now Video plays nicely about 5-10 mins and stops then. I can see (EAGAIN) errors reported by fwcontrol utility and this on the system console: ... fwohci0: IT DMA underrun (0x3ab08011) fwohci0: IT DMA underrun (0x3ab08011) fwohci0: IT DMA underrun (0x3ab08011) fwohci0: IT DMA underrun (0x3ab08011) ... Few notes about system performance. I have PIII 1GHz machine here with UDMA66 disk. cpu is 100% idle all the time video transmitted to the camera. All the best, Alexander.