I'm quite new to multimedia things, I'm trying to find a way to make nice screencasts, I've already been able to capture my desktop with ffmpeg:
$ ffmpeg -f alsa -ac 2 -i hw:0,0 -f x11grab -r 30 -s $(xwininfo -root | grep 'geometry' | awk '{print $2;}') -i :0.0 -acodec pcm_s16le -vcodec libx264 -vpre lossless_ultrafast -threads 0 -y out.mkv
It works pretty nice, but I'd like to add music in the background, if I add it with mencoder:
mencoder -ovc copy -oac mix -audiofile track.mp3 out.mkv -o out.mp4
It delete the video sound, I don't want to replace it, I want to add music to my explanation, any ideas?