UNPKG

@calipsa/video-utils

Version:
14 lines (10 loc) 375 B
import { Writable } from 'stream' import type { PathOrReadable } from '../types' import imageToStream from './imageToStream' export default async (imageInputs: PathOrReadable[], ffmpegInput: Writable) => { for (const imageInput of imageInputs) { // eslint-disable-next-line no-await-in-loop await imageToStream(imageInput, ffmpegInput) } ffmpegInput.end() }