when you use the lavf muxer with mencoder, make sure that you don’t use any B-Frames for encoding since the lavf muxer is currently broken and places incorrect timestamps when using B-Frames. Like in the example above, set the vmax_b_frames option to 0
I have been working on this as well and I have found a solution to my problem. I am using a Windows PC with Ubuntu installed as a second OS but Ubuntu functions very well for me. I have download lots of packages and even some restricted packages. (They are not really restricted, that’s what *** was named). Having said that, I don’t know if the downloads helped fix my problem or not. They are to many for me to discuss. Anyway, when I started working with ffmpeg I found two codes. One for video and one for audio. The one for audio is ffmpeg -f alsa -acodec pcm_s16le -ac 2 -ar 48000 -ab 1536k -i hw:0,0 /home/clarence/ffmpegaudio/myaudio1.wav where /home/clarence/ffmpegaudio/myaudio1.wav is where I want to send the output and the file name to send it to. The second code was for video, ffmpeg -r 30 -s 1680x1050 -f x11grab -i :0.0 -vcodec msmpeg4v2 -qscale 2 vieditor.avi where vieditor.avi is the file name and it will go to the x263 directory. To get sound and video, I simply combined the two codes:ffmpeg -f alsa -acodec pcm_s16le -ac 2 -ar 48000 -ab 1536k -i hw:0,0 -r 30 -s 1680x1050 -f x11grab -i :0.0 -vcodec msmpeg4v2 -qscale 2 movie5.avi and it works perfectly on both of my systems. I would like to be able to adjust the sound level using ffmpeg on one of my systems, it’s pretty good on the other. I hope this helps.