2026-04-07 21:58:21 -04:00
|
|
|
import { execFile } from 'child_process';
|
|
|
|
|
import { promisify } from 'util';
|
|
|
|
|
|
|
|
|
|
const execFileAsync = promisify(execFile);
|
|
|
|
|
|
|
|
|
|
export const runFFmpeg = async (args, options = {}) => {
|
|
|
|
|
const { stdio = 'pipe', ...otherOptions } = options;
|
|
|
|
|
try {
|
|
|
|
|
const { stdout, stderr } = await execFileAsync('ffmpeg', args, {
|
|
|
|
|
stdio,
|
|
|
|
|
...otherOptions,
|
|
|
|
|
});
|
|
|
|
|
return { stdout, stderr };
|
|
|
|
|
} catch (error) {
|
|
|
|
|
throw new Error(`FFmpeg error: ${error.message}\nStderr: ${error.stderr}`);
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2026-05-16 00:29:49 -04:00
|
|
|
const runFFprobe = async (args) => {
|
|
|
|
|
try {
|
|
|
|
|
const { stdout } = await execFileAsync('ffprobe', args);
|
|
|
|
|
return { stdout };
|
|
|
|
|
} catch (error) {
|
|
|
|
|
throw new Error(`FFprobe error: ${error.message}\nStderr: ${error.stderr}`);
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2026-04-07 21:58:21 -04:00
|
|
|
export const getMediaDuration = async (inputPath) => {
|
|
|
|
|
const args = [
|
|
|
|
|
'-v', 'error',
|
|
|
|
|
'-show_entries', 'format=duration',
|
2026-05-16 00:29:49 -04:00
|
|
|
'-of', 'default=noprint_wrappers=1:nokey=1',
|
2026-04-07 21:58:21 -04:00
|
|
|
inputPath,
|
|
|
|
|
];
|
2026-05-16 00:29:49 -04:00
|
|
|
const { stdout } = await runFFprobe(args);
|
2026-04-07 21:58:21 -04:00
|
|
|
return parseFloat(stdout.trim());
|
|
|
|
|
};
|
|
|
|
|
|
2026-05-18 23:22:26 -04:00
|
|
|
/**
|
|
|
|
|
* Return structured media metadata for an input file.
|
|
|
|
|
* Result shape:
|
|
|
|
|
* { fps, codec, resolution, durationMs, fileSizeBytes }
|
|
|
|
|
* Any field may be null if ffprobe cannot determine it.
|
|
|
|
|
*/
|
|
|
|
|
export const getMediaInfo = async (inputPath) => {
|
|
|
|
|
const args = [
|
|
|
|
|
'-v', 'quiet',
|
|
|
|
|
'-print_format', 'json',
|
|
|
|
|
'-show_streams',
|
|
|
|
|
'-show_format',
|
|
|
|
|
inputPath,
|
|
|
|
|
];
|
|
|
|
|
const { stdout } = await runFFprobe(args);
|
|
|
|
|
const info = JSON.parse(stdout);
|
|
|
|
|
|
|
|
|
|
const videoStream = (info.streams || []).find(s => s.codec_type === 'video');
|
|
|
|
|
const fmt = info.format || {};
|
|
|
|
|
|
|
|
|
|
let fps = null;
|
|
|
|
|
if (videoStream?.r_frame_rate) {
|
|
|
|
|
const [num, den] = videoStream.r_frame_rate.split('/').map(Number);
|
|
|
|
|
if (den > 0) fps = Math.round((num / den) * 1000) / 1000;
|
|
|
|
|
}
|
|
|
|
|
|
feat: live HLS preview, proxy worker fixes, Settings tabs, growing-files + Premier panel
- worker/proxy: scale-to-even filter, analyzeduration 100M, skip images, hasAudio
- worker/promotion: SMB landing zone -> S3 on idle, queues proxy job, status='ready'
- web-ui screens-ingest: HlsPreview component replaces fake LiveStrip/FauxFrame
- web-ui screens-admin: functional Settings tabs (S3, GPU, Growing, SDI, AMPP)
- mam-api /settings/growing: GET/PUT growing-files config
- mam-api /assets/:id/live-path: SMB UNC/POSIX path for live growing assets
- capture-manager: GROWING_ENABLED -> write hires to /growing instead of S3 stream
- recorders.js: pass GROWING_ENABLED to capture container, bind /growing mount
- docker-compose: mount /mnt/NVME/MAM/wild-dragon-growing on mam-api + worker
- premiere-plugin: Mount Live button, Relink-to-HiRes, live->ready status poll
2026-05-22 19:12:53 -04:00
|
|
|
const hasAudio = (info.streams || []).some(s => s.codec_type === 'audio');
|
|
|
|
|
|
2026-05-18 23:22:26 -04:00
|
|
|
return {
|
|
|
|
|
fps,
|
|
|
|
|
codec: videoStream?.codec_name || null,
|
|
|
|
|
resolution: videoStream ? `${videoStream.width}x${videoStream.height}` : null,
|
|
|
|
|
durationMs: fmt.duration ? Math.round(parseFloat(fmt.duration) * 1000) : null,
|
|
|
|
|
fileSizeBytes: fmt.size ? parseInt(fmt.size, 10) : null,
|
feat: live HLS preview, proxy worker fixes, Settings tabs, growing-files + Premier panel
- worker/proxy: scale-to-even filter, analyzeduration 100M, skip images, hasAudio
- worker/promotion: SMB landing zone -> S3 on idle, queues proxy job, status='ready'
- web-ui screens-ingest: HlsPreview component replaces fake LiveStrip/FauxFrame
- web-ui screens-admin: functional Settings tabs (S3, GPU, Growing, SDI, AMPP)
- mam-api /settings/growing: GET/PUT growing-files config
- mam-api /assets/:id/live-path: SMB UNC/POSIX path for live growing assets
- capture-manager: GROWING_ENABLED -> write hires to /growing instead of S3 stream
- recorders.js: pass GROWING_ENABLED to capture container, bind /growing mount
- docker-compose: mount /mnt/NVME/MAM/wild-dragon-growing on mam-api + worker
- premiere-plugin: Mount Live button, Relink-to-HiRes, live->ready status poll
2026-05-22 19:12:53 -04:00
|
|
|
hasAudio,
|
2026-05-18 23:22:26 -04:00
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
2026-04-07 21:58:21 -04:00
|
|
|
export const extractFrameAtTime = async (inputPath, outputPath, timeCode) => {
|
|
|
|
|
const args = [
|
|
|
|
|
'-ss', timeCode,
|
2026-05-16 00:29:49 -04:00
|
|
|
'-i', inputPath,
|
2026-04-07 21:58:21 -04:00
|
|
|
'-vframes', '1',
|
|
|
|
|
'-q:v', '2',
|
2026-05-16 00:29:49 -04:00
|
|
|
'-y',
|
2026-04-07 21:58:21 -04:00
|
|
|
outputPath,
|
|
|
|
|
];
|
|
|
|
|
await runFFmpeg(args);
|
|
|
|
|
};
|
|
|
|
|
|
feat: SDK deployment UI, proxy encoding global settings, S3 env fallback
- Settings: drop AMPP tab, rename GPU/Transcoding → Proxy encoding
with explicit 'applied to every ingested file' wording, expose
CPU codec/preset options when GPU is off
- New Capture SDKs tab (Settings): upload Blackmagic / AJA / Deltacast
SDK archives (.zip / .tar.gz) staged to /sdk/<vendor>/ inside mam-api;
BMD is fully wired into the FFmpeg build pipeline, AJA + Deltacast
staging-only pending FFmpeg patches
- mam-api: new /api/v1/sdk routes (multer upload, extract, list, delete);
Dockerfile gets unzip+tar; docker-compose mounts /mnt/NVME/MAM/sdk:/sdk
- proxy worker now reads proxy-encoding settings from DB on every job,
builds args for libx264 / NVENC / VAAPI, falls back to libx264 on
hardware-encode failure
- settings GET /s3 falls back to S3_* env vars when DB is empty so the
UI reflects what's actually wired (fixes 'not configured' false alarm)
2026-05-22 22:58:32 -04:00
|
|
|
const NVENC_CODECS = new Set(['h264_nvenc', 'hevc_nvenc']);
|
|
|
|
|
const VAAPI_CODECS = new Set(['h264_vaapi', 'hevc_vaapi']);
|
|
|
|
|
const HW_CODECS = new Set([...NVENC_CODECS, ...VAAPI_CODECS]);
|
|
|
|
|
|
2026-04-07 21:58:21 -04:00
|
|
|
export const transcodeVideo = async (inputPath, outputPath, options = {}) => {
|
|
|
|
|
const {
|
feat: SDK deployment UI, proxy encoding global settings, S3 env fallback
- Settings: drop AMPP tab, rename GPU/Transcoding → Proxy encoding
with explicit 'applied to every ingested file' wording, expose
CPU codec/preset options when GPU is off
- New Capture SDKs tab (Settings): upload Blackmagic / AJA / Deltacast
SDK archives (.zip / .tar.gz) staged to /sdk/<vendor>/ inside mam-api;
BMD is fully wired into the FFmpeg build pipeline, AJA + Deltacast
staging-only pending FFmpeg patches
- mam-api: new /api/v1/sdk routes (multer upload, extract, list, delete);
Dockerfile gets unzip+tar; docker-compose mounts /mnt/NVME/MAM/sdk:/sdk
- proxy worker now reads proxy-encoding settings from DB on every job,
builds args for libx264 / NVENC / VAAPI, falls back to libx264 on
hardware-encode failure
- settings GET /s3 falls back to S3_* env vars when DB is empty so the
UI reflects what's actually wired (fixes 'not configured' false alarm)
2026-05-22 22:58:32 -04:00
|
|
|
videoCodec = 'libx264',
|
|
|
|
|
videoPreset = 'fast',
|
2026-04-07 21:58:21 -04:00
|
|
|
videoBitrate = '10M',
|
feat: SDK deployment UI, proxy encoding global settings, S3 env fallback
- Settings: drop AMPP tab, rename GPU/Transcoding → Proxy encoding
with explicit 'applied to every ingested file' wording, expose
CPU codec/preset options when GPU is off
- New Capture SDKs tab (Settings): upload Blackmagic / AJA / Deltacast
SDK archives (.zip / .tar.gz) staged to /sdk/<vendor>/ inside mam-api;
BMD is fully wired into the FFmpeg build pipeline, AJA + Deltacast
staging-only pending FFmpeg patches
- mam-api: new /api/v1/sdk routes (multer upload, extract, list, delete);
Dockerfile gets unzip+tar; docker-compose mounts /mnt/NVME/MAM/sdk:/sdk
- proxy worker now reads proxy-encoding settings from DB on every job,
builds args for libx264 / NVENC / VAAPI, falls back to libx264 on
hardware-encode failure
- settings GET /s3 falls back to S3_* env vars when DB is empty so the
UI reflects what's actually wired (fixes 'not configured' false alarm)
2026-05-22 22:58:32 -04:00
|
|
|
rateControl = null, // 'cbr' | 'vbr' | 'cqp' — optional
|
|
|
|
|
audioCodec = 'aac',
|
2026-04-07 21:58:21 -04:00
|
|
|
audioBitrate = '192k',
|
feat: SDK deployment UI, proxy encoding global settings, S3 env fallback
- Settings: drop AMPP tab, rename GPU/Transcoding → Proxy encoding
with explicit 'applied to every ingested file' wording, expose
CPU codec/preset options when GPU is off
- New Capture SDKs tab (Settings): upload Blackmagic / AJA / Deltacast
SDK archives (.zip / .tar.gz) staged to /sdk/<vendor>/ inside mam-api;
BMD is fully wired into the FFmpeg build pipeline, AJA + Deltacast
staging-only pending FFmpeg patches
- mam-api: new /api/v1/sdk routes (multer upload, extract, list, delete);
Dockerfile gets unzip+tar; docker-compose mounts /mnt/NVME/MAM/sdk:/sdk
- proxy worker now reads proxy-encoding settings from DB on every job,
builds args for libx264 / NVENC / VAAPI, falls back to libx264 on
hardware-encode failure
- settings GET /s3 falls back to S3_* env vars when DB is empty so the
UI reflects what's actually wired (fixes 'not configured' false alarm)
2026-05-22 22:58:32 -04:00
|
|
|
hasAudio = true,
|
2026-04-07 21:58:21 -04:00
|
|
|
} = options;
|
|
|
|
|
|
feat: SDK deployment UI, proxy encoding global settings, S3 env fallback
- Settings: drop AMPP tab, rename GPU/Transcoding → Proxy encoding
with explicit 'applied to every ingested file' wording, expose
CPU codec/preset options when GPU is off
- New Capture SDKs tab (Settings): upload Blackmagic / AJA / Deltacast
SDK archives (.zip / .tar.gz) staged to /sdk/<vendor>/ inside mam-api;
BMD is fully wired into the FFmpeg build pipeline, AJA + Deltacast
staging-only pending FFmpeg patches
- mam-api: new /api/v1/sdk routes (multer upload, extract, list, delete);
Dockerfile gets unzip+tar; docker-compose mounts /mnt/NVME/MAM/sdk:/sdk
- proxy worker now reads proxy-encoding settings from DB on every job,
builds args for libx264 / NVENC / VAAPI, falls back to libx264 on
hardware-encode failure
- settings GET /s3 falls back to S3_* env vars when DB is empty so the
UI reflects what's actually wired (fixes 'not configured' false alarm)
2026-05-22 22:58:32 -04:00
|
|
|
// libx264 / yuv420p require even dimensions. Captured frames from SDI
|
|
|
|
|
// or upstream uploads sometimes arrive odd-sized (e.g. 1243x1125).
|
feat: live HLS preview, proxy worker fixes, Settings tabs, growing-files + Premier panel
- worker/proxy: scale-to-even filter, analyzeduration 100M, skip images, hasAudio
- worker/promotion: SMB landing zone -> S3 on idle, queues proxy job, status='ready'
- web-ui screens-ingest: HlsPreview component replaces fake LiveStrip/FauxFrame
- web-ui screens-admin: functional Settings tabs (S3, GPU, Growing, SDI, AMPP)
- mam-api /settings/growing: GET/PUT growing-files config
- mam-api /assets/:id/live-path: SMB UNC/POSIX path for live growing assets
- capture-manager: GROWING_ENABLED -> write hires to /growing instead of S3 stream
- recorders.js: pass GROWING_ENABLED to capture container, bind /growing mount
- docker-compose: mount /mnt/NVME/MAM/wild-dragon-growing on mam-api + worker
- premiere-plugin: Mount Live button, Relink-to-HiRes, live->ready status poll
2026-05-22 19:12:53 -04:00
|
|
|
const vf = "scale='trunc(iw/2)*2:trunc(ih/2)*2',format=yuv420p";
|
|
|
|
|
|
|
|
|
|
// analyzeduration/probesize must be set BEFORE -i. Some ProRes captures
|
|
|
|
|
// write unusual timebases (60k tbn) that ffmpeg cannot resolve with the
|
|
|
|
|
// default 5MB probe — bump to 100MB so we always read enough of the file.
|
2026-04-07 21:58:21 -04:00
|
|
|
const args = [
|
feat: live HLS preview, proxy worker fixes, Settings tabs, growing-files + Premier panel
- worker/proxy: scale-to-even filter, analyzeduration 100M, skip images, hasAudio
- worker/promotion: SMB landing zone -> S3 on idle, queues proxy job, status='ready'
- web-ui screens-ingest: HlsPreview component replaces fake LiveStrip/FauxFrame
- web-ui screens-admin: functional Settings tabs (S3, GPU, Growing, SDI, AMPP)
- mam-api /settings/growing: GET/PUT growing-files config
- mam-api /assets/:id/live-path: SMB UNC/POSIX path for live growing assets
- capture-manager: GROWING_ENABLED -> write hires to /growing instead of S3 stream
- recorders.js: pass GROWING_ENABLED to capture container, bind /growing mount
- docker-compose: mount /mnt/NVME/MAM/wild-dragon-growing on mam-api + worker
- premiere-plugin: Mount Live button, Relink-to-HiRes, live->ready status poll
2026-05-22 19:12:53 -04:00
|
|
|
'-analyzeduration', '100M',
|
|
|
|
|
'-probesize', '100M',
|
2026-04-07 21:58:21 -04:00
|
|
|
'-i', inputPath,
|
feat: live HLS preview, proxy worker fixes, Settings tabs, growing-files + Premier panel
- worker/proxy: scale-to-even filter, analyzeduration 100M, skip images, hasAudio
- worker/promotion: SMB landing zone -> S3 on idle, queues proxy job, status='ready'
- web-ui screens-ingest: HlsPreview component replaces fake LiveStrip/FauxFrame
- web-ui screens-admin: functional Settings tabs (S3, GPU, Growing, SDI, AMPP)
- mam-api /settings/growing: GET/PUT growing-files config
- mam-api /assets/:id/live-path: SMB UNC/POSIX path for live growing assets
- capture-manager: GROWING_ENABLED -> write hires to /growing instead of S3 stream
- recorders.js: pass GROWING_ENABLED to capture container, bind /growing mount
- docker-compose: mount /mnt/NVME/MAM/wild-dragon-growing on mam-api + worker
- premiere-plugin: Mount Live button, Relink-to-HiRes, live->ready status poll
2026-05-22 19:12:53 -04:00
|
|
|
'-vf', vf,
|
2026-04-07 21:58:21 -04:00
|
|
|
'-c:v', videoCodec,
|
|
|
|
|
'-preset', videoPreset,
|
|
|
|
|
'-b:v', videoBitrate,
|
|
|
|
|
];
|
|
|
|
|
|
feat: SDK deployment UI, proxy encoding global settings, S3 env fallback
- Settings: drop AMPP tab, rename GPU/Transcoding → Proxy encoding
with explicit 'applied to every ingested file' wording, expose
CPU codec/preset options when GPU is off
- New Capture SDKs tab (Settings): upload Blackmagic / AJA / Deltacast
SDK archives (.zip / .tar.gz) staged to /sdk/<vendor>/ inside mam-api;
BMD is fully wired into the FFmpeg build pipeline, AJA + Deltacast
staging-only pending FFmpeg patches
- mam-api: new /api/v1/sdk routes (multer upload, extract, list, delete);
Dockerfile gets unzip+tar; docker-compose mounts /mnt/NVME/MAM/sdk:/sdk
- proxy worker now reads proxy-encoding settings from DB on every job,
builds args for libx264 / NVENC / VAAPI, falls back to libx264 on
hardware-encode failure
- settings GET /s3 falls back to S3_* env vars when DB is empty so the
UI reflects what's actually wired (fixes 'not configured' false alarm)
2026-05-22 22:58:32 -04:00
|
|
|
// NVENC takes rate control via -rc / -cq. VAAPI uses -rc_mode. libx264
|
|
|
|
|
// ignores both (rate is implied by -b:v + -maxrate).
|
|
|
|
|
if (rateControl) {
|
|
|
|
|
if (NVENC_CODECS.has(videoCodec)) {
|
|
|
|
|
args.push('-rc', rateControl);
|
|
|
|
|
} else if (VAAPI_CODECS.has(videoCodec)) {
|
|
|
|
|
args.push('-rc_mode', rateControl.toUpperCase());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
feat: live HLS preview, proxy worker fixes, Settings tabs, growing-files + Premier panel
- worker/proxy: scale-to-even filter, analyzeduration 100M, skip images, hasAudio
- worker/promotion: SMB landing zone -> S3 on idle, queues proxy job, status='ready'
- web-ui screens-ingest: HlsPreview component replaces fake LiveStrip/FauxFrame
- web-ui screens-admin: functional Settings tabs (S3, GPU, Growing, SDI, AMPP)
- mam-api /settings/growing: GET/PUT growing-files config
- mam-api /assets/:id/live-path: SMB UNC/POSIX path for live growing assets
- capture-manager: GROWING_ENABLED -> write hires to /growing instead of S3 stream
- recorders.js: pass GROWING_ENABLED to capture container, bind /growing mount
- docker-compose: mount /mnt/NVME/MAM/wild-dragon-growing on mam-api + worker
- premiere-plugin: Mount Live button, Relink-to-HiRes, live->ready status poll
2026-05-22 19:12:53 -04:00
|
|
|
if (hasAudio) {
|
|
|
|
|
args.push('-c:a', audioCodec, '-b:a', audioBitrate);
|
|
|
|
|
} else {
|
|
|
|
|
args.push('-an');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
args.push('-movflags', '+faststart', '-y', outputPath);
|
|
|
|
|
|
2026-04-07 21:58:21 -04:00
|
|
|
await runFFmpeg(args);
|
|
|
|
|
};
|
|
|
|
|
|
feat: SDK deployment UI, proxy encoding global settings, S3 env fallback
- Settings: drop AMPP tab, rename GPU/Transcoding → Proxy encoding
with explicit 'applied to every ingested file' wording, expose
CPU codec/preset options when GPU is off
- New Capture SDKs tab (Settings): upload Blackmagic / AJA / Deltacast
SDK archives (.zip / .tar.gz) staged to /sdk/<vendor>/ inside mam-api;
BMD is fully wired into the FFmpeg build pipeline, AJA + Deltacast
staging-only pending FFmpeg patches
- mam-api: new /api/v1/sdk routes (multer upload, extract, list, delete);
Dockerfile gets unzip+tar; docker-compose mounts /mnt/NVME/MAM/sdk:/sdk
- proxy worker now reads proxy-encoding settings from DB on every job,
builds args for libx264 / NVENC / VAAPI, falls back to libx264 on
hardware-encode failure
- settings GET /s3 falls back to S3_* env vars when DB is empty so the
UI reflects what's actually wired (fixes 'not configured' false alarm)
2026-05-22 22:58:32 -04:00
|
|
|
export const isHwCodec = (codec) => HW_CODECS.has(codec);
|
|
|
|
|
|
feat: live HLS preview, proxy worker fixes, Settings tabs, growing-files + Premier panel
- worker/proxy: scale-to-even filter, analyzeduration 100M, skip images, hasAudio
- worker/promotion: SMB landing zone -> S3 on idle, queues proxy job, status='ready'
- web-ui screens-ingest: HlsPreview component replaces fake LiveStrip/FauxFrame
- web-ui screens-admin: functional Settings tabs (S3, GPU, Growing, SDI, AMPP)
- mam-api /settings/growing: GET/PUT growing-files config
- mam-api /assets/:id/live-path: SMB UNC/POSIX path for live growing assets
- capture-manager: GROWING_ENABLED -> write hires to /growing instead of S3 stream
- recorders.js: pass GROWING_ENABLED to capture container, bind /growing mount
- docker-compose: mount /mnt/NVME/MAM/wild-dragon-growing on mam-api + worker
- premiere-plugin: Mount Live button, Relink-to-HiRes, live->ready status poll
2026-05-22 19:12:53 -04:00
|
|
|
// Single-frame poster — used as a fallback "proxy" for still-image assets
|
|
|
|
|
// so the library can show them without a transcoded video.
|
|
|
|
|
export const transcodeImage = async (inputPath, outputPath) => {
|
|
|
|
|
await runFFmpeg([
|
|
|
|
|
'-i', inputPath,
|
|
|
|
|
'-vf', "scale='min(1920,iw)':-2",
|
|
|
|
|
'-q:v', '3',
|
|
|
|
|
'-y', outputPath,
|
|
|
|
|
]);
|
|
|
|
|
};
|
|
|
|
|
|
2026-04-07 21:58:21 -04:00
|
|
|
export const trimSegment = async (inputPath, outputPath, inPoint, outPoint) => {
|
|
|
|
|
const args = [
|
|
|
|
|
'-i', inputPath,
|
|
|
|
|
'-ss', inPoint,
|
|
|
|
|
'-to', outPoint,
|
|
|
|
|
'-c', 'copy',
|
2026-05-16 00:29:49 -04:00
|
|
|
'-y',
|
2026-04-07 21:58:21 -04:00
|
|
|
outputPath,
|
|
|
|
|
];
|
|
|
|
|
await runFFmpeg(args);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export const concatSegments = async (segmentListFile, outputPath) => {
|
|
|
|
|
const args = [
|
|
|
|
|
'-f', 'concat',
|
|
|
|
|
'-safe', '0',
|
|
|
|
|
'-i', segmentListFile,
|
|
|
|
|
'-c', 'copy',
|
2026-05-16 00:29:49 -04:00
|
|
|
'-y',
|
2026-04-07 21:58:21 -04:00
|
|
|
outputPath,
|
|
|
|
|
];
|
|
|
|
|
await runFFmpeg(args);
|
|
|
|
|
};
|