xorrecord: ExAfio

 
 6.9 Write compressed afio archive on-the-fly
 ============================================
 
 This is possible with all media except minimally blanked DVD-RW and
 DVD-R DL. Since the compressed output stream is of very variable speed,
 a larger fifo is advised.  Nevertheless, this example is not suitable
 for very old CD drives which have no underrun protection and thus would
 abort the burn run on temporary data shortage.
 
    $ find .  | afio -oZ - | \
 xorrecord -v dev=/dev/sr0 speed=12 fs=64m \
 -multi padsize=300k -
 
    afio archives do not contain references to absolute data block
 addresses.  So they need no special precautions for multi-session.  One
 may get the session start addresses by option -toc, and then use dd
 option skip= to begin reading at one of those addresses.  E.g.  for
 listing its content:
 
    $ dd if=/dev/sr0 bs=2048 skip=64046 | afio -tvZ -
 
    afio will know when the end of the archive is reached.