diff options
author | Chocobozzz <me@florianbigard.com> | 2020-12-01 09:31:45 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-12-01 15:04:38 +0100 |
commit | 9e3e4adc6503742c30645cf01729a34c921c4060 (patch) | |
tree | fa208bd2a9eedc1b080f99f7210d116371b43c30 /shared/extra-utils/miscs/miscs.ts | |
parent | a3f1595f791e3084398f983847c4bac43498a541 (diff) | |
download | PeerTube-9e3e4adc6503742c30645cf01729a34c921c4060.tar.gz PeerTube-9e3e4adc6503742c30645cf01729a34c921c4060.tar.zst PeerTube-9e3e4adc6503742c30645cf01729a34c921c4060.zip |
Add logs to fixture generations
Diffstat (limited to 'shared/extra-utils/miscs/miscs.ts')
-rw-r--r-- | shared/extra-utils/miscs/miscs.ts | 3 |
1 files changed, 3 insertions, 0 deletions
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 () { | |||
88 | 88 | ||
89 | const exists = await pathExists(tempFixturePath) | 89 | const exists = await pathExists(tempFixturePath) |
90 | if (!exists) { | 90 | if (!exists) { |
91 | console.log('Generating high bitrate video.') | ||
91 | 92 | ||
92 | // Generate a random, high bitrate video on the fly, so we don't have to include | 93 | // Generate a random, high bitrate video on the fly, so we don't have to include |
93 | // a large file in the repo. The video needs to have a certain minimum length so | 94 | // 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) { | |||
115 | 116 | ||
116 | const exists = await pathExists(tempFixturePath) | 117 | const exists = await pathExists(tempFixturePath) |
117 | if (!exists) { | 118 | if (!exists) { |
119 | console.log('Generating video with framerate %d.', fps) | ||
120 | |||
118 | return new Promise<string>((res, rej) => { | 121 | return new Promise<string>((res, rej) => { |
119 | ffmpeg() | 122 | ffmpeg() |
120 | .outputOptions([ '-f rawvideo', '-video_size 1280x720', '-i /dev/urandom' ]) | 123 | .outputOptions([ '-f rawvideo', '-video_size 1280x720', '-i /dev/urandom' ]) |