goo Posted August 3, 2016 Posted August 3, 2016 Hello everyone activating legend movie MPlayer vdpau?banana pi m1
rellla Posted August 4, 2016 Posted August 4, 2016 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
goo Posted August 5, 2016 Author Posted August 5, 2016 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: 1Information string: sunxi VDPAU Driver
rellla Posted August 8, 2016 Posted August 8, 2016 [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
RagnerBG Posted August 8, 2016 Posted August 8, 2016 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.
rellla Posted August 8, 2016 Posted August 8, 2016 @RagnerBG, what was the problem again with OSD on H3 that you have to disable OSD? Just curious, if we talked about that already ... rellla
RagnerBG Posted August 8, 2016 Posted August 8, 2016 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 .
rellla Posted August 8, 2016 Posted August 8, 2016 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
goo Posted August 9, 2016 Author Posted August 9, 2016 $ export VDPAU_DRIVER=sunxi $ export VDPAU_OSD=1 to be continued [VDPAU SUNXI] OSD disabled!API version: 1Information string: sunxi VDPAU Driver
rellla Posted August 9, 2016 Posted August 9, 2016 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
goo Posted August 9, 2016 Author Posted August 9, 2016 display: :0 screen: 0 [VDPAU SUNXI] VE version 0x1623 opened. [VDPAU SUNXI] OSD disable! API version: 1 Information string: sunxi VDPAU Driver Video surface: name width height types ------------------------------------------- 420 8192 8192 NV12 YV12 Decoder capabilities: name level macbs width height ------------------------------------------- MPEG1 0 32400 3840 2160 MPEG2_SIMPLE 3 32400 3840 2160 MPEG2_MAIN 3 32400 3840 2160 H264_BASELINE 51 32400 3840 2160 H264_MAIN 51 32400 3840 2160 H264_HIGH 51 32400 3840 2160 MPEG4_PART2_SP 51 32400 3840 2160 MPEG4_PART2_ASP 51 32400 3840 2160 Output surface: name width height nat types ---------------------------------------------------- B8G8R8A8 8192 8192 - R8G8B8A8 8192 8192 - Bitmap surface: name width height ------------------------------ B8G8R8A8 8192 8192 R8G8B8A8 8192 8192 Video mixer: feature name sup ------------------------------------ DEINTERLACE_TEMPORAL - DEINTERLACE_TEMPORAL_SPATIAL - INVERSE_TELECINE - NOISE_REDUCTION - SHARPNESS - LUMA_KEY - HIGH QUALITY SCALING - L1 - HIGH QUALITY SCALING - L2 - HIGH QUALITY SCALING - L3 - HIGH QUALITY SCALING - L4 - HIGH QUALITY SCALING - L5 - HIGH QUALITY SCALING - L6 - HIGH QUALITY SCALING - L7 - HIGH QUALITY SCALING - L8 - HIGH QUALITY SCALING - L9 - parameter name sup min max ----------------------------------------------------- VIDEO_SURFACE_WIDTH y 0 8192 VIDEO_SURFACE_HEIGHT y 0 8192 CHROMA_TYPE y LAYERS y 0 0 attribute name sup min max ----------------------------------------------------- BACKGROUND_COLOR - CSC_MATRIX - NOISE_REDUCTION_LEVEL - SHARPNESS_LEVEL - LUMA_KEY_MIN_LUMA - LUMA_KEY_MAX_LUMA starting mvplayer left click mvp
rellla Posted August 9, 2016 Posted August 9, 2016 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
RagnerBG Posted August 9, 2016 Posted August 9, 2016 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 .
goo Posted August 10, 2016 Author Posted August 10, 2016 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
RagnerBG Posted August 10, 2016 Posted August 10, 2016 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.
dalrun Posted September 28, 2016 Posted September 28, 2016 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.
Recommended Posts