aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/extra-utils/miscs
diff options
context:
space:
mode:
Diffstat (limited to 'shared/extra-utils/miscs')
-rw-r--r--shared/extra-utils/miscs/miscs.ts3
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' ])