[FFmpeg-user] How to grab x11 screen

jd1008 jd1008 at gmail.com
Mon Jan 26 18:27:54 CET 2015


On 01/26/2015 12:29 AM, Moritz Barsnick wrote:
> On Sun, Jan 25, 2015 at 22:17:39 -0700, jd1008 wrote:
>> Now that I have x11grab working, how do I add to it the audio
>> that is coming from the speakers or the audio driver?
> ffmpeg supports quite a few audio sources. On Linux, alsa and
> pulseaudio are the most likely candidates.
>
> Check
> https://www.ffmpeg.org/ffmpeg-devices.html
>
> With pulseaudio, you can redirect what is going to your speakers (even
> from just a single program) to a separate stream, which you would then
> use as input to ffmpeg. You'll need to google for that separately
> though. ;-)
>
> Moritz

Tried to list devices by the command provided on the web link you provided:

$ ffmpeg -f avfoundation -list_devices true -i ""
ffmpeg version N-51556-ge278500 Copyright (c) 2000-2013 the FFmpeg 
developers
   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
   libavutil      52. 24.100 / 52. 24.100
   libavcodec     55.  2.100 / 55.  2.100
   libavformat    55.  1.100 / 55.  1.100
   libavdevice    55.  0.100 / 55.  0.100
   libavfilter     3. 49.100 /  3. 49.100
   libswscale      2.  2.100 /  2.  2.100
   libswresample   0. 17.102 /  0. 17.102
   libpostproc    52.  2.100 / 52.  2.100
Could not find option 'list_devices' in any of the FFmpeg subsystems 
(codec, format, scaler, resampler contexts)
Unrecognized option 'list_devices'.
Error splitting the argument list: Option not found

My ffmpeg packages are:
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-devel-2.4.6-1.fc21.x86_64
ffmpeg-2.4.6-1.fc21.x86_64



More information about the ffmpeg-user mailing list