| FWCTL(8) | System Manager's Manual | FWCTL(8) | 
fwctl —
| fwctl | [ -prt] [-bpri_req] [-cnode] [-dnode] [-ggap_count] [-lfile] [-Mmode] [-mEUI64 | hostname]
      [-onode]
      [-Rfilename]
      [-Sfilename]
      [-snode]
      [-ubus_num] | 
fwctl utility is designed to provide a way for users
  to access and control the NetBSD IEEE1394 subsystem.
  Without options, fwctl will output a list of devices
  that are/were connected to the bus.
The following options are available:
-b
    pri_reqPRIORITY_BUDGET register on all supported
      nodes.-c
    node-d
    node-f
    node-g
    gap_count-i
    pri_reqPRIORITY_BUDGET register on all supported
      nodes.-l
    file-M
    mode-R option. If not
      specified, the program will try to guess. In case of “format
      0x20” error, try to force the mpeg mode.-m
    EUI64 | hostname-o
    node-p-R
    filename
sysctl hw.ieee1394if.try_bmr=0
fwctl -r
    
    The resulting file contains raw DV data excluding isochronous
        header and CIP header. It can be handled by the
        pkgsrc/multimedia/libdv package. The resulting
        MPEG TS stream can be played and sent over a network using the VideoLAN
        tool (pkgsrc/multimedia/vlc). The stream can be
        piped directly to vlc, see
        EXAMPLES.
-r-S
    filename-s
    nodeRESET_START register on the
    node.-t-u
    bus_numfwctl -R original.dvReceive a DV stream with DV camera attached.
dd if=original.dv of=first.dv
  bs=120000 count=30Get first 30 frames (NTSC).
dd if=original.dv of=second.dv
  bs=120000 skip=30 count=30Get second 30 frames (NTSC).
cat second.dv first.dv | fwctl -S
  /dev/stdinSwap first and second 30 frames and send them to DV recorder.
For PAL, replace “bs=120000”
    with “bs=144000”.
fwctl -R file.m2tReceive an MPEG TS stream from a camera producing MPEG transport stream. This has been tested with SONY HDR-FX1E camera that produces HD MPEG-2 stream at 25 Mbps bandwidth.
To send the stream from the camera over the network using TCP (which surprisingly works better with vlc), you can use
fwctl -R - | nc 192.168.10.11
  9000nc -l -p 9000 | vlc -To netcast via UDP, you need to use pkgsrc/misc/buffer, since vlc is not fast enough to read UDP packets from buffers and thus it experiences dropouts when run directly. The sending side can use
fwctl -R - | nc 192.168.10.11
  9000nc -l -u -p 9000 | buffer -s 10k -b
  1000 -m 20m -p 5 | vlc -For more information on how to work with
    vlc see its documentation.
fwctl command first appeared in
  FreeBSD 5.0, as fwcontrol. It
  was added to NetBSD 4.0 under its present name.
| August 24, 2010 | NetBSD 10.0 |