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