video.convert

Re-encode a video to another container. Codecs follow the container.

Config

type VideoConvertConfig = {
  format: 'mp4' | 'webm' | 'mov' | 'mkv'; // default 'mp4'
  quality: number; // 1–100, default 75
};

// Codecs: mp4 / mov / mkv → H.264 + AAC; webm → VP9 + Opus

Example

// pipeline
{
  id: 'convert',
  type: 'video.convert',
  config: {
    format: { value: 'webm' },
    quality: { value: 70 },
  },
}

// queue
tk.runQueue(files, 'video')
  .maxSize(1280)
  .convert({ format: 'mp4', quality: 75 });