Gstreamer pipeline only works with sudo

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Gstreamer pipeline only works with sudo

ソリューションへジャンプ
1,318件の閲覧回数
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.

ラベル(1)
0 件の賞賛
返信
1 解決策
1,303件の閲覧回数
MicMoba
Contributor V

My solution:

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

After that the gstreamer pipeline works without sudo

 

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
1,304件の閲覧回数
MicMoba
Contributor V

My solution:

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

After that the gstreamer pipeline works without sudo

 

0 件の賞賛
返信
1,297件の閲覧回数
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Good!

0 件の賞賛
返信