Run VNC temporaly to check recording

pull/540/head
cruizba 2020-07-24 14:13:30 +02:00
parent d965739a53
commit 2716777f2b
2 changed files with 24 additions and 20 deletions

View File

@ -15,6 +15,7 @@ export COMPOSED_QUICK_START_ACTION=$1
if [[ -z "${COMPOSED_QUICK_START_ACTION}" ]]; then
{
### Variables ###
export RESOLUTION=${RESOLUTION:-1920x1080}
export URL=${URL:-https://www.youtube.com/watch?v=JMuzlEQz3uo}
@ -41,9 +42,9 @@ if [[ -z "${COMPOSED_QUICK_START_ACTION}" ]]; then
XVFB_ARGS=$(ps -eo args | grep [X]vfb)
DISPLAY_NUM=$(echo $XVFB_ARGS | sed 's/Xvfb :\([0-9]\+\).*/\1/')
x11vnc -noxrecord -noxfixes -noxdamage -forever -display :$DISPLAY_NUM &
echo "Display in use -> :$DISPLAY_NUM"
echo "----------------------------------------"
# Save Global Environment variables
echo "export DISPLAY_NUM=$DISPLAY_NUM" > /tmp/display_num

View File

@ -19,6 +19,9 @@ RUN apt-get install -y ffmpeg pulseaudio xvfb
# Install jq for managing JSON
RUN apt-get install -y jq
RUN apt-get install x11vnc
# Clean
RUN apt-get autoclean