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