2025-01-28 08:51:17 -05:00

9 lines
327 B
TypeScript

// @ts-types="npm:@types/fluent-ffmpeg@2.1.27"
import ffmpeg from "fluent-ffmpeg";
import { image, video } from "@hk/photographer-toolbox";
import { getTotalFrames } from "./lib.ts";
import ytdl from "@distube/ytdl-core";
import fs from "node:fs";
ytdl("https://youtu.be/-b1FogYHTZc").pipe(fs.createWriteStream("video.mp4"));