This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

PROCESSOR-SDK-AM57X: drmOpenDevice error 13 when not running as root

Part Number: PROCESSOR-SDK-AM57X


Hello,

When running the following gst-launch command to "play" a video as root, everything seems to process fine based on the plethora of debug prints I added to the code.

gst-launch-1.0 filesrc location=/path/to/video.mp4 ! qtdemux name=demux demux.video_0 ! queue ! h264parse ! ducatih264dec ! queue ! fakesink

However, if I run the same command as another user (not root), it quickly errors out with the following messages:

ERROR: Failed OmapDrm_FD > 0 error val -7

ERROR: Pipeline doesn't want to pause.

Looking further up in the debug prints, I noticed that the drmOpenDevice calls for /dev/dri/card0 and /dev/dri/card1 both failed with an error 13 (permission denied).

So my question is: is it possible to successfully play a video on a non-root account or will videos only play with root permissions?

Thanks.