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 -r parameter to 60 and check the end result.
-r[:stream_specifier] fps (input/output,per-stream)
Set frame rate (Hz value, fraction or abbreviation).
As an input option, ignore any timestamps stored in the file and instead generate timestamps assuming constant frame rate fps. This is not the same as the -framerate option used for some input formats like image2 or v4l2 (it used to be the same in older versions of FFmpeg). If in doubt use -framerate instead of the input option -r.
As an output option, duplicate or drop input frames to achieve constant output frame rate fps.
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 ffmpeg via coproc. The following script:
I have a question regarding parallel tests running in a single docker container.
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?
@afterdesign hello! I have a similar task, only tests need to be written locally, in headless mode. My Xvfb startup command Xfvb :99 -screen 0 1600x1200x24+32 & RECORD_VIDEO=true rspec spec/processor_spec.rb specifying the variable, RECORD_VIDEO, if true, the screen recording command is enabled - ffmpeg -f x11grab -i :99 -c:v libx264 -preset ultrafast -tune zerolatency -crf 25 //tmp/file.mkv. The command itself is in the test. Can you tell please, why my video file has a black screen ? The tests are passed locally, but the video is not recorded. If I run tests without Xvfb, the video is written perfectly. I run tests with Xvfb support on the server machine by logging in to the server machine