Jump to content

(solved)Mplayer video without subtitles vdpau mali a20


goo

Recommended Posts

Hello,

first you have to set your environment variable VDPAU_OSD with

"export VDPAU_OSD=1"

and for mpv, and maybe for mplayer, too, you have to start it with the "--force-rgba-osd-rendering" flag.

libvdpau-sunxi does not yet support alpha-only osd.

If it is not working still, you have to post some logs.

 

Regards

rellla

Link to comment
Share on other sites

banana pi m1 

libvdpau-sunxi

"export VDPAU_OSD=1"

--force-rgba-osd-rendering

 

does not work

subtitles

 

which would log?

#vdapauinfo

 

display: :0.0 screen: 0
[VDPAU SUNXI] VE version 0x1680 opened
[VDPAU SUNXI] OSD disabled!
API version: 1
Information string: sunxi VDPAU Driver

Link to comment
Share on other sites

 


[VDPAU SUNXI] OSD disabled!

So something is wrong. Because of version 0x1680 i suppose you are using an H3, but according to http://linux-sunxi.org/Banana_Pi_M1 your soc should contain an A20?? Check that.

 

Nevertheless, your environment variable VDPAU_OSD=1 is not set correct or not recognized during program start.

Did you check the readmes at all? http://linux-sunxi.org/Cedrus/libvdpau-sunxi#Playing_video

 

Before that you have to:

$ export VDPAU_DRIVER=sunxi

$ export VDPAU_OSD=1

 

You can verify, if everything went right, with a simple "export" at commendline.

 

rellla

Link to comment
Share on other sites

This "export" thing is a little tricky. Simple export from terminal is not enough, from remote ssh terminal also. I guess it change the environment only for current session. I add those lines:

export VDPAU_DRIVER=sunxi
export VDPAU_OSD=1

(plus export VDPAU_DISABLE_G2D=1 for H3) in "/etc/environment", in "/home/"user"/.bashrc" (and in /root/.bashrc if i need it for root account) and i create file named "90environment" in "/etc/X11/Xsession.d/" and put the lines there too. Maybe the last is for X11 only and don't affect framebuffer apps, but this problem took me a lot of time and i prefer to play safe.

Link to comment
Share on other sites

I am not sure i understand. If it's about "VDPAU_DISABLE_G2D=1", i am just following the readme in vdpau_sunxi github. H3 don't support G2D and disable it anyway, i guess this just minimize the log entries. You integrate Pixman instead of this, right? I don't disable OSD in any other way, in fact i need it :).

Link to comment
Share on other sites

You do not need to set this variable explicitly on H3, because libvdpau-sunxi checks, if /dev/g2d is available. If not, it uses pixman.

The purpose of VDPAU_DISABLE_G2D is to force pixman usage in case /dev/g2d is available (on A10/A20).

 

rellla

Link to comment
Share on other sites

goo, it's very difficult to help you here.

Please paste a full log, not just type some lines. Also explain, how and where you start your mplayer (X, console, ssh ...), post the output of "export" and so on. What version of libvdpau-sunxi do you use?

 

As long as you have

"[VDPAU SUNXI] OSD disabled!"

somewhere in the logs, it's a simple problem with your environment variables. This is a very basic linux problem.

 

But as said, more (and full) logs and step-by-step descriptions please.

 

rellla

