def write_movie(self):
    self.to_mosh=[]
    if not self.uber:
      msg = '\n\nCreating initial movie\n\n'
      if IS_TTY: print hilite(msg,7)
      for key, value in self.file_list_dict.iteritems():
        list_file = os.path.join(self.outdir, key)
        avi_filename = "{0}.avi".format(self.filebase)
        self.to_mosh.append(avi_filename)
        avi = os.path.join(self.outdir, avi_filename)
        #, shell=False, stdin=PIPE, stdout=PIPE, stderr=PIPE
        return subprocess.call(self.get_encode_opts(list_file, avi), close_fds=True)
    else:
      msg = '\n\nCreating initial movies\n\n'
      if IS_TTY: print hilite(msg,7)
      print hilite(self.input_frame_list,30)
      file_list_name = 'frame_list.%04d.txt'
      for frame in self.input_frame_list:
        list_file = os.path.join(self.outdir, file_list_name % frame)
        avi_filename = "{0}_fr{1}.avi".format(self.filebase, '%04d'%frame)
        self.to_mosh.append(avi_filename)
        avi = os.path.join(self.outdir, avi_filename)
        #, shell=False, stdin=PIPE, stdout=PIPE, stderr=PIPE
        subprocess.call(self.get_encode_opts(list_file, avi), close_fds=True)
dataset/ETHPy150Open robmoggach/python-moshion/moshion/core.py/Moshion.write_movie/original