Kodi Community Forum

Full Version: VDPAU not being detected
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
According to inxi, the video is "Advanced Micro Devices [AMD/ATI] RV635 PRO [Radeon HD 3650 AGP]"
And this is using the open source radeon driver. The system is only x86 and not capable of 64 bit.

Vdpau is enabled and working fine according to vdpauinfo, but I can tell just by looking since the machine is very old and not capable of playing 1080p on the cpu, but it does on stand alone video players like mpv and vlc.

This is the vdpauinfo output:
Code:
display: :0.0   screen: 0
API version: 1
Information string: G3DVL VDPAU Driver Shared Library version 1.0

Video surface:

name   width height types
-------------------------------------------
420     8192  8192  NV12 YV12
422     8192  8192  UYVY YUYV
444     8192  8192  Y8U8V8A8 V8U8Y8A8

Decoder capabilities:

name               level macbs width height
-------------------------------------------
MPEG1                 0  9216  2048  1152
MPEG2_SIMPLE          3  9216  2048  1152
MPEG2_MAIN            3  9216  2048  1152
H264_BASELINE        41  9216  2048  1152
H264_MAIN            41  9216  2048  1152
H264_HIGH            41  9216  2048  1152
VC1_ADVANCED          4  9216  2048  1152

Output surface:

name              width height nat types
----------------------------------------------------
B8G8R8A8          8192  8192    y  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8
R8G8B8A8          8192  8192    y  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8
R10G10B10A2       8192  8192    y  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8
B10G10R10A2       8192  8192    y  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8

Bitmap surface:

name              width height
------------------------------
B8G8R8A8          8192  8192
R8G8B8A8          8192  8192
R10G10B10A2       8192  8192
B10G10R10A2       8192  8192
A8                8192  8192

Video mixer:

feature name                    sup
------------------------------------
DEINTERLACE_TEMPORAL             y
DEINTERLACE_TEMPORAL_SPATIAL     -
INVERSE_TELECINE                 -
NOISE_REDUCTION                  y
SHARPNESS                        y
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        48     2048
VIDEO_SURFACE_HEIGHT             y        48     1152
CHROMA_TYPE                      y  
LAYERS                           y         0        4

attribute name                  sup      min      max
-----------------------------------------------------
BACKGROUND_COLOR                 y  
CSC_MATRIX                       y  
NOISE_REDUCTION_LEVEL            y      0.00     1.00
SHARPNESS_LEVEL                  y     -1.00     1.00
LUMA_KEY_MIN_LUMA                y  
LUMA_KEY_MAX_LUMA                y

Kodi is version 16.1. I have tried all the available settings, set expert settings, disabled vaapi, but no matter what, it doesn't seem to work. I know some vdpau settings are supposed to show in the video settings of a playing video, but they aren't there. I see them on a laptop that uses vaapi, and I think I remember seeing them on a machine using nvidia with vdpau. Can it be forced to use vdpau on this setup?
If you don't see vdpau in the settings, Kodi was not compiled with vdpau support.
It is in the main settings. What I meant is that it doesn't show up in the context settings, such as when clicking over a playing video, then clicking the video icon. I see vaapi settings on another machine in those settings and I assume it's the same for vdpau. Instead, it's just generic settings that I see when there is neither vdpau or vaapi. Sorry for being confusing but the bottom line is that vdpau settings are in the main settings, and are enabled.
3650 has no gl interop, which we need. post your Debug Log it tells that loud and clear.
As you are risky anyways (running 10 years old hardware), try this:

Code:
MESA_EXTENSION_OVERRIDE="GL_NV_vdpau_interop" kodi

No support at all ... this will internally fall back to a pixmap way of doing things. You will miss vdpau functionality - for a background story:
http://forum.kodi.tv/showthread.php?tid=...au_interop
Debugging log was not on by default but you are right. The PC doesn't matter and is more of an experiment, but thanks for not leaving this as a mystery for me. The workaround of that variable does make the difference between playing hd videos and not, so whatever is missing don't matter on there. Worse things were probably done to that device in 10 years. The only problems I observed at a glance is that seeking is buggy, and there is some ugliness for about 3 seconds at the start of a video, then something catches up and seemingly plays fine and fluid, and some random skips if the gui comes up while it's playing.
(2016-08-08, 14:45)FernetMenta Wrote: [ -> ]If you don't see vdpau in the settings, Kodi was not compiled with vdpau support.

Servas Fernet,

i've big probs with videoplayback on my new installed Ubuntu 16.04
I install Kodi over the official ppa Version 16.1 GIT:C327C53.

