From b4a7ba76a088f03edadd767b87c9fec979ee4e80 Mon Sep 17 00:00:00 2001 From: Olivier Berger Date: Sun, 3 May 2020 00:15:37 +0200 Subject: [PATCH] Workaround https://github.com/elgalu/docker-selenium/issues/382 Producing mkv works, and with the addition of -strict -2 -acodec aac to the defaults of FFMPEG_CODEC_ARGS, it seems mp4 works too. As mp4 is smaller, let's keep it then, even if it's a hack ;-) --- capture-full-replay.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/capture-full-replay.sh b/capture-full-replay.sh index b47f77e..1c3974c 100755 --- a/capture-full-replay.sh +++ b/capture-full-replay.sh @@ -17,13 +17,14 @@ seconds=$(python3 bbb.py duration "$url") seconds=$(expr $seconds + 3) # Startup Selenium server +# -e VIDEO_FILE_EXTENSION="mkv" \ docker run --rm -d --name=grid -p 4444:24444 -p 5920:25900 \ --shm-size=2g -e VNC_PASSWORD=hola \ -e VIDEO=true -e AUDIO=true \ -e SCREEN_WIDTH=1080 -e SCREEN_HEIGHT=720 \ -e FFMPEG_DRAW_MOUSE=0 \ -e FFMPEG_FRAME_RATE=24 \ - -e VIDEO_FILE_EXTENSION="mkv" \ + -e FFMPEG_CODEC_ARGS="-vcodec libx264 -preset ultrafast -pix_fmt yuv420p -strict -2 -acodec aac" \ elgalu/selenium docker exec grid wait_all_done 30s