embear-engineering / drm-framebuffer

A simple application which can be used to test a Linux DRM device
GNU General Public License v3.0
55 stars 21 forks source link

Could not get master role for DRM #4

Closed spiral009 closed 1 year ago

spiral009 commented 1 year ago
.../home/drm-framebuffer # dd if=/dev/urandom | ./drm-framebuffer -d /dev/dri/card0 -c DSI-1
Could not get master role for DRM.

and How to use ffmpeg? To get image or videos off of a drm based device such as my phone

eichenberger commented 1 year ago

Hi @ulist

Most likely the error message you see comes because there is something else already using /dev/dri/card0 (e.g. your Desktop environment). Please note this tool is meant for testing graphics integrations and not as a production-ready tool. For doing something like mpeg to drm/kms you should better have a look at something like gstreamer and its kmssink. This tool would be way too slow and inefficient to stream videos.