Video playback is:
Hanging,
big pixels and green decoding pixel errors in the picture for ca. 3-7 seconds
horizontal lines in playback (and Menunavigations)

I've no Options for VDPAU in the System options of KODI. ! (Expert mode)
But it is installed on the OS.

What can i do to Compile Kodi with vdpau support so i can watch Videos like in Windoof. ?
Thanks a lot for help

Code:
17:13:04 T:140037234341632  NOTICE: VDPAU Decoder capabilities:
17:13:04 T:140037234341632  NOTICE: name          level macbs width height
17:13:04 T:140037234341632  NOTICE: ------------------------------------
17:13:04 T:140037234341632  NOTICE: MPEG1             0 65536  4080  4080
17:13:04 T:140037234341632  NOTICE: MPEG2_SIMPLE      3 65536  4080  4080
17:13:04 T:140037234341632  NOTICE: MPEG2_MAIN        3 65536  4080  4080
17:13:04 T:140037234341632  NOTICE: H264_BASELINE    41 65536  4096  4096
17:13:04 T:140037234341632  NOTICE: H264_MAIN        41 65536  4096  4096
17:13:04 T:140037234341632  NOTICE: H264_HIGH        41 65536  4096  4096
17:13:04 T:140037234341632  NOTICE: VC1_SIMPLE        1  8190  2048  2048
17:13:04 T:140037234341632  NOTICE: VC1_MAIN          2  8190  2048  2048
17:13:04 T:140037234341632  NOTICE: VC1_ADVANCED      4  8190  2048  2048
17:13:04 T:140037234341632  NOTICE: MPEG4_PART2_ASP   5  8192  2048  2048
17:13:04 T:140037234341632  NOTICE: ------------------------------------
17:13:04 T:140037234341632  NOTICE: Mixer feature: VDP_VIDEO_MIXER_FEATURE_NOISE_REDUCTION
17:13:04 T:140037234341632  NOTICE: Mixer feature: VDP_VIDEO_MIXER_FEATURE_SHARPNESS
17:13:04 T:140037234341632  NOTICE: Mixer feature: VDP_VIDEO_MIXER_FEATURE_DEINTERLACE_TEMPORAL
17:13:04 T:140037234341632  NOTICE: Mixer feature: VDP_VIDEO_MIXER_FEATURE_DEINTERLACE_TEMPORAL_SPATIAL
17:13:04 T:140037234341632  NOTICE: Mixer feature: VDP_VIDEO_MIXER_FEATURE_INVERSE_TELECINE
17:13:04 T:140037234341632  NOTICE: Mixer feature: VDP_VIDEO_MIXER_FEATURE_HIGH_QUALITY_SCALING_L1
17:13:04 T:140037234341632   ERROR: Decode - avcodec_decode_video returned failure
17:13:04 T:140037234341632 WARNING: CVideoSurfaces::ClearReference - surface invalid
17:13:04 T:140037234341632  NOTICE:  (VDPAU) screenWidth:1920 vidWidth:1920 surfaceWidth:1920
17:13:04 T:140037234341632  NOTICE:  (VDPAU) screenHeight:804 vidHeight:804 surfaceHeight:816
17:13:04 T:140037225948928  NOTICE: CDVDPlayerAudio::OutputPacket skipping a packets of duration 32
17:13:04 T:140037225948928  NOTICE: CDVDPlayerAudio::OutputPacket duplicate 1 packets of duration 32
17:13:04 T:140037049063168  NOTICE: COutput::OnStartup: Output Thread created
17:13:04 T:140037049063168  NOTICE: VDPAU::COutput::CreateGlxContext - created context
17:13:04 T:140037049063168  NOTICE: VDPAU::COutput: vdpau gl interop initialized
17:13:04 T:140036200724224  NOTICE: CMixer::OnStartup: Output Thread created
17:13:04 T:140036200724224  NOTICE:  (VDPAU) Creating the video mixer
17:13:04 T:140037049063168  NOTICE: VDPAU::COutput::InitBufferPool - Output Surface created
17:13:04 T:140037234341632  NOTICE: Previous line repeats 3 times.
17:13:04 T:140037234341632   ERROR:  (VDPAU) Error: An invalid handle value was provided.(3) at VDPAU.cpp:1064
17:13:04 T:140037234341632   ERROR: Decode - avcodec_decode_video returned failure
17:13:04 T:140037234341632   ERROR:  (VDPAU) Error: An invalid handle value was provided.(3) at VDPAU.cpp:1064
17:13:04 T:140037234341632   ERROR: Decode - avcodec_decode_video returned failure
17:13:04 T:140037234341632 WARNING: CVideoSurfaces::ClearReference - surface invalid
17:13:04 T:140037234341632   ERROR:  (VDPAU) Error: An invalid handle value was provided.(3) at VDPAU.cpp:1064
17:13:04 T:140037234341632   ERROR: Decode - avcodec_decode_video returned failure
17:13:04 T:140037049063168  NOTICE: VDPAU::COutput::InitBufferPool - Output Surface created
17:13:04 T:140037049063168  NOTICE: Previous line repeats 2 times.
17:13:04 T:140037049063168  NOTICE: VDPAU::COutput registered output surfaces
17:13:11 T:140038090864960  NOTICE: Previous line repeats 6 times.
17:13:11 T:140038090864960  NOTICE: CDVDPlayer::CloseFile()
17:13:11 T:140038090864960  NOTICE: DVDPlayer: waiting for threads to exit
17:13:11 T:140037266069248  NOTICE: CDVDPlayer::OnExit()
17:13:11 T:140037266069248  NOTICE: Closing stream player 1
17:13:11 T:140037266069248  NOTICE: Waiting for audio thread to exit
17:13:11 T:140037225948928  NOTICE: thread end: CDVDPlayerAudio::OnExit()
17:13:11 T:140037266069248  NOTICE: Closing audio device
17:13:11 T:140037266069248  NOTICE: Deleting audio codec
17:13:11 T:140037266069248  NOTICE: Closing stream player 2
17:13:11 T:140037266069248  NOTICE: waiting for video thread to exit
17:13:11 T:140037234341632  NOTICE: thread end: video_thread
17:13:11 T:140037266069248  NOTICE: deleting video codec
17:13:11 T:140037266069248  NOTICE: CVDPAU::Release pre-cleanup
17:13:11 T:140036200724224  NOTICE: CMixer::OnExit: Output Thread terminated
17:13:11 T:140038090864960  NOTICE: DVDPlayer: finished waiting
17:13:11 T:140038090864960  NOTICE:  (VDPAU) Close
17:13:11 T:140038090864960  NOTICE:  (VDPAU) FiniVDPAUOutput
17:13:11 T:140037049063168  NOTICE: VDPAU::COutput: vdpau gl interop finished
17:13:11 T:140037049063168  NOTICE: COutput::OnExit: Output Thread terminated
17:13:11 T:140038090864960  NOTICE: VDPAU::Close - closing decoder context
Don't cut logs thx. Retry, please.

