Skip to content

Commit 94f85a3

Browse files
committed
Make ffmpeg progress reporting less noisy.
1 parent 5a5d99f commit 94f85a3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

functions/src/events/scrapeEvents.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,9 @@ const extractAudioFromVideo = async (
154154
console.log(`Spawned FFmpeg with command: ${commandLine}`)
155155
})
156156
.on("progress", progress => {
157-
console.log(`Processing: ${progress.percent}% done`)
157+
if (progress && progress.percent && progress.percent % 10 === 0) {
158+
console.log(`Processing: ${progress.percent}% done`)
159+
}
158160
})
159161
.on("end", () => {
160162
console.log("FFmpeg processing finished successfully")

0 commit comments

Comments
 (0)