Re: GStreamer #koi #renesas

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Francesco,

I reproduce and resolve your issue on AGL koi.

Let me know if this solution is OK for you.

1) reproduce the issue

wget https://test-videos.co.uk/vids/bigbuckbunny/mp4/h264/360/Big_Buck_Bunny_360_10s_20MB.mp4

scp ./Big_Buck_Bunny_360_10s_20MB.mp4 h3:/media

ssh h3

su - agl-driver
export XDG_RUNTIME_DIR=/run/user/1001
gst-launch-1.0 filesrc location=/media/Big_Buck_Bunny_360_10s_20MB.mp4 ! qtdemux ! queue ! h264parse ! omxh264dec ! waylandsink

etting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.
WARNING: from element /GstPipeline:pipeline0/GstWaylandSink:waylandsink0: Could not initialise Wayland output
Additional debug info:
../git/ext/wayland/gstwaylandsink.c(399): gst_wayland_sink_find_display (): /GstPipeline:pipeline0/GstWaylandSink:waylandsink0: Failed to create GstWlDisplay: 'Failed to connect to the wayland display '(default)''
Setting pipeline to NULL ...
Freeing pipeline ...

If it is not your issue, do not hesitate to send me your command line to reproduce it.

2) solve the issue  in command line

ssh h3

 chsmack -a '*' /dev/rgnmm
 chsmack -a '*' /dev/uvcs
 chsmack -a '*' /dev/rgnmmbuf
 chsmack -a '*' /dev/vspm_if

 chmod 0666 /dev/rgnmm
 chmod 0666 /dev/uvcs
 chmod 0666 /dev/rgnmmbuf
 chmod 0666 /dev/vspm_if

usermod -a -G display agl-driver
 su - agl-driver
export XDG_RUNTIME_DIR=/run/user/1001
gst-launch-1.0 filesrc location=/media/Big_Buck_Bunny_360_10s_20MB.mp4 ! qtdemux ! queue ! h264parse ! omxh264dec ! waylandsink

3) solve with udev

vi /etc/udev/rules.d/73-gst.rules

KERNEL=="rgnmm", GROUP="display", MODE="0660", SECLABEL{smack}="*"
KERNEL=="uvcs", GROUP="display", MODE="0660", SECLABEL{smack}="*"
KERNEL=="rgnmmbuf", GROUP="display", MODE="0660", SECLABEL{smack}="*"
KERNEL=="vspm_if", GROUP="display", MODE="0660", SECLABEL{smack}="*"

(reboot)

ssh h3
su - agl-driver
export XDG_RUNTIME_DIR=/run/user/1001
gst-launch-1.0 filesrc location=/media/Big_Buck_Bunny_360_10s_20MB.mp4 ! qtdemux ! queue ! h264parse ! omxh264dec ! waylandsink

If this is not a solution for you, let me know.

This have been tested on the last AGL KOI.

Ronan Le Martret [IoT.bzh]

Le 27/05/2022 à 16:20, Francesco ARGENTIERI (KINETON) a écrit :
Hi everyone,

I have some updates regarding the issue posted some time ago. Currently, when an application runs as *agl-driver user* tries to use *hardware acceleration* by OMX library.
I get the same error:

