Hi Ronan,
Thank you for your reply and suggestion. I tried solution 3 with udev, it has worked fine.
So, I implemented the recipe directly in my meta-layer adding these two recipes:
agl-dirver_%.bbappend
inherit extrausers EXTRA_USERS_PARAMS = " usermod -a -G display agl-driver;"
gst-rules_1.0.bb
SUMMARY = "Configuration files for running GStreamer acceleration hardware" LICENSE = "CLOSED" inherit allarch agl-graphical do_configure[noexec] = "1" do_compile[noexec] = "1" do_install() { # Add a rule to ensure the 'display' user has permissions to # open the graphics device install -d ${D}${sysconfdir}/udev/rules.d cat >${D}${sysconfdir}/udev/rules.d/73-gst.rules <<'EOF' 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}="*" EOF }
The video playback now consumes the acceleration hardware correctly and does not consume excessive CPU resources.
Although it seems to work fine initially, after some time, I detect strange effects on the screen such as blinking, ghost-frame, vertical stripe overlapped to image, etc.
When I change the URI the problem disappears, and the effects before described do not show or it shows immediately as the video starts. (all my videos are in HLS format m3u8 and I've already installed the GStreamer library to support it).
h3ulcb:~# gst-inspect-1.0 | grep hls
libav: avmux_hls: libav Apple HTTP Live Streaming muxer
typefindfunctions: application/x-hls: m3u8
hls: hlssink2: HTTP Live Streaming sink
hls: hlssink: HTTP Live Streaming sink
hls: hlsdemux: HLS Demuxer
h3ulcb:~# gst-inspect-1.0 | grep dash
libav: avmux_dash: libav DASH Muxer muxer
dashdemux: dashdemux: DASH Demuxer
typefindfunctions: application/dash+xml: mpd, MPD
In the following section, I share a dump from the journal:
ANOM_ABEND auid=4294967295 uid=1001 gid=1001 ses=4294967295 subj=User::App::sportitalia pid=1115 comm="QSGRenderThread" exe="/var/local/lib/afm/applications/sportitalia/bin/sportitalia" sig=7 res=1
Jun 06 09:36:15 h3ulcb kernel: audit: type=1701 audit(1654500975.151:5): auid=4294967295 uid=1001 gid=1001 ses=4294967295 subj=User::App::sportitalia pid=1115 comm="QSGRenderThread" exe="/var/local/lib/afm/applications/sportitalia/bin/sportitalia" sig=7 res=1
ANOM_ABEND auid=4294967295 uid=1001 gid=1001 ses=4294967295 subj=User::App::mediaplayer pid=844 comm="QSGRenderThread" exe="/var/local/lib/afm/applications/mediaplayer/bin/mediaplayer" sig=7 res=1
Jun 06 09:38:46 h3ulcb kernel: audit: type=1701 audit(1654501126.720:6): auid=4294967295 uid=1001 gid=1001 ses=4294967295 subj=User::App::mediaplayer pid=844 comm="QSGRenderThread" exe="/var/local/lib/afm/applications/mediaplayer/bin/mediaplayer" sig=7 res=1
Jun 06 09:38:46 h3ulcb pipewire[546]: 84 events suppressed
Jun 06 09:38:46 h3ulcb pipewire[546]: (alsa_output.platform-sound_0.pro-output-0-40) XRun! rate:1024/48000 count:4 time:350222433 delay:125 max:21128
Jun 06 09:38:46 h3ulcb systemd[1]: Started Process Core Dump (PID 1676/UID 0).
Jun 06 09:38:48 h3ulcb pipewire[546]: 93 events suppressed
Jun 06 09:38:48 h3ulcb pipewire[546]: (mediaplayer-149) client too slow! rate:1024/48000 pos:12828672 status:triggered
Jun 06 09:38:50 h3ulcb pipewire[546]: 93 events suppressed
Jun 06 09:38:50 h3ulcb pipewire[546]: (mediaplayer-149) client too slow! rate:1024/48000 pos:12924928 status:triggered
Jun 06 09:38:52 h3ulcb pipewire[546]: 93 events suppressed
Jun 06 09:38:52 h3ulcb pipewire[546]: (mediaplayer-149) client too slow! rate:1024/48000 pos:13021184 status:triggered
Jun 06 09:38:54 h3ulcb pipewire[546]: 93 events suppressed
Jun 06 09:38:54 h3ulcb pipewire[546]: (mediaplayer-149) client too slow! rate:1024/48000 pos:13117440 status:triggered
Jun 06 09:38:56 h3ulcb pipewire[546]: 93 events suppressed
Jun 06 09:38:56 h3ulcb pipewire[546]: (mediaplayer-149) client too slow! rate:1024/48000 pos:13213696 status:triggered
Jun 06 09:38:58 h3ulcb pipewire[546]: 93 events suppressed
Jun 06 09:38:58 h3ulcb pipewire[546]: (mediaplayer-149) client too slow! rate:1024/48000 pos:13309952 status:triggered
Jun 06 09:39:08 h3ulcb pipewire[546]: (mediaplayer-149) client too slow! rate:1024/48000 pos:13791232 status:triggered
[ 372.845621] close MMD kernelheap ERROR
[ 372.849664] close MMD kernelheap ERROR
[ 372.853774] close MMD kernelheap ERROR
[ 372.857863] close MMD kernelheap ERROR
[ 372.861980] close MMD kernelheap ERROR
[ 372.866474] close MMD carveout ERROR
[ 372.870072] close MMD kernelheap ERROR
[ 372.873853] close MMD kernelheap ERROR
[ 372.877647] close MMD kernelheap ERROR
[ 372.881692] close MMD kernelheap ERROR
[ 372.887022] close MMD kernelheap ERROR
[ 372.891400] close MMD kernelheap ERROR
[ 372.896100] close MMD kernelheap ERROR
[ 372.900889] close MMD kernelheap ERROR
[ 372.907110] close MMD kernelheap ERROR
Jun 06 09:39:09 h3ulcb systemd-coredump[1678]: Process 844 (mediaplayer) of user 1001 dumped core.
Jun 06 09:39:09 h3ulcb systemd[1]: systemd-coredump@1-1676-0.service: Succeeded.
Jun 06 09:39:09 h3ulcb systemd-coredump[1392]: Process 1115 (sportitalia) of user 1001 dumped core.
Jun 06 09:39:09 h3ulcb kernel: close MMD kernelheap ERROR
Jun 06 09:39:09 h3ulcb kernel: close MMD kernelheap ERROR
Jun 06 09:39:09 h3ulcb kernel: close MMD kernelheap ERROR
Jun 06 09:39:09 h3ulcb kernel: close MMD kernelheap ERROR
Jun 06 09:39:09 h3ulcb kernel: close MMD kernelheap ERROR
Jun 06 09:39:09 h3ulcb kernel: close MMD carveout ERROR
Jun 06 09:39:09 h3ulcb kernel: close MMD kernelheap ERROR
Jun 06 09:39:09 h3ulcb systemd[1]: systemd-coredump@0-1391-0.service: Succeeded.
Jun 06 09:39:09 h3ulcb kernel: close MMD kernelheap ERROR
Jun 06 09:39:09 h3ulcb kernel: close MMD kernelheap ERROR
Jun 06 09:39:09 h3ulcb kernel: close MMD kernelheap ERROR
Jun 06 09:39:09 h3ulcb kernel: close MMD kernelheap ERROR
Jun 06 09:39:09 h3ulcb kernel: close MMD kernelheap ERROR
Jun 06 09:39:09 h3ulcb kernel: close MMD kernelheap ERROR
Jun 06 09:39:09 h3ulcb kernel: close MMD kernelheap ERROR
Jun 06 09:39:09 h3ulcb dbus-daemon[540]: [system] Rejected receive message, 1 matched rules; type="signal", sender="(unset)" ((bus)) interface="org.freedesktop.DBus" member="NameLost" error name="(unset)" requested_reply="0" destination=":1.28" (uid=1001 pid=844 comm="/var/local/lib/afm/applications/mediaplayer/bin/me" label="User::App::mediaplayer") privilege="http://tizen.org/privilege/internal/dbus"
Jun 06 09:39:09 h3ulcb agl-compositor[652]: layout.c:824], return output layout from surface
Jun 06 09:39:09 h3ulcb agl-compositor[652]: Removed surface 0xaaaaf12ed550, app_id mediaplayer, role DESKTOP
Jun 06 09:39:09 h3ulcb kernel: close MMD kernelheap ERROR
Jun 06 09:39:09 h3ulcb systemd[1]: afm-appli-mediaplayer--0.1--main@1001.service: Succeeded.
The recurrent problems are:
- close MMD carveout ERROR;
- close MMD kernelheap ERROR;
- QSGRenderThread error;
Furthermore, to reproduce the issues, I share the links consumed in mine pipeline:
- https://di-j16ei4yq.vo.lswcdn.net/sportitalia/sihd.smil/playlist.m3u8
- http://mediapolisvod.rai.it/relinker/relinkerServlet.htm?cont=D4XXmqQcOyRRYkoTUnFyCQeeqqEEqualeeqqEEqual
In QML application I use the following structure:
"gst-pipeline: uri=http://mediapolisvod.rai.it/relinker/relinkerServlet.htm?cont=D4XXmqQcOyRRYkoTUnFyCQeeqqEEqualeeqqEEqual video-sink=qtvideosink audio-sink=\"pipewiresink stream-properties=p,media.role=Multimedia\""
Best Regards,
Francesco
Links:
You receive all messages sent to this group.
View/Reply Online (#9882) | Reply To Group | Reply To Sender | Mute This Topic | New Topic
Mute #koi | Mute #renesas
Your Subscription | Contact Group Owner | Unsubscribe [list-automotive-discussions82@xxxxxxxxxxx]