class_docstr: Encoder driver interface. Each encoder is expected to support a specific
  format.
class_docstr_tok: ["Encoder","driver","interface",".","Each","encoder","is","expected","to","support","a","specific","format","."]
docstr: Create a new encoder. output can either be a filename or a python callback
  function/method for streaming mode.
  
  The streaming callback prototype is: callback(data, eod)
  Where data is a block of binary data of an undetermined size, and eod
  True when end-of-data is reached.
code: def __init__(self, output):
      """Create a new encoder. output can either be a filename or a python callback
      function/method for streaming mode.
  
      The streaming callback prototype is: callback(data, eod)
      Where data is a block of binary data of an undetermined size, and eod
      True when end-of-data is reached."""
  
imports: from __future__ import absolute_import
  from .component import Interface
label_desc: Use image node_id 1 to create a new IEncoder object from inherited base classes: IProcessor with example: obj = IEncoder(output)