Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Recording headless selenium tests to mp4 with Xvfb and ffmpeg #4
@kjagiello I think you can try to set
Hi Rafał! Thank you very much for the nice post!
I've used your post while writing an article about converting SWF into MP4 (I'm not very good at English so it's in Russian, sorry). In few details: I've played SWF video on virtual screen and captured it with aid of FFmpeg.
Let me put my two cents in. It's possible to stop FFmpeg politely without tmux but with aid of Bash co-process. All you need is just to run
captures screen for about 10 seconds. I tried to play the resultant test.mp4 file in VLC - everything is OK. And FFmpeg reports that the file has correct duration, e.g.:
$ ffprobe -v error -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 test.mp4 10.200000