Code:
usr@cmptr:~/screencasts$ ffmpeg -f alsa -i pulse -f x11grab -r 30 -s 1680x1050 -i :0.0 -acodec flac -vcodec libx264 -vpre lossless_ultrafast -threads 0 output03.mkv
FFmpeg version SVN-r22170, Copyright (c) 2000-2010 the FFmpeg developers
built on Mar 3 2010 08:46:02 with gcc 4.4.1
configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-pthreads --enable-libfaac --enable-libfaad --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libx264 --enable-libxvid --enable-x11grab
libavutil 50. 9. 0 / 50. 9. 0
libavcodec 52.55. 0 / 52.55. 0
libavformat 52.54. 0 / 52.54. 0
libavdevice 52. 2. 0 / 52. 2. 0
libswscale 0.10. 0 / 0.10. 0
libpostproc 51. 2. 0 / 51. 2. 0
[alsa @ 0x2bce3c0]capture with some ALSA plugins, especially dsnoop, may hang.
[alsa @ 0x2bce3c0]Estimating duration from bitrate, this may be inaccurate
Input #0, alsa, from 'pulse':
Duration: N/A, start: 1267689871.428564, bitrate: N/A
Stream #0.0: Audio: pcm_s16le, 44100 Hz, 1 channels, s16, 705 kb/s
[x11grab @ 0x2bedad0]device: :0.0 -> display: :0.0 x: 0 y: 0 width: 1680 height: 1050
[x11grab @ 0x2bedad0]shared memory extension found
[x11grab @ 0x2bedad0]Estimating duration from bitrate, this may be inaccurate
Input #1, x11grab, from ':0.0':
Duration: N/A, start: 1267689871.649909, bitrate: 1693440 kb/s
Stream #1.0: Video: rawvideo, bgra, 1680x1050, 1693440 kb/s, 30 tbr, 1000k tbn, 30 tbc
[libx264 @ 0x2bfcb90]using cpu capabilities: MMX2 SSE2Fast FastShuffle SSEMisalign LZCNT
[libx264 @ 0x2bfcb90]profile High 4:4:4 Predictive, level 4.0
Output #0, matroska, to 'output03.mkv':
Metadata:
encoder : Lavf52.54.0
Stream #0.0: Video: libx264, yuv420p, 1680x1050, q=10-51, 200 kb/s, 1k tbn, 30 tbc
Stream #0.1: Audio: flac, 44100 Hz, 1 channels, s16, 64 kb/s
Stream mapping:
Stream #1.0 -> #0.0
Stream #0.0 -> #0.1
Press [q] to stop encoding
frame= 883 fps= 24 q=-1.0 Lsize= 24540kB time=36.78 bitrate=5465.8kbits/s dup=0 drop=18
video:24527kB audio:4kB global headers:0kB muxing overhead 0.037449%
[libx264 @ 0x2bfcb90]frame I:4 Avg QP: 0.00 size:802543
[libx264 @ 0x2bfcb90]frame P:879 Avg QP: 0.00 size: 24920
[libx264 @ 0x2bfcb90]mb I I16..4: 32.8% 0.0% 67.2%
[libx264 @ 0x2bfcb90]mb P I16..4: 10.1% 0.0% 0.0% P16..4: 1.4% 0.0% 0.0% 0.0% 0.0% skip:88.5%
[libx264 @ 0x2bfcb90]coded y,uvDC,uvAC intra: 23.8% 20.4% 20.3% inter: 1.2% 1.3% 1.3%
[libx264 @ 0x2bfcb90]i16 v,h,dc,p: 87% 13% 0% 0%
[libx264 @ 0x2bfcb90]i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 36% 3% 2% 29% 2% 2% 1% 2%
[libx264 @ 0x2bfcb90]kb/s:6826.21
And here's what I got in the terminal when I played the resulting video in vlc:
Bookmarks