Author: Rangarid

VPU CedarX drivers for Allwinner H3

[Copy link]

4

threads

1118

posts

9504

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
9504
Published in 2015-12-8 05:56:47 | Show all floors
Edited by jernej at 2015-12-7 22:59
barban replied at 2015-12-7 22:27
Thanks for your suggestion, but I am really looking for a decent (and recent...) version of KODI on ...

If you do "readelf -d libvrender.so", you will get following output:
  1. jernej@jernej-laptop:~/Repositories/zidoo-kodi-14.2/lib/libvrender$ readelf -d libvrender.so

  2. Dynamic section at offset 0x2e34 contains 37 entries:
  3.   Tag        Type                         Name/Value
  4. 0x00000003 (PLTGOT)                     0x3f90
  5. 0x00000002 (PLTRELSZ)                   200 (bytes)
  6. 0x00000017 (JMPREL)                     0xdd0
  7. 0x00000014 (PLTREL)                     REL
  8. 0x00000011 (REL)                        0xda8
  9. 0x00000012 (RELSZ)                      40 (bytes)
  10. 0x00000013 (RELENT)                     8 (bytes)
  11. 0x6ffffffa (RELCOUNT)                   2
  12. 0x00000006 (SYMTAB)                     0x148
  13. 0x0000000b (SYMENT)                     16 (bytes)
  14. 0x00000005 (STRTAB)                     0x508
  15. 0x0000000a (STRSZ)                      1812 (bytes)
  16. 0x00000004 (HASH)                       0xc1c
  17. 0x00000001 (NEEDED)                     Shared library: [libutils.so]
  18. 0x00000001 (NEEDED)                     Shared library: [libbinder.so]
  19. 0x00000001 (NEEDED)                     Shared library: [libgui.so]
  20. 0x00000001 (NEEDED)                     Shared library: [libcutils.so]
  21. 0x00000001 (NEEDED)                     Shared library: [liblog.so]
  22. 0x00000001 (NEEDED)                     Shared library: [libui.so]
  23. 0x00000001 (NEEDED)                     Shared library: [libstagefright_foundation.so]
  24. 0x00000001 (NEEDED)                     Shared library: [libplayer.so]
  25. 0x00000001 (NEEDED)                     Shared library: [libvdecoder.so]
  26. 0x00000001 (NEEDED)                     Shared library: [libcdx_base.so]
  27. 0x00000001 (NEEDED)                     Shared library: [libVE.so]
  28. 0x00000001 (NEEDED)                     Shared library: [libMemAdapter.so]
  29. 0x00000001 (NEEDED)                     Shared library: [libandroid_runtime.so]
  30. 0x00000001 (NEEDED)                     Shared library: [libion.so]
  31. 0x00000001 (NEEDED)                     Shared library: [libc.so]
  32. 0x00000001 (NEEDED)                     Shared library: [libstdc++.so]
  33. 0x00000001 (NEEDED)                     Shared library: [libm.so]
  34. 0x0000000e (SONAME)                     Library soname: [libvrender.so]
  35. 0x0000001a (FINI_ARRAY)                 0x3e30
  36. 0x0000001c (FINI_ARRAYSZ)               4 (bytes)
  37. 0x00000010 (SYMBOLIC)                   0x0
  38. 0x0000001e (FLAGS)                      SYMBOLIC BIND_NOW
  39. 0x6ffffffb (FLAGS_1)                    Flags: NOW
  40. 0x00000000 (NULL)                       0x0
Copy code


which clearly suggest that this library is android only. It depends on libandroid_runtime.so among others.

2

threads

21

posts

86

credits

Registered member

Rank: 2

credits
86
Published in 2015-12-8 06:18:02 | Show all floors
jernej replied at 2015-12-8 05:56
If you do "readelf -d libvrender.so", you will get following output:

You are right.
I made the wrong assumption that it coul be as simple as changing the libvdecoder.so  version to the linux one, taking it from H3 SDK.
Reading better the forum post I realized that libvrender.so is a different lib that was created by Ziddo team and it is specific for Android, as you remarked.
libvrender.so is not open sourced yet    

2

threads

21

posts

86

credits

Registered member

Rank: 2

credits
86
Published in 2015-12-8 06:18:32 | Show all floors
jernej replied at 2015-12-8 05:56
If you do "readelf -d libvrender.so", you will get following output:

You are right.
I made the wrong assumption that it coul be as simple as changing the libvdecoder.so  version to the linux one, taking it from H3 SDK.
Reading better the forum post I realized that libvrender.so is a different lib that was created by Ziddo team and it is specific for Android, as you remarked.
libvrender.so is not open sourced yet    

18

threads

303

posts

9896

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
9896
Published in 2015-12-8 23:12:54 | Show all floors
fritz replied at 2015-12-6 09:04
And last but not least a crappy youtube video only to show that it really works:
https://youtu.be/O4 ...

