From owner-freebsd-firewire@FreeBSD.ORG Sun Nov 6 21:39:05 2005 Return-Path: X-Original-To: freebsd-firewire@freebsd.org 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 78EFD16A41F; Sun, 6 Nov 2005 21:39:05 +0000 (GMT) (envelope-from freebsd@sopwith.solgatos.com) Received: from schitzo.solgatos.com (c-67-168-241-176.hsd1.or.comcast.net [67.168.241.176]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1CBF543D48; Sun, 6 Nov 2005 21:39:05 +0000 (GMT) (envelope-from freebsd@sopwith.solgatos.com) Received: from sopwith.solgatos.com (uucp@localhost) by schitzo.solgatos.com (8.11.6/8.11.6) with UUCP id jA6LdCo16752; Sun, 6 Nov 2005 13:39:12 -0800 Received: from localhost by sopwith.solgatos.com (8.8.8/6.24) id VAA10645; Sun, 6 Nov 2005 21:39:06 GMT Message-Id: <200511062139.VAA10645@sopwith.solgatos.com> To: freebsd-multimedia@freebsd.org, freebsd-firewire@freebsd.org Date: Sun, 06 Nov 2005 13:39:06 +0000 From: Dieter Cc: Subject: Sending DV to camcorder over firewire gives dropouts X-BeenThere: freebsd-firewire@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd@sopwith.solgatos.com List-Id: Firewire support in FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Nov 2005 21:39:05 -0000 AMD64 running FreeBSD 6.0 beta3. Canon DV NTSC camcorder connected via firewire. Playing a tape and recording it on the computer via fwcontrol -R filename.dv appears to work fine. Sending the video back to the camcorder via fwcontrol -S filename.dv mostly works, but every 1.5-2 seconds or so I get a momentary dropout of both video and audio. I get the same dropouts with a dv file created by "fwcontrol -R" and with dv files created by ffmpeg. This is with the camcorder in "VCR" mode, and stopped (not recording). The computer is otherwise idle. The dropouts are very regular and repeatable, so it probably isn't due to an occasional transmission error, or the computer being busy for a moment. Wild Guess Theory #1: fwcontrol -S reports: 3948 frames, 131.50 secs, 30.02 frames/sec 784 frames, 25.92 secs, 30.24 frames/sec 3597 frames, 119.78 secs, 30.03 frames/sec Shouldn't this be 29.97 fps ? Wild Guess Theory #2: Perhaps the flow-control / buffer-management isn't quite right, and the camcorder runs out of data? From owner-freebsd-firewire@FreeBSD.ORG Sun Nov 6 22:09:03 2005 Return-Path: X-Original-To: freebsd-firewire@freebsd.org 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 6E89B16A420 for ; Sun, 6 Nov 2005 22:09:03 +0000 (GMT) (envelope-from arne_woerner@yahoo.com) Received: from web30304.mail.mud.yahoo.com (web30304.mail.mud.yahoo.com [68.142.200.97]) by mx1.FreeBSD.org (Postfix) with SMTP id 1148E43D5C for ; Sun, 6 Nov 2005 22:09:00 +0000 (GMT) (envelope-from arne_woerner@yahoo.com) Received: (qmail 52889 invoked by uid 60001); 6 Nov 2005 22:09:00 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=OJ2DFfizt6qH88pe3sxC55bkA6rewxSCC+BpHhdP/iiaX3ijDRsefoeJ5ASOyqNE4Dz/L2z56+HS0uvOMugM+xAo+RIt98gVHu75tEXGLGx38wyXKBmguKP5h9+wUk+gEvfLrMmgp4gk0htJEzZHxCq2WghLx3kVAhI7l1xEy9c= ; Message-ID: <20051106220859.52887.qmail@web30304.mail.mud.yahoo.com> Received: from [213.54.81.19] by web30304.mail.mud.yahoo.com via HTTP; Sun, 06 Nov 2005 14:08:59 PST Date: Sun, 6 Nov 2005 14:08:59 -0800 (PST) From: Arne "Wörner" To: freebsd@sopwith.solgatos.com, freebsd-multimedia@freebsd.org, freebsd-firewire@freebsd.org In-Reply-To: <200511062139.VAA10645@sopwith.solgatos.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: Subject: Re: Sending DV to camcorder over firewire gives dropouts X-BeenThere: freebsd-firewire@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Firewire support in FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Nov 2005 22:09:03 -0000 Hi! --- Dieter wrote: > AMD64 running FreeBSD 6.0 beta3. > Canon DV NTSC camcorder connected via firewire. > > Playing a tape and recording it on the computer via > > fwcontrol -R filename.dv > > appears to work fine. > Sweet... (I am just watching "Dude! Where is my car?) :-)) > Sending the video back to the camcorder via > > fwcontrol -S filename.dv > > mostly works, but every 1.5-2 seconds or so I get a momentary > dropout of both video and audio. I get the same dropouts > with a dv file created by "fwcontrol -R" and with dv files > created > by ffmpeg. > > This is with the camcorder in "VCR" mode, and stopped (not > recording). > The computer is otherwise idle. > > The dropouts are very regular and repeatable, so it probably > isn't due to > an occasional transmission error, or the computer being busy for > a moment. > > Wild Guess Theory #1: > > fwcontrol -S reports: > > 3948 frames, 131.50 secs, 30.02 frames/sec > 784 frames, 25.92 secs, 30.24 frames/sec > 3597 frames, 119.78 secs, 30.03 frames/sec > > Shouldn't this be 29.97 fps ? > I like that theory: I found in ffmpeg's man page the following option: -r fps set frame rate (default = 25) Dude! Did you use the "-r" option? Maybe you could do some experiments: 1. -r 40 2. -r 25 3. -r 20 4. -r 30 and watch for the length of drop outs and inter-mittance-time (is that the right word? I mean: The time between drop outs)... -Arne __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com From owner-freebsd-firewire@FreeBSD.ORG Mon Nov 7 03:09:32 2005 Return-Path: X-Original-To: freebsd-firewire@freebsd.org 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 70FD916A41F; Mon, 7 Nov 2005 03:09:32 +0000 (GMT) (envelope-from freebsd@sopwith.solgatos.com) Received: from schitzo.solgatos.com (c-67-168-241-176.hsd1.or.comcast.net [67.168.241.176]) by mx1.FreeBSD.org (Postfix) with ESMTP id 00D3543D46; Mon, 7 Nov 2005 03:09:31 +0000 (GMT) (envelope-from freebsd@sopwith.solgatos.com) Received: from sopwith.solgatos.com (uucp@localhost) by schitzo.solgatos.com (8.11.6/8.11.6) with UUCP id jA739QK18086; Sun, 6 Nov 2005 19:09:26 -0800 Received: from localhost by sopwith.solgatos.com (8.8.8/6.24) id DAA15739; Mon, 7 Nov 2005 03:09:23 GMT Message-Id: <200511070309.DAA15739@sopwith.solgatos.com> To: "Arne " W rner "" In-reply-to: Your message of "Sun, 06 Nov 2005 14:08:59 PST." <20051106220859.52887.qmail@web30304.mail.mud.yahoo.com> Date: Sun, 06 Nov 2005 19:09:23 +0000 From: Dieter Cc: freebsd-multimedia@freebsd.org, freebsd-firewire@freebsd.org Subject: Re: Sending DV to camcorder over firewire gives dropouts X-BeenThere: freebsd-firewire@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Firewire support in FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Nov 2005 03:09:32 -0000 > > Wild Guess Theory #1: > > > > fwcontrol -S reports: > > > > 3948 frames, 131.50 secs, 30.02 frames/sec > > 784 frames, 25.92 secs, 30.24 frames/sec > > 3597 frames, 119.78 secs, 30.03 frames/sec > > > > Shouldn't this be 29.97 fps ? > > > I like that theory: > > I found in ffmpeg's man page the following option: > -r fps > set frame rate (default = 25) > > Dude! Did you use the "-r" option? No, didn't need to, ffmpeg figured out to use 29.97 fps all by itself, for both input and output. Even if there is something wrong with the output of ffmpeg, it would not explain why I get the exact same problem with: [ push "play" button on camcorder ] fwcontrol -R filename.dv [ push "stop" button on camcorder ] fwcontrol -S filename.dv since ffmpeg is not involved in this case. It might be that the incorrect fps numbers reported are just an artifact of clock resolution and the relatively short times involved and packetization/buffering? From owner-freebsd-firewire@FreeBSD.ORG Mon Nov 7 11:02:02 2005 Return-Path: X-Original-To: freebsd-firewire@freebsd.org 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 AB6FD16A41F for ; Mon, 7 Nov 2005 11:02:02 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7799A43D49 for ; Mon, 7 Nov 2005 11:02:02 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id jA7B22uf049805 for ; Mon, 7 Nov 2005 11:02:02 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id jA7B21Zr049798 for freebsd-firewire@freebsd.org; Mon, 7 Nov 2005 11:02:01 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 7 Nov 2005 11:02:01 GMT Message-Id: <200511071102.jA7B21Zr049798@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: freebsd-firewire@FreeBSD.org Cc: Subject: Current problem reports assigned to you X-BeenThere: freebsd-firewire@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Firewire support in FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Nov 2005 11:02:02 -0000 Current FreeBSD problem reports Critical problems Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2004/11/22] kern/74238 firewire [firewire] fw_rcv: unknown response; fire o [2005/07/24] kern/83999 firewire [firewire] [patch] panic in fw_bus_explor o [2005/08/29] kern/85434 firewire [fwip] fwip (IP over firewire) doesn't wo 3 problems total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2004/12/12] kern/74977 firewire [modules] dcons.ko requires KDB support 1 problem total. From owner-freebsd-firewire@FreeBSD.ORG Fri Nov 11 00:39:55 2005 Return-Path: X-Original-To: freebsd-firewire@freebsd.org 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 E8D5B16A41F; Fri, 11 Nov 2005 00:39:55 +0000 (GMT) (envelope-from freebsd@sopwith.solgatos.com) Received: from schitzo.solgatos.com (c-67-168-241-176.hsd1.or.comcast.net [67.168.241.176]) by mx1.FreeBSD.org (Postfix) with ESMTP id 99BD843D45; Fri, 11 Nov 2005 00:39:55 +0000 (GMT) (envelope-from freebsd@sopwith.solgatos.com) Received: from sopwith.solgatos.com (uucp@localhost) by schitzo.solgatos.com (8.11.6/8.11.6) with UUCP id jAB0e2P11855; Thu, 10 Nov 2005 16:40:02 -0800 Received: from localhost by sopwith.solgatos.com (8.8.8/6.24) id AAA09973; Fri, 11 Nov 2005 00:23:52 GMT Message-Id: <200511110023.AAA09973@sopwith.solgatos.com> To: freebsd-firewire@freebsd.org, freebsd-multimedia@freebsd.org Date: Thu, 10 Nov 2005 16:23:52 +0000 From: Dieter Cc: Subject: Sending DV over firewire gives dropouts - VT6306 vs NEC uPD72871/2 X-BeenThere: freebsd-firewire@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Firewire support in FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Nov 2005 00:39:56 -0000 > AMD64 running FreeBSD 6.0 beta3. > Canon DV NTSC camcorder connected via firewire. > > Playing a tape and recording it on the computer via > > fwcontrol -R filename.dv > > appears to work fine. > > Sending the video back to the camcorder via > > fwcontrol -S filename.dv > > mostly works, but every 1.5-2 seconds or so I get a momentary > dropout of both video and audio. I get the same dropouts > with a dv file created by "fwcontrol -R" and with dv files created > by ffmpeg. New info: The controller giving the dropouts is a VT6307 (reported as VT6306 ?). I added a firewire card with NEC uPD72871/2, and using this firewire controller the DV files play back without the dropouts. fwohci0: port 0xa800-0xa87f mem 0xfdffe000-0xfdffe7ff irq 10 at device 6.0 on pci1 fwohci0: OHCI version 1.10 (ROM=1) fwohci0: No. of Isochronous channels is 4. fwohci0: Phy 1394a available S400, 2 ports. fwohci0: Link S400, max_rec 2048 bytes. fwohci0: node_id=0xc800ffc0, gen=1, CYCLEMASTER mode fwohci1: mem 0xfdeff000-0xfdefffff irq 10 at device 8.0 on pci2 fwohci1: OHCI version 1.0 (ROM=1) fwohci1: No. of Isochronous channels is 4. fwohci1: Phy 1394a available S400, 2 ports. fwohci1: Link S400, max_rec 1024 bytes. fwohci1: max_rec 1024 -> 2048 fwohci1: node_id=0x8000ffc0, gen=1, non CYCLEMASTER mode