Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions Video/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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" \
Expand Down
4 changes: 3 additions & 1 deletion Video/video.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
}

Expand Down
Loading