Skip to content

Instantly share code, notes, and snippets.

@denysonique
Created October 10, 2013 18:10
Show Gist options
  • Save denysonique/c30effb4b38b399cbc2b to your computer and use it in GitHub Desktop.
Save denysonique/c30effb4b38b399cbc2b to your computer and use it in GitHub Desktop.
dennis@thinkpad ~ $ ffmpeg -f x11grab -r 30 -s 1280x800 -i :0 -vcodec libx264 -preset ultrafast -crf 0 -threads 0 -y /tmp/video.mkv
ffmpeg version 1.2.3 Copyright (c) 2000-2013 the FFmpeg developers
built on Oct 10 2013 18:20:29 with gcc 4.7.3 (Gentoo 4.7.3-r1 p1.3, pie-0.5.5)
configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-march=native -O2 -pipe' --extra-cflags='-march=native -O2 -pipe' --extra-cxxflags='-march=native -O2 -pipe' --disable-static --enable-gpl --enable-postproc --enable-avfilter --enable-avresample --disable-stripping --enable-version3 --disable-indev=v4l2 --disable-indev=oss --disable-indev=jack --disable-outdev=oss --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-doc --disable-gnutls --enable-hardcoded-tables --enable-iconv --disable-network --disable-openssl --enable-ffplay --disable-vaapi --disable-vdpau --enable-zlib --enable-libvo-aacenc --disable-libvo-amrwbenc --enable-libmp3lame --disable-libfdk-aac --disable-libaacplus --disable-libfaac --disable-libtheora --disable-libtwolame --enable-libx264 --enable-libxvid --disable-libcdio --disable-libiec61883 --disable-libdc1394 --di libavutil 52. 18.100 / 52. 18.100
libavcodec 54. 92.100 / 54. 92.100
libavformat 54. 63.104 / 54. 63.104
libavdevice 54. 3.103 / 54. 3.103
libavfilter 3. 42.103 / 3. 42.103
libswscale 2. 2.100 / 2. 2.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 2.100 / 52. 2.100
[x11grab @ 0x18e3020] device: :0 -> display: :0 x: 0 y: 0 width: 1280 height: 800
[x11grab @ 0x18e3020] shared memory extension found
[x11grab @ 0x18e3020] Estimating duration from bitrate, this may be inaccurate
Input #0, x11grab, from ':0':
Duration: N/A, start: 1381428589.351574, bitrate: 983040 kb/s
Stream #0:0: Video: rawvideo (BGR[0] / 0x524742), bgr0, 1280x800, 983040 kb/s, 30 tbr, 1000k tbn, 30 tbc
[libx264 @ 0x18fcbf0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
[libx264 @ 0x18fcbf0] profile High 4:4:4 Predictive, level 3.2, 4:4:4 8-bit
[libx264 @ 0x18fcbf0] 64 - core 138 - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=0 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=0 chroma_qp_offset=0 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25 scenecut=0 intra_refresh=0 rc=cqp mbtree=0 qp=0
Output #0, matroska, to '/tmp/video.mkv':
Metadata:
encoder : Lavf54.63.104
Stream #0:0: Video: h264 (H264 / 0x34363248), yuv444p, 1280x800, q=-1--1, 1k tbn, 30 tbc
Stream mapping:
Stream #0:0 -> #0:0 (rawvideo -> libx264)
Press [q] to stop, [?] for help
frame= 145 fps= 12 q=-1.0 Lsize= 21183kB time=00:00:04.83 bitrate=35905.6kbits/s
video:21181kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.007644%
[libx264 @ 0x18fcbf0] frame I:1 Avg QP: 0.00 size:147427
[libx264 @ 0x18fcbf0] frame P:144 Avg QP: 0.00 size:149596
[libx264 @ 0x18fcbf0] mb I I16..4: 100.0% 0.0% 0.0%
[libx264 @ 0x18fcbf0] mb P I16..4: 37.1% 0.0% 0.0% P16..4: 3.1% 0.0% 0.0% 0.0% 0.0% skip:59.7%
[libx264 @ 0x18fcbf0] coded y,u,v intra: 24.6% 24.0% 24.1% inter: 4.3% 4.2% 4.2%
[libx264 @ 0x18fcbf0] i16 v,h,dc,p: 84% 16% 0% 0%
[libx264 @ 0x18fcbf0] kb/s:35899.47
Received signal 2: terminating.
dennis@thinkpad ~ $ mpv /tmp/video.mkv
mpv: Symbol `av_pix_fmt_descriptors' has different size in shared object, consider re-linking
Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 14: reading configurations from ~/.fonts.conf is deprecated.
Playing /tmp/video.mkv.
Detected file format: Matroska
Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 14: reading configurations from ~/.fonts.conf is deprecated.
Clip info:
ENCODER: Lavf54.63.104
[stream] Video (+) --vid=0 (h264)
X11 error: GLXBadFBConfig
[gl] Could not create GLX context!
Selected video codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 [lavc:h264]
Audio: no audio
VO: [opengl] 1280x800 => 1280x800 444p
V: 00:00:03 / 00:00:04 (69%)
Exiting... (Quit)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment