I built a new computer last year (Sept.) and since that time never reinstalled RMD. I saw your post, and since I never had problems before with out of sync audio and video, figured I test RMD for you.
I wrote this simple 2 part tutorial back in 2009 for Linux Graphics Users forum:
http://linuxgraphicsusers.com/forum/index.php?topic=626.0which also has some extra info on mencoder and the equipment I used for RMD, if you’re interested. I use a terminal for RMD and it’s really very easy. I’m not a terminal guy by any means but I do go back to the DOS days. Even though I’m using a fairly recent build, I upgraded from a circa 2001 computer and RMD and mencoder worked fine but slow.
Be aware that you will need to install:
recordmydesktop - the plain jane version, not the gtk or qt versions.
mencoder - or if you have mplayer installed I believe mencoder gets installed too.
xwininfo - if you want to record a specific window and not the whole desktop.
The command I use to start a recording session is...
recordmydesktop -windowid $(xwininfo |grep "Window id:"|sed -e "s/xwininfo\:\ Window id:\ // ;s/\ .*//") -fps 15 -device hw:1,0Where...
-windowid $(xwininfo |grep "Window id:"|sed -e "s/xwininfo\:\ Window id:\ // ;s/\ .*//")
is the window you what to record. If you what to record your whole desktop just drop this portion of the command.
-fps 15 = frames per second
-device hw:1,0 = microphone location, in my case a USB mic.
When first launching the command a cross-hair will appear and you use it to select the window you want to record. Clicking on a window will start a recording session.
Some handy key combos...
Ctrl + Alt + p = pause the screencast.
Ctrl + c = ends the session. There is a slight pause before the video starts encoding. Tapping Ctrl + c a second time and you'll lose whatever is left that wasn't encoded before it finished.
The default output is an out.ogv file sitting in your /home. You can watch what you recorded by clicking on the file. Kaffeine plays them fine. For some reason VLC doesn't play the sound on my system. Also the .ogv file sound volume is very, very low, which we'll fix with mencoder.
___________________________________________________________________
Part two: the mencoder command.
mencoder -ovc lavc -ofps 30 -oac mp3lame -af volnorm=1:0.5 out.ogv -o output.aviWhere...
out.ogv --- input file
-af volnorm=1:0.5 --- increases voice volume in playback.
-o output.avi --- output file name.
-ofps 30 --- output at 30 fps
Some handy commands:
mencoder -ovc help
mencoder -oac help
And finally proof that it works properly. BTW, my preferred video player is smplayer.
http://dl.dropbox.com/u/21736880/output.aviHope this helps.
Ed