encode

Global USE flag

Add support for encoding of audio or video files