[FFmpeg-devel] [PATCH] libavdevice: Add KMS/DRM output device

Anton Khirnov anton at khirnov.net
Tue Jan 19 12:44:22 EET 2021


Quoting Mark Thompson (2021-01-19 00:37:09)
> On 16/01/2021 22:12, Nicolas Caramelli wrote:
> > This patch adds KMS/DRM output device for rendering a video stream
> > using KMS/DRM dumb buffer.
> > The proposed implementation is very basic, only bgr0 pixel format is
> > currently supported (the most common format with KMS/DRM).
> > To enable this output device you need to configure FFmpeg with --enable-libdrm.
> > Example: ffmpeg -re -i INPUT -pix_fmt bgr0 -f kmsdumb /dev/dri/card0
> 
> If you want to render things to a normal display device why not use a normal video player?  Or even ffplay?
> 
> IMO something like this would be of more value as a simple video player example with the documentation rather than including it as weirdly constrained library code which will see very little use.
> 
> (Note that I would argue against adding more general display output devices which are already present, like fb and xv, because they are of essentially no value to libavdevice users.  Removing legacy code is harder, though.)

+1

IMO libavdevice output devices are worse than useless and should all be
removed. Libavformat API is barely passable for input, but it really is
NOT something you should use to drive outputs.

-- 
Anton Khirnov


More information about the ffmpeg-devel mailing list