This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM335x EGLFS gstreamer video extremely slow

Hello,

I've just build a new system for Beaglebone Black with Yocto, meta-ti and meta-qt5.
SGX drivers are loaded, Qt5 GLES2 examples are running fine with -platform eglfs.
The only problem is that video files are extremely slow in eglfs (under 1 fps). I've opened some .avi file in Media Player Example from Qt and ran it with GST_DEBUG=2 environment variable.

Here is the output:

xcb_connection_has_error() returned true

0:00:11.039354959 670 0x4be00 WARN pulse pulsesink.c:615:gst_pulseringbuffer_open_device:<audiosink-actual-sink-pulse> error: Failed to connect: Connection refused

0:00:11.071349168 670 0x4be00 WARN basesrc gstbasesrc.c:3489:gst_base_src_start_complete:<source> pad not activated yet

0:00:11.077873501 670 0x4be00 WARN basesrc gstbasesrc.c:3489:gst_base_src_start_complete:<source> pad not activated yet

0:00:11.159736793 670 0x1c6290 WARN alsa conf.c:4817:snd_config_expand: alsalib error: Unknown parameters {AES0 0x02 AES1 0x82 AES2 0x00 AES3 0x02}

0:00:11.160655293 670 0x1c6290 WARN alsa pcm.c:2450:snd_pcm_open_noupdate: alsalib error: Unknown PCM default:{AES0 0x02 AES1 0x82 AES2 0x00 AES3 0x02}

0:00:11.330111876 670 0xb1512ac0 ERROR h264parse gsth264parse.c:2444:gst_h264_parse_set_caps: video/x-h264 caps with codec_data but no stream-format=avc

0:00:15.296070960 670 0xb1705830 WARN basesink gstbasesink.c:2854:gst_base_sink_is_too_late:<qgstvideorenderersink0> warning: A lot of buffers are being dropped.

0:00:15.296832168 670 0xb1705830 WARN basesink gstbasesink.c:2854:gst_base_sink_is_too_late:<qgstvideorenderersink0> warning: There may be a timestamping problem, or this computer is too slow.

Warning: "A lot of buffers are being dropped."

Sound is playing fine. All GStreamer1.0 packages are installed. Any ideas how to fix tis issue or playing video is not supported in EGLFS?

gfx_check.sh output:

WSEGL settings
[default]
WindowSystem=libpvrDRMWSEGL.so
DisableHWTQTextureUpload=1
DefaultPixelFormat=RGB565
------
ARM CPU information
processor    : 0
model name    : ARMv7 Processor rev 2 (v7l)
BogoMIPS    : 298.84
Features    : half thumb fastmult vfp edsp neon vfpv3 tls vfpd32
CPU implementer    : 0x41
CPU architecture: 7
CPU variant    : 0x3
CPU part    : 0xc08
CPU revision    : 2

Hardware    : Generic AM33XX (Flattened Device Tree)
Revision    : 0000
Serial        : 0000000000000000
------
SGX driver information
Version SGX_DDK sgxddk MAIN@3699939 (release) omap_linux
System Version String: SGX revision = 125
------
Framebuffer settings

mode "1280x720"
    geometry 1280 720 1280 720 16
    timings 0 0 0 0 0 0 0
    accel true
    rgba 5/11,6/5,5/0,0/0
endmode

Frame buffer device information:
    Name        :
    Address     : 0x9e900000
    Size        : 1843200
    Type        : PACKED PIXELS
    Visual      : TRUECOLOR
    XPanStep    : 1
    YPanStep    : 1
    YWrapStep   : 0
    LineLength  : 2560
    Accelerator : No
------
Rotation settings
0
------
Kernel Module information
Module                  Size  Used by
bluetooth             328754  4
bc_example              7326  0
snd_usb_audio         139564  0
snd_hwdep               6043  1 snd_usb_audio
snd_usbmidi_lib        20376  1 snd_usb_audio
snd_rawmidi            22968  1 snd_usbmidi_lib
usbtouchscreen          5791  0
usbhid                 20953  0
musb_dsps               8235  0
musb_hdrc              42682  1 musb_dsps
usbcore               194528  5 snd_usb_audio,musb_hdrc,usbtouchscreen,snd_usbmidi_lib,usbhid
pru_rproc              11646  0
pruss_intc              7163  1 pru_rproc
ecb                     1909  0
sha256_generic          9503  0
hmac                    2735  0
md5                     1897  0
sha1_generic            2557  0
snd_soc_simple_card     7648  0
sha1_arm_neon           6261  0
sha1_arm                3862  1 sha1_arm_neon
wkup_m3_ipc             7651  0
pvrsrvkm              403200  1 bc_example
wkup_m3_rproc           3599  1
pruss                  10892  1 pru_rproc
omap_aes_driver        19163  0
omap_sham              21513  0
remoteproc             26989  4 pruss,wkup_m3_rproc,pru_rproc,wkup_m3_ipc
virtio                  7678  1 remoteproc
virtio_ring            12175  1 remoteproc
omap_rng                4482  0
rng_core                7685  1 omap_rng
musb_am335x             1426  0
omap_wdt                4634  0
------
Boot settings
console=ttyO0,115200n8 consoleblank=0 root=PARTUUID=ac45843e-02 rw rootfstype=ext4 rootwait
------
Linux Kernel version
Linux beaglebone 4.4.23-g4cd9d100e6 #2 PREEMPT Thu Oct 20 22:23:28 CEST 2016 armv7l armv7l armv7l GNU/Linux

Thanks,

Como