cli: stream: allow specification of an input format as well as an output format

Signed-off-by: David Scott <dave.scott@eu.citrix.com>