OptionalformatTarget output format. Default: 'mp4'.
OptionalbitrateTarget video bitrate, e.g. '1M', '2M'. Default: '1M'.
OptionalmaxResize output width to at most this many pixels (maintains aspect ratio).
OptionalmaxResize output height to at most this many pixels (maintains aspect ratio).
OptionalfpsOutput frames per second. Default: input FPS.
OptionalpreserveWhen true, metadata is preserved. Default: false (stripped).
OptionalstrictIf the compressed video is larger than the original, return the original. Default: false.
OptionaluseExplicitly force Web Worker usage (true) or Main Thread usage (false). If omitted, the library chooses based on file size and operation type.
OptionalonCalled with progress 0–100 during processing.
OptionalsignalCancel the operation. Throws AbortError when signalled.
Options for compressVideo().