From 9e3e4adc6503742c30645cf01729a34c921c4060 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 1 Dec 2020 09:31:45 +0100 Subject: Add logs to fixture generations --- shared/extra-utils/miscs/miscs.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'shared/extra-utils/miscs') diff --git a/shared/extra-utils/miscs/miscs.ts b/shared/extra-utils/miscs/miscs.ts index 429083fe9..aea9563cf 100644 --- a/shared/extra-utils/miscs/miscs.ts +++ b/shared/extra-utils/miscs/miscs.ts @@ -88,6 +88,7 @@ async function generateHighBitrateVideo () { const exists = await pathExists(tempFixturePath) if (!exists) { + console.log('Generating high bitrate video.') // Generate a random, high bitrate video on the fly, so we don't have to include // a large file in the repo. The video needs to have a certain minimum length so @@ -115,6 +116,8 @@ async function generateVideoWithFramerate (fps = 60) { const exists = await pathExists(tempFixturePath) if (!exists) { + console.log('Generating video with framerate %d.', fps) + return new Promise((res, rej) => { ffmpeg() .outputOptions([ '-f rawvideo', '-video_size 1280x720', '-i /dev/urandom' ]) -- cgit v1.2.3