please choosego to mobile | Continue to access the PC version
Author: Rangarid

VPU CedarX drivers for Allwinner H3

[Copy link]

18

threads

303

posts

9573

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
9573
Published in 2015-12-2 09:06:27 from mobile | Show all floors
Rangarid replied at 2015-12-1 19:51
Another note... disabling h265 just seems to apply to the libvdpau-dev version in the lubuntu apt re ...

I think we should build OpenMAX player for H3.https://en.m.wikipedia.org/wiki/OpenMAX

18

threads

303

posts

9573

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
9573
Published in 2015-12-2 21:16:18 | Show all floors
Rangarid replied at 2015-12-1 18:36
Just testet with Lubuntu Vivid and it seems to work. Follow these instructions:

I think you mean this command. The libvdpau_sunxi.so.1 file should be here.
  1. sudo ln -s /usr/lib/arm-linux-gnueabihf/vdpau/libvdpau_sunxi.so.1 /usr/lib/libvdpau_nvidia.so
Copy code


18

threads

303

posts

9573

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
9573
Published in 2015-12-2 22:14:25 | Show all floors
Rangarid replied at 2015-12-1 18:36
Just testet with Lubuntu Vivid and it seems to work. Follow these instructions:

I get this error below.
  1. orangepi@OrangePI:~$ mplayer -vo vdpau -vc ffmpeg12vdpau,ffh264vdpau, -fs test.h264
  2. MPlayer2 2.0-728-g2c378c7-4 (C) 2000-2012 MPlayer Team
  3. Cannot open file '/home/orangepi/.mplayer/input.conf': No such file or directory
  4. Failed to open /home/orangepi/.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 test.h264.
  8. Detected file format: raw H.264 video (libavformat)
  9. [h264 @ 0xb5d535b8]Estimating duration from bitrate, this may be inaccurate
  10. [lavf] stream 0: video (h264), -vid 0
  11. Load subtitles in .
  12. [VDPAU SUNXI] VE version 0x0000 opened.
  13. Forced video codec: ffmpeg12vdpau
  14. Forced video codec: ffh264vdpau
  15. Cannot find codec 'h264_vdpau' in libavcodec...
  16. Video decoder init failed for codecs.conf entry "ffh264vdpau".
  17. Selected video codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 [libavcodec]
  18. Audio: no sound
  19. Starting playback...
  20. VIDEO:  1920x1080  25.000 fps    0.0 kbps ( 0.0 kB/s)
  21. VO: [vdpau] 1920x1080 => 1920x1080 Planar YV12  [fs]
  22. [vdpau] Error when calling vdp_presentation_queue_target_create_x11: A catch-all error, used when no other error code applies.
  23. FATAL: Cannot initialize video driver.

  24. FATAL: Could not initialize video filters (-vf) or video output (-vo).

  25. [   vdpau] Error when calling vdp_presentation_queue_target_destroy: An invalid handle value was provided.

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


18

threads

303

posts

9573

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
9573
Published in 2015-12-3 11:46:10 | Show all floors
I got errors on start mplayer.
  1. orangepi@OrangePI:~$ mplayer -vo vdpau -vc ffmpeg12vdpau,ffh264vdpau test.h264
  2. MPlayer2 2.0-728-g2c378c7-4 (C) 2000-2012 MPlayer Team
  3. Cannot open file '/home/orangepi/.mplayer/input.conf': No such file or directory
  4. Failed to open /home/orangepi/.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 test.h264.
  8. Detected file format: raw H.264 video (libavformat)
  9. [h264 @ 0xb5d7b5b8]Estimating duration from bitrate, this may be inaccurate
  10. [lavf] stream 0: video (h264), -vid 0
  11. Load subtitles in .
  12. [VDPAU SUNXI] VE version 0x0000 opened.
  13. Forced video codec: ffmpeg12vdpau
  14. Forced video codec: ffh264vdpau
  15. Cannot find codec 'h264_vdpau' in libavcodec...
  16. Video decoder init failed for codecs.conf entry "ffh264vdpau".
  17. Cannot find codec matching selected -vo and video format 0x34363248.


  18. Exiting... (End of file)
Copy code
  1. orangepi@OrangePI:~$ vdpauinfo
  2. display: :0   screen: 0
  3. [VDPAU SUNXI] VE version 0x0000 opened.
  4. API version: 1
  5. Information string: sunxi VDPAU Driver

  6. Video surface:

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

  10. Decoder capabilities:

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

  37. Output surface:

  38. name              width height nat types
  39. ----------------------------------------------------
  40. B8G8R8A8          8192  8192    -  
  41. R8G8B8A8          8192  8192    -  

  42. Bitmap surface:

  43. name              width height
  44. ------------------------------
  45. B8G8R8A8          8192  8192
  46. R8G8B8A8          8192  8192

  47. Video mixer:

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

  65. parameter name                  sup      min      max
  66. -----------------------------------------------------
  67. VIDEO_SURFACE_WIDTH              y         0     8192
  68. VIDEO_SURFACE_HEIGHT             y         0     8192
  69. CHROMA_TYPE                      y  
  70. LAYERS                           y         0        0

  71. attribute name                  sup      min      max
  72. -----------------------------------------------------
  73. BACKGROUND_COLOR                 -  
  74. CSC_MATRIX                       -  
  75. NOISE_REDUCTION_LEVEL            -  
  76. SHARPNESS_LEVEL                  -  
  77. LUMA_KEY_MIN_LUMA                -  
  78. LUMA_KEY_MAX_LUMA                -  
Copy code


18

threads

303

posts

9573

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
9573
Published in 2015-12-3 14:28:34 | Show all floors
How to use the H3 head files?

5

threads

354

posts

2614

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
2614
Published in 2015-12-4 17:57:19 | Show all floors
Rangarid replied at 2015-12-1 11:36
Just testet with Lubuntu Vivid and it seems to work. Follow these instructions:

@rangarid
there are some errors in your How to, tried myself wit a debian based distro (lubuntu).
The problem is that you need a newer libvdpau and newer mplayer to make HEVC work.
maybe I post a corrected How-to later this evening.



Boards:
orangepi plus, olinuxino A20, cubieboard A10, mele A2000 .....

3

threads

15

posts

102

credits

Registered member

Rank: 2

credits
102
 Author| Published in 2015-12-4 23:39:21 | Show all floors
Edited by Rangarid at 2015-12-4 23:58

I know that, i wrote that in the next post. But for H264 it works as in my tutorial. Ubuntu 15.04 has libvdpau 1.1 which supports h265, there the h265 changes are not needed. I had a 14.04 version, there it was necessary.

0

threads

1

posts

6

credits

Novice

Rank: 1

credits
6
Published in 2015-12-5 01:13:54 | Show all floors
does libcedarx work on H3?
if so, I assume it would use less cpu resources.

I try to use mpv  running with libvdpau-sunxi to play big_buck_bunny_1080p_H264_AAC_25fps_7200K, and it takes ~30% of each core.
it is bit high, isn't it?

18

threads

303

posts

9573

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
9573
Published in 2015-12-5 11:50:44 | Show all floors
lance.bai replied at 2015-12-5 01:13
does libcedarx work on H3?
if so, I assume it would use less cpu resources.

How did you install? Care to share?

18

threads

303

posts

9573

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
9573
Published in 2015-12-5 11:51:28 | Show all floors
fritz replied at 2015-12-4 17:57
@rangarid
there are some errors in your How to, tried myself wit a debian based distro (lubuntu).
...

Care to share?
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list