H264 plays smoother than H265. And I think this is software decoder.

4

threads

1118

posts

9504

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
9504
Published in 2015-12-10 04:52:50 | Show all floors
barban replied at 2015-12-7 23:18
You are right.
I made the wrong assumption that it coul be as simple as changing the libvdecoder.s ...

Care to test my CedarX enabled OpenELEC version? Far from optimal (GPU rendering), but it is a start. Take a look at OpenELEC subforum here. No prebuild images ATM.

18

threads

303

posts

9896

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
9896
Published in 2015-12-10 12:44:34 | Show all floors
jernej replied at 2015-12-10 04:52
Care to test my CedarX enabled OpenELEC version? Far from optimal (GPU rendering), but it is a sta ...

I am using OPI-PC and OPI-Plus2. Can you make a image for testing?

4

threads

1118

posts

9504

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
9504
Published in 2015-12-10 13:29:10 | Show all floors
Edited by jernej at 2015-12-10 21:02
jacer replied at 2015-12-10 05:44
I am using OPI-PC and OPI-Plus2. Can you make a image for testing?

Orange Pi 2 image is here:
EDIT: Please check OpenELEC subforum for latest build. There were some problems with H265.

Anything else will be hopefully build later today. I think you can use this image at least on PC version, only problem will be that only one USB port will work.

18

threads

303

posts

9896

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
9896
Published in 2015-12-24 23:04:10 | Show all floors
For fixing green stripes and green bar issue, please check this link below. Works pretty well.
https://github.com/linux-sunxi/libvdpau-sunxi/issues/40

8

threads

55

posts

252

credits

Intermediate member

Rank: 3Rank: 3

