Rename the unified application to dashboard
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
import { execFile } from "node:child_process";
|
||||
import { promisify } from "node:util";
|
||||
export const run=promisify(execFile);
|
||||
export async function probe(file:string) {
|
||||
const {stdout}=await run(process.env.FFPROBE_PATH||'ffprobe',['-v','error','-protocol_whitelist','file,pipe','-show_streams','-show_format','-of','json',file],{timeout:30000,maxBuffer:2*1024*1024});
|
||||
return JSON.parse(stdout) as {streams:{codec_type:string;width?:number;height?:number}[];format:{duration?:string;format_name?:string}};
|
||||
}
|
||||
Reference in New Issue
Block a user