Msills / tou-tv-xmbc

Automatically exported from code.google.com/p/tou-tv-xmbc
1 stars 0 forks source link

The plugin (or XBMC dvd player) does not work with VDPAU #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. On linux, go to SYSTEM/VIDEO/PLAYBACK/RENDER METHOD
2. Set the value to VDPAU
3. Play a video with the Tou.tv plugin

What is the expected output? What do you see instead?
No image, the screen is green.

What version of the product are you using? On what operating system?
XBMC Built on August 19 2010 (SVN:26018).  Ubuntu 9.04 Karmic.

Please provide any additional information below.

This is working fine with any other render method.  As I was tired to manually 
change this setting everytime I wanted to play a tou.tv video, I found this 
code that fixes the problem:

Replace:

elif mode == 1:
    playVideo(url, name, thumb, plot)

By:

elif mode == 1:
    # Get current RendorMethod 
    iCurrentRenderMethod = int(xbmc.executehttpapi("GetGUISetting(0;VideoPlayer.RenderMethod)").replace("<li>",""))

    # If RenderMethod is is 4 (RENDER_METHOD_VDPAU) set it to 3 (RENDER_METHOD_SOFTWARE). See http://trac.xbmc.org/browser/trunk/xbmc/GUISettings.h for other values.
    if iCurrentRenderMethod == 4:
        xbmc.executehttpapi("SetGUISetting(0;VideoPlayer.RenderMethod;3)")

        playVideo(url, name, thumb, plot)

        #Pause long enough for mplayer to start
        import time
        time.sleep(5)

        # Set back to the current RendorMethod 
        xbmc.executehttpapi("SetGUISetting(0;VideoPlayer.RenderMethod,%d)" % ( iCurrentRenderMethod, ))

Original issue reported on code.google.com by zachary....@gmail.com on 18 Nov 2010 at 2:53

GoogleCodeExporter commented 9 years ago
This issue can now be closed.  With the Dharma release, you cannot use VDPAU 
directly.  The render method is auto-detected and VDPAU is only used if needed. 
 Tou.tv does not need it; so version 0.1.0 works as is without any change.

Original comment by zachary....@gmail.com on 8 Mar 2011 at 5:29

GoogleCodeExporter commented 9 years ago
Closed, see comment 1

Original comment by michael....@gmail.com on 16 Mar 2011 at 11:07