
Here, the x264 codec with the fastest possible encoding speed is used. $ ffmpeg -f x11grab -video_size 1920x1080 -framerate 25 -i $DISPLAY -f alsa -i default -c:v libx264 -preset ultrafast -c:a aac screen.mp4

To take a screencast screen.mp4 with lossy encoding and with audio: Here, the Huffyuv codec is used, which is fast, but produces huge file sizes. $ ffmpeg -f x11grab -video_size 1920x1080 -framerate 25 -i $DISPLAY -c:v ffvhuff screen.mkv To take a screencast screen.mkv with lossless encoding and without audio: Where -video_size specifies the size of the area to capture. $ ffmpeg -f x11grab -video_size 1920x1080 -i $DISPLAY -vframes 1 screen.png See FFmpeg encoding wiki and ffmpeg(1) § EXAMPLES.įFmpeg includes the x11grab and ALSA virtual devices that enable capturing the entire user display and audio input.

However you may want to force the number of threads available by the parameter -threads number.

In libavfilter, a filter can have multiple inputs and multiple outputs. FILTERING INTRODUCTIONįiltering in FFmpeg is enabled through the libavfilter library. This document describes filters, sources, and sinks provided by the libavfilter library.

allrgb, allyuv, color, haldclutsrc, nullsrc, pal75bars, pal100bars, rgbtestsrc, smptebars, smptehdbars, testsrc, testsrc2, yuvtestsrcįfmpeg-filters - FFmpeg filters DESCRIPTION.OPTIONS FOR FILTERS WITH SEVERAL INPUTS.CHANGING OPTIONS AT RUNTIME WITH A COMMAND.
