ffmpeg -v verbose -f x11grab -show_region 1 -s 640x480 -r 25 -i :0.0+1264,539+nomouse \ -f pulse -ac 2 -b:a 96k -i default -f flv -c:v libx264 -crf 26 -preset "$QUAL" \ -s 640x480 -strict -2 -c:a aac -ar 44100 -pix_fmt yuv420p -maxrate 400k -bufsize 600k \ -f flv "$URL" GST_DEBUG=2 gst-launch-0.10 -e ximagesrc startx=1264 starty=539 endx=1903 endy=1018 show-pointer=false ! ffmpegcolorspace ! \ x264enc pass=5 quantizer=26 speed-preset="$QUAL" bitrate=400 vbv-buf-capacity=600 ! h264parse ! queue ! \ flvmux streamable=true name=mux pulsesrc device=alsa_output.pci-0000_01_00.1.hdmi-stereo-extra1.monitor typefind=true provide-clock=true slave-method=2 ! audio/x-raw-int,rate=44100,channels=2,depth=16 ! \ ffenc_aac bitrate=96000 ! queue ! mux. mux. ! queue ! rtmpsink location="$URL"