2013-07-27

Raw Screen Capture

To capture the raw screen, for example: (capture rectangle from (170,8) with width and height (760x650))

ffmpeg -f alsa -i pulse -f x11grab -r 25 -s 760x650 -i :0.0+170,8 -acodec pcm_s16le  -vcodec libx264 -vpre lossless_ultrafast -threads 0 output.mov


To cut and compress, for example: (start from second 2 for a duration of 03:26)

ffmpeg -i output.mov -ss 00:00:02 -t 00:03:26 output.mp4