High quality screen capture with avconv

From OnnoWiki
Jump to navigation Jump to search
 avconv -f x11grab -r 25 -s 1280x720 -i :0.0+0,0 -vcodec libx264 -pre lossless_ultrafast -threads 0 video.mkv

Presets are now called .avpreset

When capturing with audio, we need to specify stream ID for the -pre option:

 avconv -f alsa -i pulse -f x11grab -r 25 -s 1280x720 -i :0.0+0,0 -acodec libfaac -vcodec libx264 -pre:0 lossless_ultrafast -threads 0 video.mkv

Note that on Mint 13 -acodec pcm_s16le gives trouble in MKV container.

Use -pre:0 lossless_slow when converting to .mov format.

If having problems with -acodec libfaac try omitting acodec altogether. It will then use libvorbis which is fine (just not lossless).

See also High quality screen capture with Ffmpeg