Create a multi-bitrate adaptive HLS builder using ffmpeg's stream_loop and filter_complex for multi-output in a single pass.
Returns the FFmpegBuilder with all streams and maps configured.
await adaptiveHls({ input: 'input.mp4', outputDir: './hls', variants: [ { label: '1080p', videoBitrate: '4M', resolution: '1920x1080' }, { label: '720p', videoBitrate: '2M', resolution: '1280x720' }, { label: '480p', videoBitrate: '800k', resolution: '854x480' }, ],}).run(); Copy
await adaptiveHls({ input: 'input.mp4', outputDir: './hls', variants: [ { label: '1080p', videoBitrate: '4M', resolution: '1920x1080' }, { label: '720p', videoBitrate: '2M', resolution: '1280x720' }, { label: '480p', videoBitrate: '800k', resolution: '854x480' }, ],}).run();
Create a multi-bitrate adaptive HLS builder using ffmpeg's stream_loop and filter_complex for multi-output in a single pass.
Returns the FFmpegBuilder with all streams and maps configured.