Quote:17:13:04 T:140037234341632 ERROR: (VDPAU) Error: An invalid handle value was provided.(3) at VDPAU.cpp:1064
17:13:04 T:140037234341632 ERROR: Decode - avcodec_decode_video returned failure
17:13:04 T:140037234341632 ERROR: (VDPAU) Error: An invalid handle value was provided.(3) at VDPAU.cpp:1064

^^ local issue, not kodi related. Most likely unsupported GPU or non working driver.
(2016-10-26, 22:14)fritsch Wrote: [ -> ]Don't cut logs thx. Retry, please.

Quote:17:13:04 T:140037234341632 ERROR: (VDPAU) Error: An invalid handle value was provided.(3) at VDPAU.cpp:1064
17:13:04 T:140037234341632 ERROR: Decode - avcodec_decode_video returned failure
17:13:04 T:140037234341632 ERROR: (VDPAU) Error: An invalid handle value was provided.(3) at VDPAU.cpp:1064

^^ local issue, not kodi related. Most likely unsupported GPU or non working driver.

Upps here is a complete one ( pastebin ) with debug enabled, now the errors in the log are gone, but the videoplayback is not better.
I've installed NVIDIA Driver Version 361.42 on a GTX 750TI Card with 2GBDDR5.

thanks for help
dmesg | pastebinit please

There is something wrong in your installation. Also provide vdpauinfo | pastebinit
Recent NVidia Linux drivers are buggy. Try 340
(2016-10-27, 06:07)fritsch Wrote: [ -> ]dmesg | pastebinit please

There is something wrong in your installation. Also provide vdpauinfo | pastebinit

here they are :

dmesg
vdpauinfo

@FernetMenta .... i've changed to 340.96 but its not better now.

nice day ;-)
Please try libreelec from an USB stick. I want to see the hw is working properly before dump fixing ubuntu issues :-)
(2016-10-27, 17:38)fritsch Wrote: [ -> ]Please try libreelec from an USB stick. I want to see the hw is working properly before dump fixing ubuntu issues :-)

dmesg
vdpauinfo

yes,the movie decoding is much better...
Oki - so then we have an operating system issue which is not kodi related. Not sure howto continue here.
Pages: 1 2