diff --git a/Video/Dockerfile b/Video/Dockerfile index 991c5f42c0..18abd49168 100644 --- a/Video/Dockerfile +++ b/Video/Dockerfile @@ -41,8 +41,6 @@ ENV DISPLAY_NUM="99" \ SE_AUDIO_SOURCE="-f pulse -ac 2 -i default" \ SE_SERVER_PROTOCOL="http" \ SE_VIDEO_POLL_INTERVAL="1" \ - SE_SCREEN_WIDTH="1920" \ - SE_SCREEN_HEIGHT="1080" \ SE_FRAME_RATE="15" \ SE_CODEC="libx264" \ SE_PRESET="-preset ultrafast" \ diff --git a/Video/video.sh b/Video/video.sh index 2901f82b47..6413e69a8a 100755 --- a/Video/video.sh +++ b/Video/video.sh @@ -71,7 +71,9 @@ function wait_for_display() { until xset b off >/dev/null 2>&1; do sleep ${poll_interval} done - VIDEO_SIZE=$(xdpyinfo | grep 'dimensions:' | awk '{print $2}') + if [ -z "$SE_SCREEN_WIDTH" -o -z "$SE_SCREEN_HEIGHT" ]; then + VIDEO_SIZE=$(xdpyinfo | grep 'dimensions:' | awk '{print $2}') + fi echo "$(date -u +"${ts_format}") [${process_name}] - Display ${DISPLAY} is open with dimensions ${VIDEO_SIZE}" }