[FFmpeg-user] Pass Xvfb directly to ffmpeg

Carl Eugen Hoyos ceffmpeg at gmail.com
Tue Jan 9 07:39:50 EET 2018


2018-01-08 15:58 GMT+01:00 mario90yxz <mario.90yxz at gmail.com>:
> I'm trying to pass Xvfb buffor directly to ffmpeg inside Docker. This is
> approach give me really big performance benefits.
>
> This is how I'm doing it:
>
> Xvfb write the screen output:
> `sudo Xvfb $DISPLAY -ac -screen 0 1680x900x24 -fbdir /tmp/screen/test.xwd >
> /dev/null 2>&1 &`
>
> ffmpeg read command:
>
> ffmpeg -hide_banner -loglevel debug -loop 1 ' \
>     '-re -i /tmp/screen/test.xwd ' \
>     '-f alsa -i default -strict -2 -ac 2 -preset ultrafast -f ' \
>     '-c:av copy ' \
>     'output_file.mkv'

The command line looks strange to me but in any case:
Complete, uncut console output missing, please remove
-hide_banner.

Carl Eugen


More information about the ffmpeg-user mailing list