RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - xchetah - 2017-08-12
(2017-08-11, 14:28)pdrobek Wrote: Can anyone tell me how to properly set "neon" flag to enable those SoC instructions while compile? I got message while compilation that my build-env should be build with neon flag when i --enable-optimizaton while kodi configuration
I tried compile libcedarjpeg but errors occurs
Code: cbkodi ~/kodi_stuff/libcedarjpeg-toms81 # make
CC main.c
In file included from jpeg.h:26:0,
from main.c:43:
../libvdpau-sunxi/EGL/eglplatform_fb.h:95:36: error: conflicting types for ‘EGLNativeWindowType’
typedef struct mali_native_window *EGLNativeWindowType;
^
In file included from ../libvdpau-sunxi/EGL/egl.h:36:0,
from cedarJpegLib.h:4,
from main.c:41:
../libvdpau-sunxi/EGL/eglplatform.h:42:26: note: previous declaration of ‘EGLNativeWindowType’ was here
typedef NativeWindowType EGLNativeWindowType;
^
In file included from jpeg.h:26:0,
from main.c:43:
../libvdpau-sunxi/EGL/eglplatform_fb.h:104:30: error: conflicting types for ‘NativeWindowType’
typedef EGLNativeWindowType NativeWindowType;
^
In file included from ../libvdpau-sunxi/EGL/egl.h:36:0,
from cedarJpegLib.h:4,
from main.c:41:
../libvdpau-sunxi/EGL/eglplatform.h:31:23: note: previous declaration of ‘NativeWindowType’ was here
typedef fbdev_window* NativeWindowType;
^
main.c: In function ‘decode_jpeg’:
main.c:150:62: warning: unused parameter ‘width’ [-Wunused-parameter]
static void decode_jpeg(struct cedarJpeg_handle *handle, int width, int height)
^
main.c:150:73: warning: unused parameter ‘height’ [-Wunused-parameter]
static void decode_jpeg(struct cedarJpeg_handle *handle, int width, int height)
^
main.c: At top level:
main.c:512:12: warning: ‘TestGLError’ defined but not used [-Wunused-function]
static int TestGLError(const char* pszLocation){
^
make: *** [Makefile:52: main.o] Błąd 1
which version of libcedarjpeg should i compile? Edit eglplatform_fb.h and comment line 95 and line 104
RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - pdrobek - 2017-08-12
@xchetach
Code: cbkodi ~/kodi_stuff/libcedarjpeg # make
CC src/main.c
src/main.c:44:20: fatal error: libyuv.h: No such file or directory
#include <libyuv.h>
@mosterta
I set like you said
Code: INFOPATH=/usr/share/info:/usr/share/gcc-data/armv7a-hardfloat-linux-gnueabi/4.9.4/info:/usr/share/binutils-data/armv7a-hardfloat-linux-gnueabi/2.25.1/info
VDPAU_DRIVER=sunxi
CONFIG_PROTECT=/usr/share/gnupg/qualified.txt
_=/usr/bin/env
but when i play sample big_buck_bunny_1080... i got
cbkodi ~/kodi_stuff/kodi_sources # ./kodi.bin
shared memfd open() failed: Function not implemented
shared memfd open() failed: Function not implemented
shared memfd open() failed: Function not implemented
shared memfd open() failed: Function not implemented
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
Failed to open VDPAU backend libvdpau_sunxi.so: cannot open shared object file: No such file or directory
with debug on screen i have 13-21 fps. Is that all what can cb2 do for me? How much fps should i expect after debug disable?
Does anyone know how to fix sooo bad sound quality in kodi. I guess something is wrong with alsa and sunxi-codec (soundcard) because only on headphone jack i could hear any poor quality sound
Thanks
RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - xchetah - 2017-08-12
(2017-08-12, 22:24)pdrobek Wrote: @xchetach
Code: cbkodi ~/kodi_stuff/libcedarjpeg # make
CC src/main.c
src/main.c:44:20: fatal error: libyuv.h: No such file or directory
#include <libyuv.h>
@mosterta
I set like you said
Code: INFOPATH=/usr/share/info:/usr/share/gcc-data/armv7a-hardfloat-linux-gnueabi/4.9.4/info:/usr/share/binutils-data/armv7a-hardfloat-linux-gnueabi/2.25.1/info
VDPAU_DRIVER=sunxi
CONFIG_PROTECT=/usr/share/gnupg/qualified.txt
_=/usr/bin/env
but when i play sample big_buck_bunny_1080... i got
cbkodi ~/kodi_stuff/kodi_sources # ./kodi.bin
shared memfd open() failed: Function not implemented
shared memfd open() failed: Function not implemented
shared memfd open() failed: Function not implemented
shared memfd open() failed: Function not implemented
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
Failed to open VDPAU backend libvdpau_sunxi.so: cannot open shared object file: No such file or directory
with debug on screen i have 13-21 fps. Is that all what can cb2 do for me? How much fps should i expect after debug disable?
Does anyone know how to fix sooo bad sound quality in kodi. I guess something is wrong with alsa and sunxi-codec (soundcard) because only on headphone jack i could hear any poor quality sound
Thanks You need to install libyuvCode: git clone https://chromium.googlesource.com/libyuv/libyuv
If libcedarjpeg installed successfully you need to recompile kodi so it can detect it and enable it.
About the fps it's just the GUI's fps , and since there's no heavy animations it's reading low that's OK.
For libvdpau error it's a bug in mosterta makefile , do the following :
Code: find /usr/ -name libvdpau_sunxi.so.1
This will give you the path the lib is installed in, then do the following:
Code: sudo ln -sf <lib path from above result> /usr/lib/libvdpau_sunxi.so
RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - mosterta - 2017-08-13
(2017-08-12, 22:24)pdrobek Wrote: @xchetach
Code: cbkodi ~/kodi_stuff/libcedarjpeg # make
CC src/main.c
src/main.c:44:20: fatal error: libyuv.h: No such file or directory
#include <libyuv.h>
@mosterta
I set like you said
Code: INFOPATH=/usr/share/info:/usr/share/gcc-data/armv7a-hardfloat-linux-gnueabi/4.9.4/info:/usr/share/binutils-data/armv7a-hardfloat-linux-gnueabi/2.25.1/info
VDPAU_DRIVER=sunxi
CONFIG_PROTECT=/usr/share/gnupg/qualified.txt
_=/usr/bin/env
but when i play sample big_buck_bunny_1080... i got
cbkodi ~/kodi_stuff/kodi_sources # ./kodi.bin
shared memfd open() failed: Function not implemented
shared memfd open() failed: Function not implemented
shared memfd open() failed: Function not implemented
shared memfd open() failed: Function not implemented
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
Failed to open VDPAU backend libvdpau_sunxi.so: cannot open shared object file: No such file or directory
with debug on screen i have 13-21 fps. Is that all what can cb2 do for me? How much fps should i expect after debug disable?
Does anyone know how to fix sooo bad sound quality in kodi. I guess something is wrong with alsa and sunxi-codec (soundcard) because only on headphone jack i could hear any poor quality sound
Thanks check that the following file exits:
/usr/lib/vdpau/libvdpau_sunxi.so
with hardware support you should be able to decode at least 60fps. I guess you are decoding in software right now.
regarding shared memfd open(): I don't know where this output comes from. But since your sound is poor (which should not be the case), it could be an error from audio. Which distribution are you using? which libraries have you compiled by yourself?
regarding the missing file libyuv.h: with newer version of libcedarjpeg there is a dependency to libyuv
https://chromium.googlesource.com/libyuv/libyuv/
you need to compile and install it before you compile libcedarjpeg
RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - pdrobek - 2017-08-14
(2017-08-13, 00:02)mosterta Wrote: (2017-08-12, 22:24)pdrobek Wrote: @xchetach
Code: cbkodi ~/kodi_stuff/libcedarjpeg # make
CC src/main.c
src/main.c:44:20: fatal error: libyuv.h: No such file or directory
#include <libyuv.h>
@mosterta
I set like you said
Code: INFOPATH=/usr/share/info:/usr/share/gcc-data/armv7a-hardfloat-linux-gnueabi/4.9.4/info:/usr/share/binutils-data/armv7a-hardfloat-linux-gnueabi/2.25.1/info
VDPAU_DRIVER=sunxi
CONFIG_PROTECT=/usr/share/gnupg/qualified.txt
_=/usr/bin/env
but when i play sample big_buck_bunny_1080... i got
cbkodi ~/kodi_stuff/kodi_sources # ./kodi.bin
shared memfd open() failed: Function not implemented
shared memfd open() failed: Function not implemented
shared memfd open() failed: Function not implemented
shared memfd open() failed: Function not implemented
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
Failed to open VDPAU backend libvdpau_sunxi.so: cannot open shared object file: No such file or directory
with debug on screen i have 13-21 fps. Is that all what can cb2 do for me? How much fps should i expect after debug disable?
Does anyone know how to fix sooo bad sound quality in kodi. I guess something is wrong with alsa and sunxi-codec (soundcard) because only on headphone jack i could hear any poor quality sound
Thanks check that the following file exits:
/usr/lib/vdpau/libvdpau_sunxi.so
with hardware support you should be able to decode at least 60fps. I guess you are decoding in software right now.
regarding shared memfd open(): I don't know where this output comes from. But since your sound is poor (which should not be the case), it could be an error from audio. Which distribution are you using? which libraries have you compiled by yourself?
regarding the missing file libyuv.h: with newer version of libcedarjpeg there is a dependency to libyuv
https://chromium.googlesource.com/libyuv/libyuv/
you need to compile and install it before you compile libcedarjpeg
@mosterta @xchetach
Once again i abandoned my old build environment and switch to latest codes received from @xchetach. All compile quite fast and successful but linking went wrong
Code: CPP xbmc/CompileInfo.o
AR xbmc/xbmc.a
LD kodi.bin
/usr/lib/gcc/armv7a-hardfloat-linux-gnueabi/4.9.4/../../../../armv7a-hardfloat-linux-gnueabi/bin/ld: cannot find -lva
/usr/lib/gcc/armv7a-hardfloat-linux-gnueabi/4.9.4/../../../../armv7a-hardfloat-linux-gnueabi/bin/ld: cannot find -lva-drm
/usr/lib/gcc/armv7a-hardfloat-linux-gnueabi/4.9.4/../../../../armv7a-hardfloat-linux-gnueabi/bin/ld: cannot find -lva
/usr/lib/gcc/armv7a-hardfloat-linux-gnueabi/4.9.4/../../../../armv7a-hardfloat-linux-gnueabi/bin/ld: cannot find -lva-x11
/usr/lib/gcc/armv7a-hardfloat-linux-gnueabi/4.9.4/../../../../armv7a-hardfloat-linux-gnueabi/bin/ld: cannot find -lva
collect2: error: ld returned 1 exit status
What libraries are va, va-drm, va-x11?
@mosterta
i build kodi on Gentoo Linux build by myself from scratch mostly because im most familar with this distribution and cubian X is very old at 2017.
RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - xchetah - 2017-08-14
@pdrobek
I think you didn't disable vaapi in config
RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - pdrobek - 2017-08-14
i did before, now i enable it and emerge libva-1.8.5 from portage but something is wrong in makefile i guess because even when i have libva in my system config.log says
Code: configure:29382: checking for LIBVA
configure:29389: $PKG_CONFIG --exists --print-errors "libva >= 0.38 libva-x11 >= 0.38"
Package libva was not found in the pkg-config search path.
Perhaps you should add the directory containing `libva.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libva' found
Package libva-x11 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libva-x11.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libva-x11' found
configure:29392: $? = 1
configure:29406: $PKG_CONFIG --exists --print-errors "libva >= 0.38 libva-x11 >= 0.38"
Package libva was not found in the pkg-config search path.
Perhaps you should add the directory containing `libva.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libva' found
Package libva-x11 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libva-x11.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libva-x11' found
configure:29409: $? = 1
configure:29423: result: no
No package 'libva' found
No package 'libva-x11' found
configure:29439: result: == Could not find libva. VAAPI support disabled. ==
but
after quick make on kodi only one library dependencies left unmet
Code: AR xbmc/guilib/guilib.a
LD kodi.bin
/usr/lib/gcc/armv7a-hardfloat-linux-gnueabi/4.9.4/../../../../armv7a-hardfloat-linux-gnueabi/bin/ld: cannot find -lva-x11
collect2: error: ld returned 1 exit status
RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - xchetah - 2017-08-14
@pdrobe
Vappi should be disabled , try deleting config.cache and reconfigure
RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - pdrobek - 2017-08-14
(2017-08-14, 23:29)xchetah Wrote: @pdrobe
Vappi should be disabled , try deleting config.cache and reconfigure
yup already disabled, now i rebuild whole kodi, now i expect that linker do its job nice because there are va va-drm va-x11 libs in my /usr/lib and pkconfig path even if there are not neccesary. In my timezone is deep night so i leave compilation alone and go to bed. Thank you for help and see you tomorrow :-)
------update------
as i expected
Code: -----------------------
Kodi built successfully
-----------------------
no errors or issues at the moment. I go sleep again
RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - pdrobek - 2017-08-15
again
Code: cbkodi ~/kodi/xbmc # ./kodi.bin
Failed to open VDPAU backend libvdpau_sunxi.so: cannot open shared object file: No such file or directory
I execute command
Code: ln -sf /usr/lib/vdpau/libvdpau_sunxi.so.1 /usr/lib/vdpau/libvdpau_sunxi.so
but still unable to watch any movie and issue occurs again with the same message
On new version of kodi another issue happend, see below. This one hang whole kodi and exit to command line
Code: kodi.bin: cedar_display.c:90: glVDPAURegisterVideoSurfaceCedar: Assertion `type == htype_video' failed.
How can i fix issue no1 and no2?
mayby this could be helpful
Code: dmesg
[128604.104426] [DISP] not supported yuv channel format:16 in img_sw_para_to_reg
[128604.176294] [DISP] not supported yuv channel format:16 in img_sw_para_to_reg
[128604.256478] [DISP] not supported yuv channel pixel sequence:80 in img_sw_para_to_reg
[128604.388592] [DISP] not supported image0 pixel sequence:128 in img_sw_para_to_reg
[128604.508597] [DISP] not supported image0 pixel sequence:128 in img_sw_para_to_reg
RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - xchetah - 2017-08-15
(2017-08-15, 20:25)pdrobek Wrote: again
Code: cbkodi ~/kodi/xbmc # ./kodi.bin
Failed to open VDPAU backend libvdpau_sunxi.so: cannot open shared object file: No such file or directory
I execute command
Code: ln -sf /usr/lib/vdpau/libvdpau_sunxi.so.1 /usr/lib/vdpau/libvdpau_sunxi.so
but still unable to watch any movie and issue occurs again with the same message
On new version of kodi another issue happend, see below. This one hang whole kodi and exit to command line
Code: kodi.bin: cedar_display.c:90: glVDPAURegisterVideoSurfaceCedar: Assertion `type == htype_video' failed.
How can i fix issue no1 and no2?
mayby this could be helpful
Code: dmesg
[128604.104426] [DISP] not supported yuv channel format:16 in img_sw_para_to_reg
[128604.176294] [DISP] not supported yuv channel format:16 in img_sw_para_to_reg
[128604.256478] [DISP] not supported yuv channel pixel sequence:80 in img_sw_para_to_reg
[128604.388592] [DISP] not supported image0 pixel sequence:128 in img_sw_para_to_reg
[128604.508597] [DISP] not supported image0 pixel sequence:128 in img_sw_para_to_reg
Goto settings>player settings and disable "prefer vdpau video mixer"
RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - pdrobek - 2017-08-16
Quote:Goto settings>player settings and disable "prefer vdpau video mixer"
This will solve issue no1, no2, no3?
RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - xchetah - 2017-08-16
(2017-08-16, 09:53)pdrobek Wrote: Quote:Goto settings>player settings and disable "prefer vdpau video mixer"
This will solve issue no1, no2, no3?
What is issue #1 and #3 exactly??
RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - pdrobek - 2017-08-16
(2017-08-16, 11:47)xchetah Wrote: (2017-08-16, 09:53)pdrobek Wrote: Quote:Goto settings>player settings and disable "prefer vdpau video mixer"
This will solve issue no1, no2, no3?
What is issue #1 and #3 exactly??
Sorry i post wrong numbers
#1 is
Code: cbkodi ~/kodi/xbmc # ./kodi.bin
Failed to open VDPAU backend libvdpau_sunxi.so: cannot open shared object file: No such file or directory
mosterta said that i sould export VDPAU_DRIVER=sunxi, i did it in my /etc/environment but kodi did not see that lib
#2 is
Code: kodi.bin: cedar_display.c:90: glVDPAURegisterVideoSurfaceCedar: Assertion `type == htype_video' failed.
RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - xchetah - 2017-08-16
Well you didn't follow my method exactly
Quote:Code: find /usr/ -name libvdpau_sunxi.so.1
This will give you the path the lib is installed in, then do the following:
Code: sudo ln -sf <lib path from above result> /usr/lib/libvdpau_sunxi.so
You should search for the lib before making a link against it, for #2 #3 I don't really know , maybe related to 1
|