Skip to main content

kFileFormat

Electron APIs / recorder / kFileFormat

type kFileFormat =
| "fragmented_mp4"
| "fragmented_mov"
| "mp4"
| "flv"
| "mkv"
| "mov"
| "mpegts"
| "hls"
| "hybrid_mp4";

Video file format options used for recording or exporting.

Each format may offer different tradeoffs in terms of compatibility, streaming support, compression, or support for advanced features like fragmentation or hybrid modes.

ValueDescription
'fragmented_mp4'Fragmented MP4 — Ideal for adaptive streaming and progressive download scenarios.
'fragmented_mov'Fragmented MOV — Similar to fragmented MP4 but uses the .mov container format.
'mp4'Standard MP4 — Widely supported container for high-quality compressed video and audio.
'flv'FLV — Flash Video format, legacy support for some live streaming services.
'mkv'MKV — Matroska container supporting multiple audio, video, and subtitle tracks.
'mov'MOV — Apple's QuickTime format, often used in macOS video workflows.
'mpegts'MPEG-TS — Transport stream format suitable for broadcasting or continuous streaming.
'hls'HLS — HTTP Live Streaming; produces a playlist with segmented video chunks.
'hybrid_mp4'Hybrid MP4 — A format combining fragmented and standard MP4 traits for compatibility.

Example

const format: kFileFormat = "mp4";