class_docstr: Support for pyAV as backend.
  
  Parameters
  ----------
  request : iio.Request
      A request object that represents the users intent. It provides a
      standard interface to access various the various ImageResources and
      serves them to the plugin as a file object (or file). Check the docs for
      details.
class_docstr_tok: ["Support","for","pyAV","as","backend",".","Parameters","--","--","--","--","--","request",":","iio.Request","A","request","object","that","represents","the","users","intent",".","It","provides","a","standard","interface","to","access","various","the","various","ImageResources","and","serves","them","to","the","plugin","as","a","file","object","(","or","file",")",".","Check","the","docs","for","details","."]
docstr: Flush the filter and encoder
  
  This will reset the filter to `None` and send EoF to the encoder,
  i.e., after calling, no more frames may be written.
docstr_tok: ["Flush","the","filter","and","encoder","This","will","reset","the","filter","to","`","None","`","and","send","EoF","to","the","encoder",",","i.e.",",","after","calling",",","no","more","frames","may","be","written","."]
code: def _flush_writer(self):
      """Flush the filter and encoder
  
      This will reset the filter to `None` and send EoF to the encoder,
      i.e., after calling, no more frames may be written.
  
      """
  
      stream = self._video_stream
  
      if self._video_filter is not None:
          # flush encoder
          for av_frame in self._video_filter:
              if stream.frames == 0:
                  stream.width = av_frame.width
                  stream.height = av_frame.height
              for packet in stream.encode(av_frame):
                  self._container.mux(packet)
          self._video_filter = None
  
      # flush stream
      for packet in stream.encode():
          self._container.mux(packet)
      self._video_stream = None
  
imports: from fractions import Fraction
  from math import ceil
  from typing import Any, Dict, List, Optional, Tuple, Union, Generator
  import av
  import av.filter
  import numpy
  from numpy.lib.stride_tricks import as_strided
  from ..core import Request
  from ..core.request import URI_BYTES, InitializationError, IOMode
  from ..core.v3_plugin_api import ImageProperties, PluginV3
label_desc: Use image node_id 16 for calling the PyAVPlugin obj's underlying member method code with example usage: obj._flush_writer() without return types