Skip to content

Commit

Permalink
fix: Do not probe vtt files
Browse files Browse the repository at this point in the history
  • Loading branch information
matvp91 committed Oct 20, 2024
1 parent 2e332ef commit 14b1205
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/artisan/src/consumer/workers/ffmpeg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,6 @@ async function runJob(

job.log(`Input is ${inputFile.path}`);

const inputInfo = await FFmpeggy.probe(inputFile.path);

job.log(`Probed info (${JSON.stringify(inputInfo)})`);

const ffmpeg = new FFmpeggy({
input: inputFile.path,
globalOptions: ["-loglevel error"],
Expand All @@ -81,6 +77,9 @@ async function runJob(
const outputOptions: string[] = [];

if (params.stream.type === "video") {
const inputInfo = await FFmpeggy.probe(inputFile.path);
job.log(`Probed info (${JSON.stringify(inputInfo)})`);

const maxHeight = getMaxHeight(inputInfo);

if (maxHeight > 0 && params.stream.height > maxHeight) {
Expand Down

0 comments on commit 14b1205

Please sign in to comment.