nixos-configs/apps/extract-subs/src/ffprobe.ts
matt1432 655eac9ad6
All checks were successful
Discord / discord commits (push) Has been skipped
refactor(extract-subs): move to apps and split up code better
2024-11-15 11:37:58 -05:00

8 lines
204 B
TypeScript

import Ffmpeg from 'fluent-ffmpeg';
export default (videoPath: string) => new Promise<Ffmpeg.FfprobeData>((resolve) => {
Ffmpeg.ffprobe(videoPath, (_e, data) => {
resolve(data);
});
});