From owner-freebsd-firewire Fri Jan 24 3:59: 5 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 E03EC37B401; Fri, 24 Jan 2003 03:59:02 -0800 (PST) Received: from is1.mh.itc.u-tokyo.ac.jp (is1.mh.itc.u-tokyo.ac.jp [133.11.205.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id 54CAC43E4A; Fri, 24 Jan 2003 03:59:01 -0800 (PST) (envelope-from simokawa@sat.t.u-tokyo.ac.jp) Received: from is1.mh.itc.u-tokyo.ac.jp (is1.mh.itc.u-tokyo.ac.jp [127.0.0.1]) by is1.mh.itc.u-tokyo.ac.jp (Postfix) with ESMTP id 3770B2180E0; Fri, 24 Jan 2003 20:58:54 +0900 (JST) Received: from mailhosting.itc.u-tokyo.ac.jp (IDENT:mirapoint@mailhosting.itc.u-tokyo.ac.jp [133.11.205.3]) by is1.mh.itc.u-tokyo.ac.jp (8.11.3/8.11.3) with ESMTP id h0OBwqc07480; Fri, 24 Jan 2003 20:58:52 +0900 Received: from ett.sat.t.u-tokyo.ac.jp (ett.sat.t.u-tokyo.ac.jp [133.11.135.3]) by mailhosting.itc.u-tokyo.ac.jp (Mirapoint Messaging Server MOS 2.9.3.2) with ESMTP id AHS78149; Fri, 24 Jan 2003 20:58:46 +0900 (JST) Date: Fri, 24 Jan 2003 20:58:46 +0900 Message-ID: From: Hidetoshi Shimokawa To: "Petr Holub" Cc: , , Subject: Re: reading from /dev/fw0? In-Reply-To: References: <004d01c2bbe5$efda4800$2603fb93@kloboucek> User-Agent: Wanderlust/2.11.0 (Wonderwall) REMI/1.14.3 (Matsudai) FLIM/1.14.3 (=?ISO-8859-1?Q?Unebigory=F2mae?=) APEL/10.3 MULE XEmacs/21.4 (patch 8) (Honest Recruiter) (i386--freebsd) X-Face: OE([KxWyJI0r[R~S/>7ia}SJ)i%a,$-9%7{*yihQk|]gl}2p#"oXmX/fT}Bn7: #j7i14gu$jgR\S*&C3R/pJX List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG At Wed, 15 Jan 2003 14:38:27 +0900, Hidetoshi Shimokawa wrote: > > At Tue, 14 Jan 2003 16:59:36 +0100, > Petr Holub wrote: > > > > > I wrote small utility which dumps DV stream to a file. > > > The resulting file can be decoded or viewed with libdv(and playdv) > > > in ports collection. > > > > > > http://people.freebsd.org/~simokawa/firewire/dvrec-20030110.tar.gz > > > > Seems to work great! I've changed NBLOCKS to work with PAL > > and changed several includes to work in RC2. > > > > The only problem I have now is with playdv from libdv: > > - when using gtk display it's slow (around 20 fps on 1.2 GHz Athlon) > > and therefore sound gets distorted > > - when using SDL sound is OK but video is approx 1.5 faster than > > it should be > > - when playing just audio (--disable-video), it's OK. > > Is that some problem with libdv/playdv or is it something missing in > > the DV stream? (Some timing info?) > > I have several problems with playdv too. > (XVideo cannot be used. I give up...) > > I believe DV stream is OK because I wrote sending part > and DVcam can play a recorded stream without problem. > > http://people.freebsd.org/~simokawa/firewire/dv-20030115.tar.gz > > This should be complied and run on latest -current. Those tools are merged to /usr/sbin/fwcontrol in both -current and 4-stable. It should work with PAL but I cannot test it. Quoted from fwcontrol(8): EXAMPLES Each DV frame has fixed size and it is easy to edit those frame order. fwcontrol -R original.dv Receive stream. dd if=original.dv of=first.dv bs=120000 count=30 Get first 30 frames(NTSC). dd if=original.dv of=second.dv bs=120000 skip=30 count=30 Get second 30 frames(NTSC). cat second.dv first.dv | fwcontrol -S /dev/stdin Swap first and second 30 frames and send them to DV recorder. For PAL, replace 'bs=120000' with 'bs=144000'. /\ Hidetoshi Shimokawa \/ simokawa@sat.t.u-tokyo.ac.jp PGP public key: http://www.sat.t.u-tokyo.ac.jp/~simokawa/pgp.html To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-firewire" in the body of the message From owner-freebsd-firewire Fri Jan 24 13:19:59 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 B5C1137B406; Fri, 24 Jan 2003 13:19:57 -0800 (PST) Received: from anor.ics.muni.cz (anor.ics.muni.cz [147.251.4.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id EABEF43F1E; Fri, 24 Jan 2003 13:19:55 -0800 (PST) (envelope-from hopet@ics.muni.cz) Received: from dior.ics.muni.cz (dior.ics.muni.cz [147.251.6.10]) by anor.ics.muni.cz (8.12.1/8.12.1) with ESMTP id h0OLJkIb009967; Fri, 24 Jan 2003 22:19:54 +0100 Received: from kloboucek (root@localhost) (authenticated as hopet with LOGIN) by dior.ics.muni.cz (8.10.1/8.10.0.Beta12) with ESMTP id h0OIV4C29193; Fri, 24 Jan 2003 19:31:05 +0100 (MET) From: "Petr Holub" To: "Hidetoshi Shimokawa" Cc: , , Subject: RE: reading from /dev/fw0? Date: Fri, 24 Jan 2003 19:31:51 +0100 Message-ID: <018e01c2c3d6$dcba26c0$2603fb93@kloboucek> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2377.0 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4920.2300 In-Reply-To: Importance: Normal X-Muni-Virus-Test: Clean 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 > Those tools are merged to /usr/sbin/fwcontrol in both -current and > 4-stable. It should work with PAL but I cannot test it. > Quoted from fwcontrol(8): > > EXAMPLES > Each DV frame has fixed size and it is easy to edit those frame order. > > fwcontrol -R original.dv > > Receive stream. > > dd if=original.dv of=first.dv bs=120000 count=30 > > Get first 30 frames(NTSC). > > dd if=original.dv of=second.dv bs=120000 skip=30 count=30 > > Get second 30 frames(NTSC). > > cat second.dv first.dv | fwcontrol -S /dev/stdin > > Swap first and second 30 frames and send them to DV recorder. For PAL, > replace 'bs=120000' with 'bs=144000'. I tried to test it on FreeBSD 5.0-RELEASE and it seems fwcontrol has no -R option so far. > > http://people.freebsd.org/~simokawa/firewire/dv-20030115.tar.gz This one works great with PAL camera and FreeBSD 5.0-RELEASE except for I needed to include iec68119.h from local directory and not from . Thanks! Petr ================================================================ Petr Holub CESNET z.s.p.o. Supercomputing Center Brno Zikova 4 Institute of Compt. Science 162 00 Praha 6, CZ Masaryk University Czech Republic Botanicka 68a, 60200 Brno, CZ e-mail: Petr.Holub@cesnet.cz phone: +420-541512213 fax: +420-541212747 e-mail: hopet@ics.muni.cz To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-firewire" in the body of the message From owner-freebsd-firewire Fri Jan 24 13:20: 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 CD0BB37B401; Fri, 24 Jan 2003 13:20:01 -0800 (PST) Received: from anor.ics.muni.cz (relay.muni.cz [147.251.4.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id CFE8B43ED8; Fri, 24 Jan 2003 13:20:00 -0800 (PST) (envelope-from hopet@ics.muni.cz) Received: from dior.ics.muni.cz (dior.ics.muni.cz [147.251.6.10]) by anor.ics.muni.cz (8.12.1/8.12.1) with ESMTP id h0OLJkIN009967; Fri, 24 Jan 2003 22:19:51 +0100 Received: from kloboucek (root@localhost) (authenticated as hopet with LOGIN) by dior.ics.muni.cz (8.10.1/8.10.0.Beta12) with ESMTP id h0OJ50T00806; Fri, 24 Jan 2003 20:05:00 +0100 (MET) From: "Petr Holub" To: "Hidetoshi Shimokawa" Cc: , , Subject: RE: reading from /dev/fw0? Date: Fri, 24 Jan 2003 20:05:47 +0100 Message-ID: <018f01c2c3db$9a4b3770$2603fb93@kloboucek> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2377.0 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4920.2300 In-Reply-To: Importance: Normal X-Muni-Virus-Test: Clean 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 believe DV stream is OK because I wrote sending part > > and DVcam can play a recorded stream without problem. > > > > http://people.freebsd.org/~simokawa/firewire/dv-20030115.tar.gz > > > > This should be complied and run on latest -current. I'm playing with dvrecv a bit more and I've found following problem: from time to time the recorded DV file gets some blocks padded and when replaying such a file I usually get twisted sound/video from the point of padding on until the end of the file. I'm just curious whether it's problem of playdv or it's some error in padding - due to nature of DV compression I would expect audio/video gets back to normal playback after crossing some dropped information. Petr ================================================================ Petr Holub CESNET z.s.p.o. Supercomputing Center Brno Zikova 4 Institute of Compt. Science 162 00 Praha 6, CZ Masaryk University Czech Republic Botanicka 68a, 60200 Brno, CZ e-mail: Petr.Holub@cesnet.cz phone: +420-541512213 fax: +420-541212747 e-mail: hopet@ics.muni.cz To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-firewire" in the body of the message From owner-freebsd-firewire Sat Jan 25 4:13:22 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 DFC2C37B401; Sat, 25 Jan 2003 04:13:20 -0800 (PST) Received: from is2.mh.itc.u-tokyo.ac.jp (is2.mh.itc.u-tokyo.ac.jp [133.11.205.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3B28543EB2; Sat, 25 Jan 2003 04:13:19 -0800 (PST) (envelope-from simokawa@sat.t.u-tokyo.ac.jp) Received: from is2.mh.itc.u-tokyo.ac.jp (is2.mh.itc.u-tokyo.ac.jp [127.0.0.1]) by is2.mh.itc.u-tokyo.ac.jp (Postfix) with ESMTP id D20B63780E9; Sat, 25 Jan 2003 21:13:11 +0900 (JST) Received: from mailhosting.itc.u-tokyo.ac.jp (IDENT:mirapoint@mailhosting.itc.u-tokyo.ac.jp [133.11.205.3]) by is2.mh.itc.u-tokyo.ac.jp (8.11.3/8.11.3) with ESMTP id h0PCD9R23657; Sat, 25 Jan 2003 21:13:09 +0900 Received: from ett.sat.t.u-tokyo.ac.jp (ett.sat.t.u-tokyo.ac.jp [133.11.135.3]) by mailhosting.itc.u-tokyo.ac.jp (Mirapoint Messaging Server MOS 2.9.3.2) with ESMTP id AHS87300; Sat, 25 Jan 2003 21:13:08 +0900 (JST) Date: Sat, 25 Jan 2003 21:13:08 +0900 Message-ID: From: Hidetoshi Shimokawa To: "Petr Holub" Cc: , , Subject: Re: reading from /dev/fw0? In-Reply-To: <018f01c2c3db$9a4b3770$2603fb93@kloboucek> References: <018f01c2c3db$9a4b3770$2603fb93@kloboucek> User-Agent: Wanderlust/2.11.0 (Wonderwall) REMI/1.14.3 (Matsudai) FLIM/1.14.3 (=?ISO-8859-1?Q?Unebigory=F2mae?=) APEL/10.3 MULE XEmacs/21.4 (patch 8) (Honest Recruiter) (i386--freebsd) X-Face: OE([KxWyJI0r[R~S/>7ia}SJ)i%a,$-9%7{*yihQk|]gl}2p#"oXmX/fT}Bn7: #j7i14gu$jgR\S*&C3R/pJX List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG At Fri, 24 Jan 2003 20:05:47 +0100, Petr Holub wrote: > > > > I believe DV stream is OK because I wrote sending part > > > and DVcam can play a recorded stream without problem. > > > > > > http://people.freebsd.org/~simokawa/firewire/dv-20030115.tar.gz > > > > > > This should be complied and run on latest -current. > > I'm playing with dvrecv a bit more and I've found following problem: > from time to time the recorded DV file gets some blocks padded > and when replaying such a file I usually get twisted sound/video > from the point of padding on until the end of the file. > > I'm just curious whether it's problem of playdv or it's some error > in padding - due to nature of DV compression I would expect audio/video > gets back to normal playback after crossing some dropped information. > > Petr Because of inefficient queue management in the kernel, the queue over-run sometimes occurs on some systems. fwcontrol in -current and 4-stable allocates many buffers to prevent queue over/under run. Use -current or 4-stable, if you want use DV rather than SBP. I'd like to improve IT/IR queue management in the kernel. Block padding is adhoc work around for queue overrrun to keep fixed frame data size but it's just padding zeros. I don't know the right way to fill droped blocks. /\ Hidetoshi Shimokawa \/ simokawa@sat.t.u-tokyo.ac.jp PGP public key: http://www.sat.t.u-tokyo.ac.jp/~simokawa/pgp.html To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-firewire" in the body of the message From owner-freebsd-firewire Sat Jan 25 4:15:51 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 6D60A37B401; Sat, 25 Jan 2003 04:15:48 -0800 (PST) Received: from is2.mh.itc.u-tokyo.ac.jp (is2.mh.itc.u-tokyo.ac.jp [133.11.205.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id B5AC543F1E; Sat, 25 Jan 2003 04:15:46 -0800 (PST) (envelope-from simokawa@sat.t.u-tokyo.ac.jp) Received: from is2.mh.itc.u-tokyo.ac.jp (is2.mh.itc.u-tokyo.ac.jp [127.0.0.1]) by is2.mh.itc.u-tokyo.ac.jp (Postfix) with ESMTP id 2C6923780F3; Sat, 25 Jan 2003 21:15:45 +0900 (JST) Received: from mailhosting.itc.u-tokyo.ac.jp (IDENT:mirapoint@mailhosting.itc.u-tokyo.ac.jp [133.11.205.3]) by is2.mh.itc.u-tokyo.ac.jp (8.11.3/8.11.3) with ESMTP id h0PCFjR23774; Sat, 25 Jan 2003 21:15:45 +0900 Received: from ett.sat.t.u-tokyo.ac.jp (ett.sat.t.u-tokyo.ac.jp [133.11.135.3]) by mailhosting.itc.u-tokyo.ac.jp (Mirapoint Messaging Server MOS 2.9.3.2) with ESMTP id AHS87324; Sat, 25 Jan 2003 21:15:44 +0900 (JST) Date: Sat, 25 Jan 2003 21:15:44 +0900 Message-ID: From: Hidetoshi Shimokawa To: "Petr Holub" Cc: , , Subject: Re: reading from /dev/fw0? In-Reply-To: <018e01c2c3d6$dcba26c0$2603fb93@kloboucek> References: <018e01c2c3d6$dcba26c0$2603fb93@kloboucek> User-Agent: Wanderlust/2.11.0 (Wonderwall) REMI/1.14.3 (Matsudai) FLIM/1.14.3 (=?ISO-8859-1?Q?Unebigory=F2mae?=) APEL/10.3 MULE XEmacs/21.4 (patch 8) (Honest Recruiter) (i386--freebsd) X-Face: OE([KxWyJI0r[R~S/>7ia}SJ)i%a,$-9%7{*yihQk|]gl}2p#"oXmX/fT}Bn7: #j7i14gu$jgR\S*&C3R/pJX List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG At Fri, 24 Jan 2003 19:31:51 +0100, Petr Holub wrote: > I tried to test it on FreeBSD 5.0-RELEASE and it seems fwcontrol has no > -R option so far. Use -current(or 4-stable) until RELENG_5 branch will be created. > > > http://people.freebsd.org/~simokawa/firewire/dv-20030115.tar.gz > > This one works great with PAL camera and FreeBSD 5.0-RELEASE except for > I needed to include iec68119.h from local directory and not from . Did dvsend work with PAL too? (I suppose it doesn't work with 5-RELEASE even with NTSC) /\ Hidetoshi Shimokawa \/ simokawa@sat.t.u-tokyo.ac.jp PGP public key: http://www.sat.t.u-tokyo.ac.jp/~simokawa/pgp.html To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-firewire" in the body of the message