I am trying to video-record a browser window with ffmpeg
. The browser window is a firefox window with title OpenID Connect Server - Log In
, so I tried the following command (based on the suggestion given here):
ffmpeg -f x11grab -framerate 30 -i title="OpenID Connect Server - Log In" -b:v 3M germ.flv
but I get an error
[x11grab @ 0x1fd7980] Cannot open display title=OpenID Connect Server - Log In, error 5.
title=OpenID Connect Server - Log In: Input/output error
Anything I am missing?
Addition:
- I need a tool to be used on command line (starting and stopping recording).
- The goal is to record selenium tests from a window. But I need to run like 50 tests, which all open and close their own firefox window. Therefore I need the command line ability.