MCPcopy Index your code
hub / github.com/triggerdotdev/trigger.dev / convertVideo

Function convertVideo

references/v3-catalog/src/trigger/binaries.ts:126–150  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

124});
125
126async function convertVideo() {
127 const outputPath = "./video.webm";
128 logger.log("converting video", { input: videoPath, output: outputPath });
129
130 const childProcess = await execute(ffmpeg.path, [
131 "-hide_banner",
132 "-y", // overwrite output, don't prompt
133 "-i",
134 videoPath,
135 // seek to 25s
136 "-ss",
137 "25",
138 // stop after 5s
139 "-t",
140 "5",
141 outputPath,
142 ]);
143
144 logger.log("video converted", {
145 input: videoPath,
146 output: outputPath,
147 stderr: childProcess.stderr,
148 stdout: childProcess.stdout,
149 });
150}
151
152export const ffmpegConvert = task({
153 id: "ffmpeg-convert",

Callers 1

binaries.tsFile · 0.85

Calls 2

executeFunction · 0.85
logMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…