The process of writing data or converting a signal to a different format. For example, L/R stereo may be encoded into MS stereo. See also decode.