diff --git a/scripts/prepareVideo.sh b/scripts/prepareVideo.sh index 4554be7..29b72c8 100755 --- a/scripts/prepareVideo.sh +++ b/scripts/prepareVideo.sh @@ -4,7 +4,7 @@ cp app.mp4 original.mp4 ffprobe -f lavfi -i "movie=app.mp4,blackdetect[out0]" -show_entries tags=lavfi.black_start,lavfi.black_end -of default=nw=1 -v quiet > ffmpeg_info END_OF_BLACK=`cat ffmpeg_info | grep end | head -n1 | cut -d'=' -f2` -END_OF_BLACK=$[ $END_OF_BLACK + 2.2 ] +END_OF_BLACK=`awk "BEGIN {print $END_OF_BLACK+0.8; exit}"` # Trim black frames at start ffmpeg -ss $END_OF_BLACK -i app.mp4 app2.mp4 mv app2.mp4 app.mp4 diff --git a/scripts/uiTests.sh b/scripts/uiTests.sh index e68c710..f89251d 100755 --- a/scripts/uiTests.sh +++ b/scripts/uiTests.sh @@ -17,7 +17,7 @@ export PID_XVFB=$! sleep 2 # Debug with VNC -while [ "$TEST_EXIT_CODE" = "" ]; do x11vnc -passwd "bierbier" -display :$SCR; done & +while [ "$TEST_EXIT_CODE" = "" ]; do x11vnc -localhost -passwd "bierbier" -display :$SCR; done & export PID_VNC=$! # Start mqtt broker