FWCTL(8) | System Manager's Manual | FWCTL(8) |
fwctl | [-prt] [-b pri_req] [-c node] [-d node] [-g gap_count] [-l file] [-M mode] [-m EUI64 | hostname] [-o node] [-R filename] [-S filename] [-s node] [-u bus_num] |
The following options are available:
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.
fwctl -R original.dv
Receive a DV stream with DV camera attached.
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 | fwctl -S /dev/stdin
Swap first and second 30 frames and send them to DV recorder.
For PAL, replace “bs=120000
” with “bs=144000
”.
fwctl -R file.m2t
Receive 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
with pkgsrc/net/netcat and to receive the stream, usefwctl -R - | nc 192.168.10.11 9000
nc -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
and to receive the stream, usefwctl -R - | nc 192.168.10.11 9000
nc -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.
August 24, 2010 | NetBSD 6.1 |