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

Anton Khirnov anton at khirnov.net
Sat Jan 23 17:03:54 EET 2021


Quoting Marton Balint (2021-01-20 00:40:30)
> 
> 
> On Tue, 19 Jan 2021, Anton Khirnov wrote:
> 
> > 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.
> 
> Decklink is heavily used for both input and output.

But does anyone use anything else than ffmpeg.c for that?

The question here is not whether this functionality should exist at all,
but whether libavdevice/libavformat is the right place for it.

-- 
Anton Khirnov


More information about the ffmpeg-devel mailing list