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.
Solved! Go to Solution.
My solution:
chmod u+s /usr/bin/gst-launch-1.0
After that the gstreamer pipeline works without sudo
My solution:
chmod u+s /usr/bin/gst-launch-1.0
After that the gstreamer pipeline works without sudo
Good!