1
2
3
4
5
6
7
8
#!/bin/bash
ffmpeg -f x11grab -r 25 -s 1200x840 -i :$1.0+0,525 -vcodec libx264 \
-vpre lossless_ultrafast -threads 0 $2.mkv -t "$3"
ffmpeg -i $2.mkv -vcodec libx264 -b 500k -vpre hq \
-acodec libfaac -ab 112k -ac 2 -threads 0 -f flv $2.flv
rm -f $2.mkv
exit 0