• Converts the video file into raw audio and video files.

    Parameters

    • config: {
          videoCachePath: string;
          videoCacheRaw: boolean;
          videoDuration: number;
          videoFormat: string;
          videoFramerate: number;
          videoHeight: number;
          videoPath: string;
          videoSeek: number;
          videoWidth: number;
      }
      • videoCachePath: string

        the destination directory path; if not existing, it will be created

      • videoCacheRaw: boolean

        if true and the destinations raw files exist on file system, the conversion step is skipped

      • videoDuration: number

        the output video duration in seconds

      • videoFormat: string

        the raw video format (y4m or mjpeg)

      • videoFramerate: number

        the output video framerate

      • videoHeight: number

        the output video height

      • videoPath: string

        the video to convert

      • videoSeek: number

        the seek position in seconds

      • videoWidth: number

        the output video width

    Returns Promise<{
        audio: string;
        video: string;
    }>