credits
252
Published in 2016-1-4 01:41:56 | Show all floors
Edited by @lex at 2016-1-3 14:48
fritz replied at 2015-12-5 19:01
OK, here is the corrected How-To on a Lubuntu 14.04 (I don't have other debian based images and I do ...

Hi @fritz,

I have followed your instructions with the latest libvdpau on my Lubuntu 14.04.3 but i get purple screen (the violet color is actually purple) with possibly the tiles being displayed at the wrong position or geometry.
vdpauinfo is OK, except for the display id on the 1920x1080:
vdpauinfo:
  1. display: :0.0   screen: 0
  2. [VDPAU SUNXI] VE version 0x1680 opened.
  3. API version: 1
  4. Information string: sunxi VDPAU Driver

  5. Video surface:

  6. name   width height types
  7. -------------------------------------------
  8. 420     8192  8192  NV12 YV12

  9. Decoder capabilities:

  10. name                        level macbs width height
  11. ----------------------------------------------------
  12. MPEG1                           0 32400  3840  2160
  13. MPEG2_SIMPLE                    3 32400  3840  2160
  14. MPEG2_MAIN                      3 32400  3840  2160
  15. H264_BASELINE                  51 32400  3840  2160
  16. H264_MAIN                      51 32400  3840  2160
  17. H264_HIGH                      51 32400  3840  2160
  18. VC1_SIMPLE                     --- not supported ---
  19. VC1_MAIN                       --- not supported ---
  20. VC1_ADVANCED                   --- not supported ---
  21. MPEG4_PART2_SP                  5 32400  3840  2160
  22. MPEG4_PART2_ASP                 5 32400  3840  2160
  23. DIVX4_QMOBILE                  --- not supported ---
  24. DIVX4_MOBILE                   --- not supported ---
  25. DIVX4_HOME_THEATER             --- not supported ---
  26. DIVX4_HD_1080P                 --- not supported ---
  27. DIVX5_QMOBILE                  --- not supported ---
  28. DIVX5_MOBILE                   --- not supported ---
  29. DIVX5_HOME_THEATER             --- not supported ---
  30. DIVX5_HD_1080P                 --- not supported ---
  31. H264_CONSTRAINED_BASELINE      51 32400  3840  2160
  32. H264_EXTENDED                  --- not supported ---
  33. H264_PROGRESSIVE_HIGH          --- not supported ---
  34. H264_CONSTRAINED_HIGH          51 32400  3840  2160
  35. H264_HIGH_444_PREDICTIVE       --- not supported ---
  36. HEVC_MAIN                      150 32400  3840  2160
  37. HEVC_MAIN_10                   --- not supported ---
  38. HEVC_MAIN_STILL                --- not supported ---
  39. HEVC_MAIN_12                   --- not supported ---
  40. HEVC_MAIN_444                  --- not supported ---

  41. Output surface:

  42. name              width height nat types
  43. ----------------------------------------------------
  44. B8G8R8A8          8192  8192    -  
  45. R8G8B8A8          8192  8192    -  

  46. Bitmap surface:

  47. name              width height
  48. ------------------------------
  49. B8G8R8A8          8192  8192
  50. R8G8B8A8          8192  8192

  51. Video mixer:

  52. feature name                    sup
  53. ------------------------------------
  54. DEINTERLACE_TEMPORAL             -
  55. DEINTERLACE_TEMPORAL_SPATIAL     -
  56. INVERSE_TELECINE                 -
  57. NOISE_REDUCTION                  -
  58. SHARPNESS                        -
  59. LUMA_KEY                         -
  60. HIGH QUALITY SCALING - L1        -
  61. HIGH QUALITY SCALING - L2        -
  62. HIGH QUALITY SCALING - L3        -
  63. HIGH QUALITY SCALING - L4        -
  64. HIGH QUALITY SCALING - L5        -
  65. HIGH QUALITY SCALING - L6        -
  66. HIGH QUALITY SCALING - L7        -
  67. HIGH QUALITY SCALING - L8        -
  68. HIGH QUALITY SCALING - L9        -

  69. parameter name                  sup      min      max
  70. -----------------------------------------------------
  71. VIDEO_SURFACE_WIDTH              y         0     8192
  72. VIDEO_SURFACE_HEIGHT             y         0     8192
  73. CHROMA_TYPE                      y  
  74. LAYERS                           y         0        0

  75. attribute name                  sup      min      max
  76. -----------------------------------------------------
  77. BACKGROUND_COLOR                 -  
  78. CSC_MATRIX                       -  
  79. NOISE_REDUCTION_LEVEL            -  
  80. SHARPNESS_LEVEL                  -  
  81. LUMA_KEY_MIN_LUMA                -  
  82. LUMA_KEY_MAX_LUMA                -  
Copy code

mplayer output:
  1. mplayer -fs -vo vdpau -vc ffmpeg12vdpau,ffh264vdpau, sintel_trailer-1080p.mp4
  2. MPlayer2 2.0-701-gd4c5b7f-2ubuntu2 (C) 2000-2012 MPlayer Team
  3. Cannot open file '/home/ubuntu/.mplayer/input.conf': No such file or directory
  4. Failed to open /home/ubuntu/.mplayer/input.conf.
  5. Cannot open file '/etc/mplayer/input.conf': No such file or directory
  6. Failed to open /etc/mplayer/input.conf.

  7. Playing sintel_trailer-1080p.mp4.
  8. Detected file format: QuickTime / MOV (libavformat)
  9. [lavf] stream 0: video (h264), -vid 0
  10. [lavf] stream 1: audio (aac), -aid 0, -alang und
  11. Clip info:
  12. major_brand: isom
  13. minor_version: 512
  14. compatible_brands: isomiso2avc1mp41
  15. creation_time: 1970-01-01 00:00:00
  16. title: Sintel Trailer
  17. artist: Durian Open Movie Team
  18. encoder: Lavf52.62.0
  19. copyright: (c) copyright Blender Foundation | durian.blender.org
  20. description: Trailer for the Sintel open movie project
  21. Load subtitles in .
  22. [VDPAU SUNXI] VE version 0x1680 opened.
  23. Forced video codec: ffmpeg12vdpau
  24. Forced video codec: ffh264vdpau
  25. Selected video codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (VDPAU acceleration) [libavcodec]
  26. Selected audio codec: AAC (Advanced Audio Coding) [libavcodec]
  27. AUDIO: 48000 Hz, 2 ch, floatle, 126.7 kbit/4.12% (ratio: 15836->384000)
  28. AO: [pulse] 48000Hz 2ch floatle (4 bytes per sample)
  29. Starting playback...
  30. VIDEO:  1920x1080  24.000 fps  2108.4 kbps (263.6 kB/s)
  31. VO: [vdpau] 1920x1080 => 1920x1080 H.264 VDPAU acceleration  [fs]
  32. [vdpau] Failed to get display FPS
  33. [VDPAU SUNXI] Presentation time not supported
  34. A:  51.9 V:  52.2 A-V: -0.174 ct:  0.000   0/  0 29%  9%  2.0% 0 0


  35. Exiting... (End of file)
Copy code

Can you spot what is missing here?
I tried to install your mpv and jacer mpv, but it broke my dependencies, mplayer is still old i think.

Any suggestion?

here is the output:

This thread contains more resources

You need to Log in to download or view,No account?    Register

x

5

threads

354

posts

2724

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
2724
Published in 2016-1-4 23:32:39 | Show all floors
Edited by fritz at 2016-1-4 16:51

@lex
Is this MPlayer2 you are using selfcompiled?
wich dependencies you broke?
I have compiled mpv-package on a lubuntu 14.04 and it shoud install on your Lubuntu 14.04.3
Try to install mpv14.0, i have it builded after upgrading lubuntu.
On my shared folder there is a compiled mplayer (binary) maybe it works for you, but i would suggest to use mpv.
Boards:
orangepi plus, olinuxino A20, cubieboard A10, mele A2000 .....
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list