From f58c63ada34a773eec4a0e5f1783978dbe12b492 Mon Sep 17 00:00:00 2001 From: OmarTrigui Date: Mon, 22 Jun 2020 20:16:58 +0200 Subject: [PATCH] Add --disable-dev-shm-usage chrome flag to support large dimension videos. --- entrypoint.sh | 3 ++- main.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 4743a2d..d9a6c15 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -euxo pipefail main() { log_i "Starting pulseaudio server" @@ -37,7 +38,7 @@ launch_xvfb() { } launch_pulseaudio() { - pulseaudio -D --exit-idle-time=-1 & + pulseaudio -D --exit-idle-time=-1 } launch_recorder() { diff --git a/main.js b/main.js index fc3c187..61eaaf6 100644 --- a/main.js +++ b/main.js @@ -26,7 +26,8 @@ function getStartChromeCommand () { '--disable-extensions ' + '--autoplay-policy=no-user-gesture-required ' + '--allow-running-insecure-content ' + - '--disable-features=TranslateUI"' + '--disable-features=TranslateUI"' + + '--disable-dev-shm-usage' } function getStartRecordingCommand () {