Local Processing
- Validate storage configuration.
- Validate the incoming media path.
- Generate a UUID-based output directory under
config.storage.baseDir. - Transcode the video into HLS playlists and segments.
- Return the HLS master playlist path through the result variants.
Supported Input Formats
Section titled “Supported Input Formats”.mp4.mov.mkv
Example Result
Section titled “Example Result”{ type: "video", variants: [ { name: "hls", path: "output/857c83e9-7854-45b6-a2e3-8ca5fd834a43/master.m3u8", }, ],}Filesystem Layout
Section titled “Filesystem Layout”output/└── <uuid>/ ├── master.m3u8 ├── variant_1080p.m3u8 ├── variant_720p.m3u8 ├── segment_720p_001.ts ├── segment_720p_002.ts └── ...Common Failure Cases
Section titled “Common Failure Cases”- Unsupported file extension.
- Missing
baseDir. - Missing or broken ffmpeg installation.
- File path is empty or whitespace.