Hi. On Tue, Jul 28, 2020 at 06:18:31PM +0000, Rodolfo Medina wrote: > $ mencoder tv:// -tv > driver=v4l2:width=640:height=480:device=/dev/video0:forceaudio:alsa:adevice=hw.1,0 > -ovc lavc -oac mp3lame -lameopts cbr:br=64:mode=3 -o webcam.avi > How can I modify the above command so to capture desktop > screen instead (with audio)?
Start with replacing mencoder with ffmpeg, it's easy afterwards: ffmpeg -f x11grab -r 30 -s 640x480 -i $DISPLAY \ -f pulse -ac 2 -i 1 \ -c:a libopus -c:v libx264 \ screencast.mkv It assumes that you're using X and Pulseaudio. As far as I can tell there's no "x11grab" equivalent in mencoder. I could be wrong, though, haven't used the thing for about 10 years or so. Reco