Gstreamer kmssink under system user. " Could not open DRM module"

Nicolas Dufresne nicolas at ndufresne.ca
Mon Sep 23 18:45:06 UTC 2019


Le lundi 23 septembre 2019 à 16:08 +0000, Daniel Rossi a écrit :
> I'm trying to run gstreamer under a system user in systemd. This command explains the situation. When I try to run it in a user setup to run this service I get a kmssink error.
> I am creating a user , in the debian package, which looks like
> serviceuser:x:999:995::/nonexistent:/usr/sbin/nologin
> sudo -u serviceuser gst-launch-1.0 playbin video-sink=kmssink uri=srt://:8888
> Setting pipeline to PAUSED ...
> ERROR: Pipeline doesn't want to pause.
> ERROR: from element /GstKMSSink:kmssink0: Could not open DRM module (NULL)
> Additional debug info:
> gstkmssink.c(836): gst_kms_sink_start (): /GstKMSSink:kmssink0:
> reason: No such file or directory (2)
> Setting pipeline to NULL ...
> Freeing pipeline ...
> Any ideas ?

To use kmssink you need appropriate right to access /dev/dri/carX
(usually card0), and a known card need to exist on your system. Check
that you have met the preconditions. For more details on the error, try
settintg the env GST_DEBUG=kmssink:7

> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20190923/72051606/attachment.sig>


More information about the gstreamer-devel mailing list