[FFmpeg-user] How to grab x11 screen
Lou
lou at lrcd.com
Mon Jan 26 05:17:32 CET 2015
On Sun, Jan 25, 2015, at 04:22 PM, jd1008 wrote:
> I tried
> $ ffmpeg -i :0 -vcodec webm -b:v 5000 -b:r 10 -g 300 -s 1920x1080
> /tmp/x11.webm
This is probably not a valid command. See:
https://ffmpeg.org/ffmpeg-devices.html#x11grab
> ffmpeg version N-51556-ge278500 Copyright (c) 2000-2013 the FFmpeg
> developers
This is old.
> built on Apr 4 2013 05:11:43 with gcc 4.6 (Debian 4.6.3-1)
> configuration: --prefix=/root/ffmpeg-static/32bit --arch=x86_32
> --extra-cflags='-m32 -I/root/ffmpeg-static/32bit/include -static'
> --extra-ldflags='-m32 -L/root/ffmpeg-static/32bit/lib -static'
> --extra-libs='-lxml2 -lexpat -lfreetype' --enable-static
> --disable-shared --disable-ffserver --disable-doc --enable-bzlib
> --enable-zlib --enable-postproc --enable-runtime-cpudetect
> --enable-libx264 --enable-gpl --enable-libtheora --enable-libvorbis
> --enable-libmp3lame --enable-gray --enable-libass --enable-libfreetype
> --enable-libopenjpeg --enable-libspeex --enable-libvo-aacenc
> --enable-libvo-amrwbenc --enable-version3 --enable-libvpx
Your build lacks --enable-x11grab. Again, refer to:
https://ffmpeg.org/ffmpeg-devices.html#x11grab
Alternatively you could install the required dependencies for grabbing
X11 via XCB then compile ffmpeg. For your distro libxcb-devel 1.4 or
newer should suffice.
> My installed ffmpeg packages are
> ffmpeg-devel-2.4.6-1.fc21.x86_64
> ffmpeg-compat-0.6.7-8.fc21.x86_64
> gstreamer-ffmpeg-0.10.13-14.fc21.x86_64
> ffmpeg-compat-devel-0.6.7-8.fc21.x86_64
> ffmpeg-libs-2.4.6-1.fc21.x86_64
> ffmpeg-2.4.6-1.fc21.x86_64
The ffmpeg binary you are executing is probably not the one provided by
ffmpeg-2.4.6-1.fc21.x86_64.
More information about the ffmpeg-user
mailing list