I have been trying the below code (which I found on other similiar problem on this site here: How to record a specific window using ffmpeg But it gives me black video and the same video is not playable by windows media player (it works on vlc but with black video..)
ffmpeg -f gdigrab -framerate 30 -i title="german.avi - VLC media player" -b:v 3M germ.flv
Video example: Weird thumbnail by WMP which shows it can't play it Black screen as described, but it opens with black video in VLC
I tried the other suggestions, but this one sometimes (less than 40% of the time) works. I also noticed it doesn't show the window main title, which is a bit confusing, as it causes the mouse cursor to appear a little down where it should be.