[FFmpeg-devel] [PATCH] libavdevice: Add KMS/DRM output device
Mark Thompson
sw at jkqxz.net
Tue Jan 19 01:37:09 EET 2021
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.)
- Mark
More information about the ffmpeg-devel
mailing list