Each DV frame has a fixed size and it is easy to edit the frame order.
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
fwctl -R - | nc 192.168.10.11 9000
with
pkgsrc/net/netcat and to receive the stream, use
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
fwctl -R - | nc 192.168.10.11 9000
and to receive the stream, use
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.