Kodi Community Forum
VDPAU API for Linux released by NVIDIA today - GPU hardware accelerated video decoder - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Discussions (https://forum.kodi.tv/forumdisplay.php?fid=222)
+--- Forum: Feature Requests (https://forum.kodi.tv/forumdisplay.php?fid=9)
+--- Thread: VDPAU API for Linux released by NVIDIA today - GPU hardware accelerated video decoder (/showthread.php?tid=40362)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28


- motd2k - 2009-02-18

No, that is no longer the case


- Clumsy - 2009-02-18

Hardware assisted deinterlacing sounds nice - does this also work with mpeg2 content ? That would be killer, since DVB-S satellite tv comes interlaced and XBMC's deinterlacing doesn't seem to be that great.


- NEI - 2009-02-18

This is so great! Maybe I will buy a new MacMini if it has ion/nvidia in it and is capable to decode 1080p! :-D


- dzenc - 2009-02-18

motd2k Wrote:No, that is no longer the case

Awesome! Thanks so much.


- motd2k - 2009-02-18

hotzenpl0tz Wrote:Hardware assisted deinterlacing sounds nice - does this also work with mpeg2 content ? That would be killer, since DVB-S satellite tv comes interlaced and XBMC's deinterlacing doesn't seem to be that great.

Yes, it does.


- feerlessleadr - 2009-02-18

I have a question about this that perhaps someone could answer.

I don't want to sound combative, but if I understand reading through this thread, VDPAU is only going to be for linux variations of XBMC correct?

if so, I thought the devs (and I could be wrong) only were interested in cross platform solutions or implementations for XBMC and not something that was just for one platform?

I could have sworn reading some time ago about other ideas that were rejected because they were not cross platform. I guess I was just wondering about how or if this ever helps the Mac/Windows users of XBMC?


- spiff - 2009-02-18

it does not. vdpau is indeed linux only (and freebsd).

we never reject(ed) a single platform solution that can't be done in a cross platform way. but hw video acceleration is not on the list of things that can be done in a platform agnostic way. efforts to tap into the windows api's (DXVA - think that will be hard though as there's a DX in there) and whatever mac has (if it has anything at all) will be most welcome


- feerlessleadr - 2009-02-18

spiff Wrote:it does not. vdpau is indeed linux only (and freebsd).

we never reject(ed) a single platform solution that can't be done in a cross platform way. but hw video acceleration is not on the list of things that can be done in a platform agnostic way. efforts to tap into the windows api's (DXVA - think that will be hard though as there's a DX in there) and whatever mac has (if it has anything at all) will be most welcome

thanks for the clarification spiff

it is most helpful


- DGMurdockIII - 2009-02-18

mac is going to be using openCL - http://www.khronos.org/opencl/


- BLKMGK - 2009-02-19

OpenCL looks like it has a chance of crossplatform compatibility and has a great deal of vendor support but it's early yet in the spec development so we'll see. For now NVIDIA seems to be the only one offering accelerated drivers on Linux and someone stepped up to the plate to code it. I am surprised that no one has tried to do something for windows since it has APIs for acceleration too. <shrug>


- kalross - 2009-02-19

Using build 17853

Play XVID file...escape out and play 1080p MKV results in crash.

Output as follows:

*** glibc detected *** ./xbmc.bin: free(): invalid pointer: 0xb74ff190 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6[0xb741ea85]
/lib/tls/i686/cmov/libc.so.6(cfree+0x90)[0xb74224f0]
./xbmc.bin(_ZN19CDVDVideoCodecVDPAUD0Ev+0x44)[0x8769924]
./xbmc.bin(_ZN20CDVDVideoCodecFFmpegD0Ev+0x39)[0x8765937]
./xbmc.bin(_ZN15CDVDPlayerVideo11CloseStreamEb+0xd9)[0x8786e41]
./xbmc.bin(_ZN10CDVDPlayer16CloseVideoStreamEb+0x4f)[0x877c1dd]
./xbmc.bin(_ZN10CDVDPlayer6OnExitEv+0x120)[0x877d33a]
./xbmc.bin(_ZN7CThread12staticThreadEPv+0x1ed)[0x8a59a9b]
./xbmc.bin[0x89eabfd]
/usr/lib/libSDL-1.2.so.0[0xb7c3f1ab]
/usr/lib/libSDL-1.2.so.0[0xb7c8bbbd]
/lib/tls/i686/cmov/libpthread.so.0[0xb72b94fb]
/lib/tls/i686/cmov/libc.so.6(clone+0x5e)[0xb7489e5e]
======= Memory map: ========
08048000-08d46000 r-xp 00000000 08:01 723564 /home/kal/xbmc-vdpau/XBMC/xbmc.bin
08d46000-08d81000 rwxp 00cfd000 08:01 723564 /home/kal/xbmc-vdpau/XBMC/xbmc.bin
08d81000-0a1f2000 rwxp 08d81000 00:00 0 [heap]
a5c33000-a5e33000 rwxs 03c7a000 00:0e 14102 /dev/nvidia0
a6d21000-a6d22000 ---p a6d21000 00:00 0
a6d22000-a7522000 rwxp a6d22000 00:00 0
a7522000-a7523000 ---p a7522000 00:00 0
a7523000-a7d23000 rwxp a7523000 00:00 0
a95b9000-a97b9000 rwxs 087c1000 00:0e 14102 /dev/nvidia0
a97b9000-a97ba000 ---p a97b9000 00:00 0
a97ba000-a9fba000 rwxp a97ba000 00:00 0
a9fba000-a9fbb000 ---p a9fba000 00:00 0
a9fbb000-aa7bb000 rwxp a9fbb000 00:00 0
aa7bb000-aabde000 rwxp b1397000 00:00 0
aaf49000-ab2d0000 r-xp 00000000 08:01 868672 /home/kal/xbmc-vdpau/XBMC/system/players/dvdplayer/avcodec-52-i486-linux.so
ab2d0000-ab2d7000 rwxp 00387000 08:01 868672 /home/kal/xbmc-vdpau/XBMC/system/players/dvdplayer/avcodec-52-i486-linux.so
ab2d7000-ab573000 rwxp ab2d7000 00:00 0
ab573000-ab574000 ---p ab573000 00:00 0
ab574000-abd74000 rwxp ab574000 00:00 0
abd74000-abd75000 ---p abd74000 00:00 0
abd75000-ac575000 rwxp abd75000 00:00 0
ac575000-ac576000 ---p ac575000 00:00 0
ac576000-acd76000 rwxp ac576000 00:00 0
acd76000-acd77000 ---p acd76000 00:00 0
acd77000-ad577000 rwxp acd77000 00:00 0
ad577000-ad777000 rwxs 2090e000 00:0e 14102 /dev/nvidia0
ad977000-ad978000 ---p ad977000 00:00 0
ad978000-ae178000 rwxp ad978000 00:00 0
ae21e000-ae41e000 rwxs 1f57f000 00:0e 14102 /dev/nvidia0
ae6fe000-ae6ff000 ---p ae6fe000 00:00 0
ae6ff000-aeeff000 rwxp ae6ff000 00:00 0
aeeff000-aef00000 ---p aeeff000 00:00 0
aef00000-af7ed000 rwxp aef00000 00:00 0
af7ed000-af800000 ---p af7ed000 00:00 0
af881000-af9f9000 rwxp af881000 00:00 0
af9f9000-afa00000 ---p af9f9000 00:00 0
afa00000-afaf1000 rwxp afa00000 00:00 0
afaf1000-afb00000 ---p afaf1000 00:00 0
afb00000-afbf1000 rwxp afb00000 00:00 0
afbf1000-afc00000 ---p afbf1000 00:00 0
afc7a000-affff000 rwxp afc7a000 00:00 0
affff000-b0000000 ---p affff000 00:00 0
b0000000-b08f1000 rwxp b0000000 00:00 0
b08f1000-b0900000 ---p b08f1000 00:00 0
b0900000-b09fd000 rwxp b0900000 00:00 0
b09fd000-b0a00000 ---p b09fd000 00:00 0
b0a00000-b0afd000 rwxp b0a00000 00:00 0
b0afd000-b0b00000 ---p b0afd000 00:00 0
b1006000-b1067000 r-xp 00000000 08:01 2039886 /usr/lib/libvdpau_nvidia.so.180.29
b1067000-b10ef000 rwxp 00060000 08:01 2039886 /usr/lib/libvdpau_nvidia.so.180.29
b10ef000-b12ef000 rwxs 1d6df000 00:0e 14102 /dev/nvidia0
b1335000-b1400000 rwxp b1335000 00:00 0
b15a5000-b16a5000 rwxs 203ea000 00:0e 14102 /dev/nvidia0
b16a5000-b16b0000 r-xp 00000000 08:01 868541 /home/kal/xbmc-vdpau/XBMC/system/players/dvdplayer/liba52-i486-linux.so
b16b0000-b16b1000 rwxp 0000a000 08:01 868541 /home/kal/xbmc-vdpau/XBMC/system/players/dvdplayer/liba52-i486-linux.so
b16b1000-b16b2000 rwxp b16b1000 00:00 0
b186f000-b1938000 rwxp b186f000 00:00 0
b19b9000-b19f9000 rwxs 1f60e000 00:0e 14102 /dev/nvidia0
b19f9000-b1bf9000 rwxs 25af9000 00:0e 14102 /dev/nvidia0
b1c00000-b1d00000 rwxp b1c00000 00:00 0
b1d0f000-b1d59000 rwxp 00000000 00:0e 964 /dev/zero
b1d59000-b1dd2000 r-xp 00000000 08:01 868654 /home/kal/xbmc-vdpau/XBMC/system/players/dvdplayer/avformat-52-i486-linux.so
b1dd2000-b1dd5000 rwxp 00079000 08:01 868654 /home/kal/xbmc-vdpau/XBMC/system/players/dvdplayer/avformat-52-i486-linux.so
b1dd5000-b1dfb000 rwxp b1dd5000 00:00 0
b1dfb000-b1dfc000 ---p b1dfb000 00:00 0
b1dfc000-b25fc000 rwxp b1dfc000 00:00 0
b25fc000-b25fd000 ---p b25fc000 00:00 0
b25fd000-b2dfd000 rwxp b25fd000 00:00 0
b2dfd000-b2dfe000 ---p b2dfd000 00:00 0
b2dfe000-b35fe000 rwxp b2dfe000 00:0Aborted (core dumped)


----------------------------

All Swedish to me...but hope it helps.

K

From xbmc.log

----------------------------------

00:52:03 T:3050989408 M:1100091392 NOTICE: DVDPlayer: Opening: /media/Storage2/Movies/1080p.BluRay.x264.mkv
00:52:03 T:3050989408 M:1100091392 NOTICE: CDVDPlayer::CloseFile()
00:52:03 T:3050989408 M:1100091392 NOTICE: DVDPlayer: waiting for threads to exit
00:52:03 T:2911341456 M:1100091392 NOTICE: CDVDPlayer::OnExit()
00:52:03 T:2911341456 M:1100091392 NOTICE: DVDPlayer: closing audio stream
00:52:03 T:2911341456 M:1100091392 NOTICE: Closing audio stream
00:52:03 T:2911341456 M:1100091392 NOTICE: Waiting for audio thread to exit
00:52:03 T:2860039056 M:1100091392 ERROR: AddPackets - failed to add leftover bytes to render
00:52:03 T:2860039056 M:1100091392 NOTICE: thread end: CDVDPlayerAudio::OnExit()
00:52:03 T:2860039056 M:1100091392 DEBUG: staticThread, deleting thread graphic context
00:52:03 T:2860039056 M:1100091392 DEBUG: Thread 2860039056 terminating
00:52:03 T:2911341456 M:1100091392 NOTICE: Closing audio device
00:52:03 T:2869951376 M:1100177408 DEBUG: staticThread, deleting thread object
00:52:03 T:2869951376 M:1100177408 DEBUG: staticThread, deleting thread graphic context
00:52:03 T:2869951376 M:1100177408 DEBUG: Thread 2869951376 terminating
00:52:03 T:2911341456 M:1100177408 NOTICE: Deleting audio codec
00:52:03 T:2911341456 M:1100177408 NOTICE: DVDPlayer: closing video stream
00:52:03 T:2911341456 M:1100177408 NOTICE: Closing video stream
00:52:03 T:2911341456 M:1100177408 NOTICE: waiting for video thread to exit
00:52:03 T:3001011088 M:1100177408 NOTICE: thread end: video_thread
00:52:03 T:3001011088 M:1100177408 DEBUG: staticThread, deleting thread graphic context
00:52:03 T:3001011088 M:1100177408 DEBUG: Thread 3001011088 terminating
00:52:03 T:2911341456 M:1100177408 NOTICE: deleting video codec

-------------------------------------------------------


- BLKMGK - 2009-02-19

You've clipped logs and not used pastebin <sigh> Check out this thread -> http://forum.xbmc.org/showthread.php?tid=34655 Sometimes things show up early in the logs that the developers want and early portions of the log also detail your configuration better than most users do...


- kalross - 2009-02-19

BLKMGK Wrote:You've clipped logs and not used pastebin <sigh> Check out this thread -> http://forum.xbmc.org/showthread.php?tid=34655 Sometimes things show up early in the logs that the developers want and early portions of the log also detail your configuration better than most users do...

OK. I live and learn.

Thanks for the info.


- motd2k - 2009-02-19

kalross Wrote:Using build 17853

Play XVID file...escape out and play 1080p MKV results in crash.

Output as follows:

*** glibc detected *** ./xbmc.bin: free(): invalid pointer: 0xb74ff190 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6[0xb741ea85]
/lib/tls/i686/cmov/libc.so.6(cfree+0x90)[0xb74224f0]
./xbmc.bin(_ZN19CDVDVideoCodecVDPAUD0Ev+0x44)[0x8769924]
./xbmc.bin(_ZN20CDVDVideoCodecFFmpegD0Ev+0x39)[0x8765937]
./xbmc.bin(_ZN15CDVDPlayerVideo11CloseStreamEb+0xd9)[0x8786e41]
./xbmc.bin(_ZN10CDVDPlayer16CloseVideoStreamEb+0x4f)[0x877c1dd]


Thanks, I'll look into it later... looks like i'm not checking before freeing Smile


- kalross - 2009-02-20

motd2k Wrote:Thanks, I'll look into it later... looks like i'm not checking before freeing Smile

I understand that :-)

K