Link to comment
Share on other sites

  1. display: :0   screen: 0
  2. [VDPAU SUNXI] VE version 0x1623 opened.
  3. [VDPAU SUNXI] OSD disable!
  4. API version: 1
  5. Information string: sunxi VDPAU Driver
  6.  
  7. Video surface:
  8.  
  9. name   width height types
  10. -------------------------------------------
  11. 420     8192  8192  NV12 YV12
  12.  
  13. Decoder capabilities:
  14.  
  15. name               level macbs width height
  16. -------------------------------------------
  17. MPEG1                 0 32400  3840  2160
  18. MPEG2_SIMPLE          3 32400  3840  2160
  19. MPEG2_MAIN            3 32400  3840  2160
  20. H264_BASELINE        51 32400  3840  2160
  21. H264_MAIN            51 32400  3840  2160
  22. H264_HIGH            51 32400  3840  2160
  23. MPEG4_PART2_SP       51 32400  3840  2160
  24. MPEG4_PART2_ASP      51 32400  3840  2160
  25.  
  26. Output surface:
  27.  
  28. name              width height nat types
  29. ----------------------------------------------------
  30. B8G8R8A8          8192  8192    -  
  31. R8G8B8A8          8192  8192    -  
  32.  
  33. Bitmap surface:
  34.  
  35. name              width height
  36. ------------------------------
  37. B8G8R8A8          8192  8192
  38. R8G8B8A8          8192  8192
  39.  
  40. Video mixer:
  41.  
  42. feature name                    sup
  43. ------------------------------------
  44. DEINTERLACE_TEMPORAL             -
  45. DEINTERLACE_TEMPORAL_SPATIAL     -
  46. INVERSE_TELECINE                 -
  47. NOISE_REDUCTION                  -
  48. SHARPNESS                        -
  49. LUMA_KEY                         -
  50. HIGH QUALITY SCALING - L1        -
  51. HIGH QUALITY SCALING - L2        -
  52. HIGH QUALITY SCALING - L3        -
  53. HIGH QUALITY SCALING - L4        -
  54. HIGH QUALITY SCALING - L5        -
  55. HIGH QUALITY SCALING - L6        -
  56. HIGH QUALITY SCALING - L7        -
  57. HIGH QUALITY SCALING - L8        -
  58. HIGH QUALITY SCALING - L9        -
  59.  
  60. parameter name                  sup      min      max
  61. -----------------------------------------------------
  62. VIDEO_SURFACE_WIDTH              y         0     8192
  63. VIDEO_SURFACE_HEIGHT             y         0     8192
  64. CHROMA_TYPE                      y  
  65. LAYERS                           y         0        0
  66.  
  67. attribute name                  sup      min      max
  68. -----------------------------------------------------
  69. BACKGROUND_COLOR                 -  
  70. CSC_MATRIX                       -  
  71. NOISE_REDUCTION_LEVEL            -  
  72. SHARPNESS_LEVEL                  -  
  73. LUMA_KEY_MIN_LUMA                -  
  74. LUMA_KEY_MAX_LUMA  

starting mvplayer left click mvp

Link to comment
Share on other sites

I suppose, we have a small language barrier here. Ok.

The problem is, that VDPAU_OSD=1 is not set at the moment you start mpv. Open a terminal and type in "export" and post the output. And please use some online paste service.

After that you can try to use this command in your terminal:

VDPAU_DRIVER=sunxi VDPAU_OSD=1 mpv --vo=vdpau --hwdec=vdpau --hwdec-codecs=all --force-rgba-osd-rendering [filename]

rellla

Link to comment
Share on other sites

 

starting mvplayer left click mvp

 

 

So you are using default Armbian Desktop image with nodm (no user logged in) and try this from graphic file manager? Did you try to put environment variables in the files i mentioned? When i faced the same problem putting:

export VDPAU_DRIVER=sunxi
export VDPAU_OSD=1

in /home/"user"/.bashhrc , helped when i start players from terminal. But from Desktop (gui like Smplayer for example, or right click) still no OSD. So you have to create file named 90environment in /etc/X11/Xsession.d/ :

sudo nano /etc/X11/Xsession.d/90environment

put the above lines there and reboot. Output of "env" in terminal could be of help, but will not show the problem if i am right. And you also may have some permission issues for some files in /dev .

Link to comment
Share on other sites

VDPAU_DRIVER=sunxi VDPAU_OSD=1 mpv --vo=vdpau --hwdec=vdpau --hwdec-codecs=all --force-rgba-osd-rendering [filename]    is working

 

MPlayer is working slow vdpau error 

VLC is working not subtitle

Link to comment
Share on other sites

VDPAU_DRIVER=sunxi VDPAU_OSD=1 mpv --vo=vdpau --hwdec=vdpau --hwdec-codecs=all --force-rgba-osd-rendering [filename]    is working

 

MPlayer is working slow vdpau error 

VLC is working not subtitle

Mplayer will not work if you don't build it from source. VLC will work through X11, but with no hw acceleration. You can try to build VLC from source too, with vdpau support, but this is not easy. Better focus on mpv, it's better than any other. And if you need GUI, you can always install SMplayer and use mpv within it.

Link to comment
Share on other sites

At least in 5.20 desktop, everything but VDPAU_OSD=1 is setup/configured for desktop playback, including  --profile=pseudo-gui which provides a simple OSC (on screen controller) when VDPAU_OSD=1.

 

I don't know where VDPAU_OSD=1 is supposed to be enabled, but prepending it to the ~/.local/share/applications/mpv.desktop Exec command works. That's essentially the same as manually running $ VDPAU_OSD=1 mpv --profile=pseudo-gui [filename] - a modified version of rellla's suggestion.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines