Gstreamer pipeline only works with sudo

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Gstreamer pipeline only works with sudo

跳至解决方案
2,294 次查看
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 项奖励
回复
1 解答
2,279 次查看
MicMoba
Contributor V

My solution:

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

After that the gstreamer pipeline works without sudo

 

在原帖中查看解决方案

0 项奖励
回复
2 回复数
2,280 次查看
MicMoba
Contributor V

My solution:

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

After that the gstreamer pipeline works without sudo

 

0 项奖励
回复
2,273 次查看
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Good!

0 项奖励
回复