Compare commits

...

1 Commits

Author SHA1 Message Date
Patryk Koreń
af5112b95c fix 2026-07-13 22:50:17 +02:00

View File

@@ -3,6 +3,7 @@ import ffmpegPath from "ffmpeg-static";
import { globSync, mkdirSync, readdirSync, rmSync, statSync, writeFile, writeFileSync } from "node:fs";
import path from "node:path";
import { LOCAL_DIR, LOCAL_DIR_VID, LOCAL_DIR_VID_EXTRACTED } from "./nextcloud";
import { out_vid_path } from "../routes/protected";
export async function createVid(
fps: number,
@@ -41,7 +42,7 @@ export async function createVid(
`${LOCAL_DIR}/*.jpg`,
`${LOCAL_DIR}/*.png`,
`${LOCAL_DIR_VID_EXTRACTED}/*.jpg`,
], path.resolve("./out.mp4"), fps)
], out_vid_path, fps)
}
export async function encodeFrames(