Sign inSign up

ptmkenny/standalone-chrome-debug-ffmpeg

By ptmkenny

•Updated almost 5 years ago

selenium/standalone-chrome-debug with ffmpeg for screen recording

Image
0

2.3K

ptmkenny/standalone-chrome-debug-ffmpeg repository overview

⁠standalone-chrome-debug-ffmpeg

Dockerfile for selenium/standalone-chrome-debug with ffmpeg for screen recording

Based on this comment @dtinth: https://github.com/SeleniumHQ/docker-selenium/issues/148⁠

⁠Take screen recording

For example, if your docker container is ptmkenny_seleniumchromedriver_1:

docker exec -ti ptmkenny_seleniumchromedriver_1 ffmpeg -video_size 1360x1020 -framerate 15 -f x11grab -i :99.0 behat-lando.mp4

Use CTRL+C to quit. Then you can copy the video file out of the docker container like this:

'docker cp ptmkenny_seleniumchromedriver_1:/behat-lando.mp4 .'

⁠Clean up the MP4 file

The poster in the original issue suggests you may need to use MP4Box to clean up the video:

MP4Box -isma -inter 500 /path/to/recording.mp4

Tag summary

Content type

Image

Digest

Size

426.8 MB

Last updated

almost 5 years ago

docker pull ptmkenny/standalone-chrome-debug-ffmpeg