Gstreamer pipeline only works with sudo

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Gstreamer pipeline only works with sudo

Jump to solution
1,315 Views
MicMoba
Contributor V

Hi,

my GStreamer pipeline works only with sudo. The reason is that the vpudec plugin could not initialized.

The reason why this happens is that the VPU devices are owned by root. I added the current user to a new group and changed the group of the VPU devices to the new group then I changed the permission of the group to read and write. (https://stackoverflow.com/questions/65618288/gstreamer-pipeline-only-works-with-sudo )

# change the VPU devices group to a group called video
    sudo chgrp video /dev/mxc_*
    sudo chgrp video /dev/ion
# grant read and write permissions to the group
    sudo chmod 660 /dev/mxc_*
    sudo chmod 660 /dev/ion

This works for my Yocto-Dunfell. But now I am using the Yocto-Kirkstone and I am missing the /dev/ion device. To change group and read write permissions only for the mxc_* devices does not solve the problem. Does anybody know what the /dev/ion device is and if it changed or renamed?

 

Thanks

 

I found that ION is an imxdma allocator that is ported from Android. Now the dma-heap allocator should be used. There is also a directory called dma_heap in /dev. I tried to set this also to group video with read and write permissions but without success.

0 Kudos
Reply
1 Solution
1,300 Views
MicMoba
Contributor V

My solution:

chmod u+s /usr/bin/gst-launch-1.0

After that the gstreamer pipeline works without sudo

 

View solution in original post

0 Kudos
Reply
2 Replies
1,301 Views
MicMoba
Contributor V

My solution:

chmod u+s /usr/bin/gst-launch-1.0

After that the gstreamer pipeline works without sudo

 

0 Kudos
Reply
1,294 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Good!

0 Kudos
Reply