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

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

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

Daniel Rossi
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 ?

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

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

Nicolas Dufresne-5
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
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (201 bytes) Download Attachment