code: def frames2video(frame_path, video_path, r):
      ffmpeg = ["ffmpeg ", " -y -loglevel ", " error "]
      cmd = ffmpeg + [
          " -r ",
          r,
          " -f ",
          " image2 ",
          " -i ",
          frame_path,
          " -pix_fmt ",
          " yuv420p ",
          video_path,
      ]
      cmd = "".join(cmd)
  
      if os.system(cmd) != 0:
          raise RuntimeError(
              "ffmpeg process video: {} error".format(video_path)
          )
  
      sys.stdout.flush()
  
file_path: PaddleHub/modules/image/Image_editing/super_resolution/realsr/utils.py
imports: import os
  import sys
  import base64
  import cv2
  from PIL import Image
  import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: frames2video(frame_path, video_path, r) without return types