User:StasFomin/testvlc
vlc screen:// --screen-follow-mouse --no-video :screen-fps=5 :screen-caching=300 --sout "#transcode{vcodec=h264,vb=4000,fps=5,acodec=none}:duplicate{dst=std{access=file,mux=avi,dst='`date -u \"+%F-%H-%M-%S\"`.avi'}}"
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 output.mkv
ffmpeg -f x11grab -r 5 -s $(xwininfo -root | grep 'geometry' | awk '{print $2;}') -i :0.0 -an -vcodec libx264 -vpre lossless_ultrafast -threads 0 -y $(date -u "+%F-%H-%M-%S").avi
Плохо, но скорее всего сработает.
ffmpeg -f x11grab -r 5 -s $(xwininfo -root | grep 'geometry' | awk '{print $2;}') -i :0.0 -an -vcodec flv -vb 1000 -y $(date "+%F-%H-%M-%S").flv
ffmpeg -f x11grab -r 4 -s $(xwininfo -root | grep 'geometry' | awk '{print $2;}') -i :0.0 -an -vcodec flashsv -vb 1000 -vsync 1 -y $(date "+%F-%H-%M-%S").flv