|MMI open: Permission denied Mar 16 12:52:06 h3ulcb afbd-mediaplayer[2278]: ts:1647431526.952756 level:0x00001000 func:OmxrAllocateWorkBuffer_allocfunc(265) tid:3322 mes:error: mmngr fatal. -1 Mar 16 12:52:06 h3ulcb afbd-mediaplayer[2278]: ts:1647431526.952829 level:0x00100000 func:OmxrMeVideoVcmnInterface_AllocateBufferSuper(66) tid:3322 mes:Physical memory allocation error Mar 16 12:52:06 h3ulcb afbd-mediaplayer[2278]: ts:1647431526.952844 level:0x00100000 func:OmxrMeVideoVcmnInterfaceVdcmn_AllocateBuffer(814) tid:3322 mes:RuntimeError Mar 16 12:52:06 h3ulcb afbd-mediaplayer[2278]: ts:1647431526.952857 level:0x00010000 func:RegisterNewBufferToPort(361) tid:3322 mes: Mar 16 12:52:06 h3ulcb afbd-mediaplayer[2278]: ts:1647431526.952879 level:0x00010000 func:OmxrMcErrorHandler_Notify(221) tid:3322 mes:u32ErrorCode = H'80001001 Mar 16 12:52:06 h3ulcb afbd-mediaplayer[2278]: ts:1647431526.952933 level:0x00010000 func:OmxrMcApiProxy_AllocateBuffer(1049) tid:3317 mes:eError = H'80001001 Mar 16 12:52:06 h3ulcb afbd-mediaplayer[2278]: ts:1647431526.953004 level:0x00010000 func:OmxrMcApiProxy_GetParameter(756) tid:3317 mes:eError = H'8000100a Mar 16 12:52:06 h3ulcb afbd-mediaplayer[2278]: ts:1647431526.953047 level:0x00010000 func:OmxrMcApiProxy_GetParameter(756) tid:3317 mes:eError = H'8000100a Mar 16 12:52:07 h3ulcb afbd-mediaplayer[2278]: ts:1647431527.106209 level:0x00010000 func:OmxrMcApiProxy_GetParameter(756) tid:2278 mes:eError = H'8000100a Mar 16 12:52:07 h3ulcb afbd-mediaplayer[2278]: ts:1647431527.106403 level:0x00010000 func:OmxrMcApiProxy_GetParameter(756) tid:2278 mes:eError = H'8000100a Mar 16 12:52:07 h3ulcb afbd-mediaplayer[2278]: ts:1647431527.106478 level:0x00010000 func:OmxrMcApiProxy_GetParameter(756) tid:2278 mes:eError = H'8000100a Mar 16 12:52:07 h3ulcb afbd-mediaplayer[2278]: ts:1647431527.106524 level:0x00010000 func:OmxrMcApiProxy_GetParameter(756) tid:2278 mes:eError = H'8000100a Mar 16 12:52:07 h3ulcb afbd-mediaplayer[2278]: ts:1647431527.106638 level:0x00010000 func:OmxrMcApiProxy_GetParameter(756) tid:2278 mes:eError = H'8000100a Mar 16 12:52:07 h3ulcb afbd-mediaplayer[2278]: ts:1647431527.106683 level:0x00010000 func:OmxrMcApiProxy_GetParameter(756) tid:2278 mes:eError = H'8000100a Mar 16 12:52:07 h3ulcb afbd-mediaplayer[2278]: ts:1647431527.106723 level:0x00010000 func:OmxrMcApiProxy_GetParameter(756) tid:2278 mes:eError = H'8000100a Mar 16 12:52:07 h3ulcb afbd-mediaplayer[2278]: ts:1647431527.106766 level:0x00010000 func:OmxrMcApiProxy_GetParameter(756) tid:2278 mes:eError = H'8000100a Mar 16 12:52:07 h3ulcb afbd-mediaplayer[2278]: Error: "GStreamer encountered a general supporting library error." |

So if you try to run a GStreamer pipeline under *root* user the system works (also it works fine under /Weston-start/), then the CPU consumption is under 60%. Despite this, Now, I want access to consumes GStreamer-omx remaining agl-driver user thus each application which wants access to GStreamer-omx (acceleration hardware) is able to preserve the normal functionality (agl-compositor, pipewire, smack, binder, etc.) Any advice or suggestion is welcome.

Best regards, Francesco





-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#9872): https://lists.automotivelinux.org/g/agl-dev-community/message/9872
Mute This Topic: https://lists.automotivelinux.org/mt/89819987/2167316
Mute #koi:https://lists.automotivelinux.org/g/agl-dev-community/mutehashtag/koi
Mute #renesas:https://lists.automotivelinux.org/g/agl-dev-community/mutehashtag/renesas
Group Owner: agl-dev-community+owner@xxxxxxxxxxxxxxxxxxxxxxxxx
Unsubscribe: https://lists.automotivelinux.org/g/agl-dev-community/leave/4543822/2167316/883735764/xyzzy [list-automotive-discussions82@xxxxxxxxxxx]
-=-=-=-=-=-=-=-=-=-=-=-






[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux