Home » Questions » Computers [ Ask a new question ]

Rolling desktop recorder? [closed]

Rolling desktop recorder? [closed]

I want a piece of Windows software that will constantly record what I'm doing on my desktop, discarding footage that's over [30] seconds old. Its recording would be a rolling one.

Asked by: Guest | Views: 67
Total answers/comments: 2
Guest [Entry]

"Install screen capture recorder: github.com/rdp/screen-capture-recorder-to-video-windows-free
Put the ffmpeg directory that it installs on your path. On my machine that was: C:\Program Files (x86)\Screen Capturer Recorder\configuration_setup_utility\vendor\ffmpeg\bin
Run the following batch script:

The batch script:

echo off
ffmpeg -loglevel info -t 300 -f dshow -video_device_number 0 -i video=""screen-capture-recorder"" -vcodec libx264 -pix_fmt yuv420p -s hd720 -preset ultrafast -vsync vfr -acodec libmp3lame -f mpegts - | ffmpeg -f mpegts -i - -c copy ""current.mp4""
del old.mp4
mv current.mp4 old.mp4
goto loop"
Guest [Entry]

"OK, On linux, the following script will create three .avi files in /tmp/ that will keep the last few instants recorded.

while true; do
ffmpeg -f x11grab -s 1280x800 -r 60 -i :0.0 -f avi /tmp/rolling.avi &> /dev/null &
sleep 30;
kill -KILL $PID
cp /tmp/rolling_1.avi /tmp/rolling_2.avi
cp /tmp/rolling.avi /tmp/rolling_1.avi
rm /tmp/rolling.avi

Obviously, you'll have to replace the args of ffmpeg for your screen res, etc...

A shout out to b0fh and ~quack for helping me with some bash notification problems in this thread."