1 .\" Copyright (c) 2002 Hidetoshi Shimokawa
2 .\" All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\" notice, this list of conditions and the following disclaimer in the
11 .\" documentation and/or other materials provided with the distribution.
13 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
14 .\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
15 .\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
16 .\" DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
17 .\" INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
18 .\" (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
19 .\" SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
21 .\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
22 .\" ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
23 .\" POSSIBILITY OF SUCH DAMAGE.
25 .Dd September 12, 2008
30 .Nd FireWire control utility
46 .Op Fl m Ar EUI64 | hostname
50 utility is designed to provide a way for users to access and control the
55 will output a list of devices that are/were connected to the bus.
57 The following options are available:
58 .Bl -tag -width indent
60 Specify the FireWire bus number to be operated on.
65 Show the topology map.
69 Show the configuration ROM on the node.
71 Hex dump of the configuration ROM.
73 Send a link-on PHY packet to the node.
79 Load hex dump file of the configuration ROM and parse it.
83 to be the root node on the next bus reset by sending a PHY config packet.
84 Valid values are 0 - 63.
88 by sending a PHY_config packet.
89 By default this value is 63 on all nodes.
90 Valid values are 0 - 63.
94 register on all supported nodes.
96 Explicitly specify either
100 mode for the incoming stream.
101 Only meaningful in case of and must precede the
104 If not specified, the program will try to guess.
107 error, try to force the
111 Receive DV or MPEG TS stream and dump it to a file.
112 Use ^C to stop the receiving.
113 Some DV cameras seem not to send the stream if a bus manager exists.
114 If it is impossible to get the stream, try the following commands:
115 .Bd -literal -offset indent
116 sysctl hw.firewire.try_bmr=0
120 The resulting file contains raw DV data excluding isochronous header
127 Resulting MPEG TS stream can be played and sent over a
128 network using the VideoLAN
133 The stream can be piped directly to
138 Send a DV file as isochronous stream.
139 .It Fl m Ar EUI64 | hostname
140 Set default fwmem target.
141 Hostname will be converted to EUI64 using
145 .Bl -tag -width "Pa /dev/fw0.0"
149 Each DV frame has a fixed size and it is easy to edit the frame order.
151 .Dl "fwcontrol -R original.dv"
153 Receive a DV stream with DV camera attached.
155 .Dl "dd if=original.dv of=first.dv bs=120000 count=30"
157 Get first 30 frames(NTSC).
159 .Dl "dd if=original.dv of=second.dv bs=120000 skip=30 count=30"
161 Get second 30 frames(NTSC).
163 .Dl "cat second.dv first.dv | fwcontrol -S /dev/stdin"
165 Swap first and second 30 frames and send them to DV recorder.
172 .Dl "fwcontrol -R file.m2t"
174 Receive an MPEG TS stream from a camera producing MPEG transport stream.
175 This has been tested with SONY HDR-FX1E camera that produces HD MPEG-2
176 stream at 25 Mbps bandwidth.
178 To send the stream from the camera over the network using TCP (which
179 surprisingly works better with vlc), you can use
180 .Dl "fwcontrol -R - | nc 192.168.10.11 9000"
183 from ports and to receive the stream, use
184 .Dl nc -l -p 9000 | vlc -
186 To netcast via UDP, you need to use
188 program from ports, since vlc is not fast enough to read UDP packets from
189 buffers and thus it experiences dropouts when run directly.
190 The sending side can use
191 .Dl "fwcontrol -R - | nc 192.168.10.11 9000"
192 and to receive the stream, use
193 .Dl nc -l -u -p 9000 | buffer -s 10k -b 1000 -m 20m -p 5 | vlc -
195 For more information on how to work with
209 utility first appeared in
212 .An Hidetoshi Shimokawa Aq Mt simokawa@FreeBSD.org
213 .An Petr Holub Aq Mt hopet@ics.muni.cz
216 This utility is still under development and provided for debugging purposes.
217 Especially MPEG TS reception support is very rudimental and supports only
218 high-bandwidth MPEG-2 streams (fn field in CIP header equals 3).