-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Recording headless selenium tests to mp4 with Xvfb and ffmpeg #4
Comments
I just wonder if you know if it would be possible to achieve 60 fps using this method? I'm looking for a way to convert a page with a bit of CSS animations to a video file and I came across your post and it seemed promising! |
@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 the article has been written in Russian). 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 |
@flaz14 This is really cool ! Thanks for the info :) |
Hi, I am using parallel_tests(https://github.com/grosser/parallel_tests/tree/master/lib/parallel_tests) gem to run the RSpec tests parallelly. Currently, we have a mechanism to record the video using xvfb where it records complete screen. So here it is recording multiple test runs in a single frame buffer I feel. I want to run the tests parallelly with parallel recordings for each browser which opens. Can you please help me with this? |
Hi @Tejareddy1, Sure, you need separate virtual screen for each test & Xvfb instance. Look at Linux |
I loved it ! It Gave me hope to complete a job |
@afterdesign hello! I have a similar task, only tests need to be written locally, in headless mode. My Xvfb startup command |
If you found error in my post or have new interesting insights on this topic please leave your comment here.
Thanks !
The text was updated successfully, but these errors were encountered: