High quality screen capture with avconv

From MyLabWiki
Revision as of 14:36, 21 April 2013 by Alex (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, 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