Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "ts/ffmpeg"

Index

Type aliases

FFmpegDataType

FFmpegDataType: { ffmpegCommands: string; outputFile: CustomFileType; threads: number }

Type declaration

Variables

ProgressStore

ProgressStore: ProgressStore

Const ffmpeg

ffmpeg: any = createFFmpeg({log: true,progress: (input: any) => {const value: number = input.ratio * 100.0if (value > 0) {console.info(`Completed ${value.toFixed(2)}%`)updateProgress(value)}}})

updateLoadError

updateLoadError: (Anonymous function)

updateLoaded

updateLoaded: (Anonymous function)

updateProgress

updateProgress: (Anonymous function)

Functions

Const ffmpegGarbageCollector

  • ffmpegGarbageCollector(oldFileNames: Array<string>): Promise<void>
  • Parameters

    • oldFileNames: Array<string>

    Returns Promise<void>

Const ffmpegReader

  • ffmpegReader(fileName: string): Promise<Uint8Array>
  • FFmpeg Reader Reads a Video from WASM Memory into JavaScript

    Parameters

    • fileName: string

      is the file name of the video which would like to be read

    Returns Promise<Uint8Array>

    Uint8Array of data containing the file

Const ffmpegRunner

  • ffmpegRunner(inputFileCommand: string, ffmpegData: FFmpegDataType): Promise<undefined | { name: string; type: FileTypes }>
  • FFmpeg Runner Executes an FFmpeg Command in WASM

    Parameters

    Returns Promise<undefined | { name: string; type: FileTypes }>

    a file name as string of the processed file.

Const ffmpegWriter

  • ffmpegWriter(file: File): Promise<string>
  • FFmpeg Writer Loads a Video in WASM Memory for FFmpeg to use later

    retuns

    The name of the file the user added

    Parameters

    • file: File

      is the actual inputted file from the user

    Returns Promise<string>

Const loadFFmpeg

  • loadFFmpeg(): Promise<void>
  • Checks if FFmpeg is supported on that browser

    Returns Promise<void>

Generated using TypeDoc