The keyword for search in google or similar is "screen capture" which gives for example this page:
http://stackoverflow.com/questions/2208 ... g-terminal
(example for MacOS).
Under Linux you can directly use this command (very similar to the example in the link):
Code: Select all
vlc -I dummy screen:// --screen-fps=25 --quiet --sout='#transcode{vcodec=h264,vb072}:standard{access=file,mux=mp4,dst=capture.mp4}'
assuming to save in the file "capture.mp4" in the local folder (where you are while starting vlc from the command line).
Here the option: "-I dummy" indicates "no GUI" and the other options are for the screen capture where "screen://" is the main device, "--screen-fps=25" gives the framerate (can be modified, reduced to economize place). The container/encapsulation is mp4 and the codec is h264 (same as normal HD TV codec from DVB etc.) which seems the most efficient (in a test I got a bitrate of ~650 Kb/s for 1920x1080 resolution which is not much at all for a HD video but the screen movement was also very modest). When you have fast movements this may be much higher and probably also eat a lot of CPU power.
In Linux to put this in "background" you simply add an "&" behind the command line. I am not sure how to do this exactly in Windows but the main command line should be similar, maybe you need full pathes for vlc and the destination file (maybe with "..." around to protect for strange symbols etc.). Apart from such details it should also work in Windows.
The remaining problem is how to "stop" it when you are finished (actually the question asked in the above link of stackoverflow.com). In vlc you can also add some option "--run-time=XXX" for a run time of XXX seconds (with XXX being some number).