[New Plugin] WebServices + Transcoded streaming + Web Interface for TvServer and MP (1 Viewer)

Status
Not open for further replies.

Seidelin

Retired Team Member
  • Premium Supporter
  • August 14, 2006
    1,755
    652
    Kgs. Lyngby
    Home Country
    Denmark Denmark
    Re: [New Plugin] WebServices + Transcoded streaming + Web Interface for TvServer and

    I get the same error on the new beta 5 as mironicus. And that is on a clean install.
     

    ianc

    MP Donator
  • Premium Supporter
  • December 29, 2007
    132
    1
    wicklow
    Home Country
    Ireland Ireland
    Re: [New Plugin] WebServices + Transcoded streaming + Web Interface for TvServer and

    Good news - It's now letting me login and displaying the default screen. However it giving this exception when I search for a movie:

    Code:
    [I]Server Error in '/' Application.
    --------------------------------------------------------------------------------
    
    Object reference not set to an instance of an object. 
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 
    
    Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
    
    Source Error: 
    
    
    Line 87:       doc.Load(AppDomain.CurrentDomain.BaseDirectory + "config.xml");
    Line 88:       XmlNode gNode = doc.SelectSingleNode("/appconfig/config");
    Line 89:       return gNode.Attributes["scraper_url"].Value;
    Line 90:     }
    Line 91:     public static int GetPlayerType()
     
    
    Source File: f:\Program Files\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs\App_Code\Utils.cs    Line: 89 
    
    Stack Trace: 
    
    
    [NullReferenceException: Object reference not set to an instance of an object.]
       MediaPortal.TvServer.WebServices.Utils.GetScraperURL() in f:\Program Files\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs\App_Code\Utils.cs:89
       Default.GetScraperLink(String s) in f:\Program Files\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs\Default.aspx.cs:102
       Default.RefreshMovies() in f:\Program Files\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs\Default.aspx.cs:392
       Default.btnSearchMovie_Click(Object sender, EventArgs e) in f:\Program Files\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs\Default.aspx.cs:375
       System.Web.UI.WebControls.Button.OnClick(EventArgs e) +78
       System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +100
       System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
       System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
       System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2863
    
     
    
    
    --------------------------------------------------------------------------------
    Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927 [/I]

    I can see TVServer status ok and music selection works ok. Pressing the TV button gives this:

    Code:
    [I]Server Error in '/' Application.
    --------------------------------------------------------------------------------
    
    The column notify in table Program does not exist. 
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 
    
    Exception Details: Gentle.Common.GentleException: The column notify in table Program does not exist.
    
    Source Error: 
    
    
    Line 86:       this.name = ch.DisplayName;
    Line 87:       this.isWebStream = ch.IsWebstream();
    Line 88:       epgNow = new WebShortProgram(ch.CurrentProgram);
    Line 89:       epgNext=new WebShortProgram(ch.NextProgram);
    Line 90:     }
     
    
    Source File: f:\Program Files\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs\App_Code\Classes.cs    Line: 88 
    
    Stack Trace: 
    
    
    [GentleException: The column notify in table Program does not exist.]
       Gentle.Common.Check.FailWith(Severity severity, Error error, Exception e, String msg) +124
       Gentle.Common.Check.Fail(Exception e, Error error, Object[] args) +42
       Gentle.Common.Check.Fail(Error error, Object[] args) +10
       Gentle.Framework.GentleAnalyzer.UpdateObjectMap(ObjectMap map) +1849
       Gentle.Framework.ObjectFactory.ConstructMap(PersistenceBroker broker, Type type) +1519
       Gentle.Framework.ObjectFactory.GetMap(PersistenceBroker broker, Type type) +114
       Gentle.Framework.SqlBuilder..ctor(IGentleProvider provider, StatementType stmtType, Type type, LogicalOperator logicalOperator) +204
       Gentle.Framework.SqlBuilder..ctor(StatementType stmtType, Type type) +13
       TvDatabase.Channel.UpdateNowAndNext() +428
       TvDatabase.Channel.get_CurrentProgram() +10
       MediaPortal.TvServer.WebServices.Classes.WebMiniEPG..ctor(Channel ch) in f:\Program Files\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs\App_Code\Classes.cs:88
       MediaPortal.TvServer.WebServices.ServiceInterface.GetTvMiniEPGForGroup(Int32 idGroup) in f:\Program Files\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs\App_Code\TvServiceWebServices.asmx.cs:230
       Default.RefreshTv() in f:\Program Files\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs\Default.aspx.cs:181
       Default.btnTv_Click(Object sender, EventArgs e) in f:\Program Files\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs\Default.aspx.cs:111
       System.Web.UI.WebControls.Button.OnClick(EventArgs e) +78
       System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +100
       System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
       System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
       System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2863[/I]

    Accessing pictures gives this error:

    Code:
    'cbPicturePath' has a SelectedIndex which is invalid because it does not exist in the list of items.
    Parameter name: value

    The errors read like I'm running on an old version of MP (with fields missing from the databases) but I'm running on latest SVN (24553) on a fresh install of W7 Ultimate.
     

    gemx

    Retired Team Member
  • Premium Supporter
  • October 31, 2006
    1,972
    539
    Home Country
    Germany Germany
    Re: [New Plugin] WebServices + Transcoded streaming + Web Interface for TvServer and

    Please post your config.xml.

    Have you used the config.xml from the last version?

    If so, then this doesn't work.

    Please try to insert
    scraper_url=""

    inside the <config tag AFTER you finished configuring and restart tvservice
     

    mylle

    Portal Pro
    April 14, 2005
    574
    66
    Denmark
    Home Country
    Denmark Denmark
    Re: [New Plugin] WebServices + Transcoded streaming + Web Interface for TvServer and

    2010-01-01 20:27:56.846200 [10]: MPWebServices: Exception raised while loading settings:
    Object reference not set to an instance of an object.
    at TvServerPlugin.Settings.LoadSettings()
    2010-01-01 20:27:56.861800 [10]: MPWebServices: settings are invalid. Can't start web server!!!


    Config.xml looks like this.

    <appconfig>
    <config httpport="81" thumbwidth="70" thumbheight="70" clientplayerpath="c:\program files\Videolan\VLC\vlc.exe" playertype="0" streamurl="http://SERVER:81" username="admin" password="admin" scraper_url="" />
    <transcoders>
    <transcoder name="direct" usetranscoding="0" filename=" " args="" inputmethod="1" outputmethod="1" />
    <transcoder name="divx (320x200)" usetranscoding="1" filename="c:\mencoder\mencoder.exe" args="&quot;{0}&quot; -quiet -cache 8192 -ovc lavc -vf scale=320:200,harddup -ffourcc DX50 -oac mp3lame -o {1}" inputmethod="0" outputmethod="1" />
    <transcoder name="mpeg2 (240x160)" usetranscoding="1" filename="c:\mencoder\mencoder.exe" args="&quot;{0}&quot; -quiet -cache 8192 -vf scale=240:160 -oac lavc -of lavf -lavfopts format=dvd -ovc lavc -lavcopts vcodec=mpeg2video:vbitrate=512:threads=2:acodec=ac3:abitrate=128 -ofps 24000/1001 -o {1}" inputmethod="0" outputmethod="1" />
    <transcoder name="flv" usetranscoding="1" filename="c:\mencoder\mencoder.exe" args="&quot;{0}&quot; -quiet -cache 8192 -forceidx -of lavf -oac mp3lame -lameopts abr:br=56 -srate 22050 -ovc lavc -lavcopts vcodec=flv:vbitrate=250:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 -vf scale=360:240 -o {1}" inputmethod="0" outputmethod="1" />
    </transcoders>
    <mpdatabases>
    <database name="movies" filename="C:\ProgramData\Team MediaPortal\MediaPortal\database\VideoDatabaseV5.db3" />
    <database name="music" filename="C:\ProgramData\Team MediaPortal\MediaPortal\database\MusicDatabaseV11.db3" />
    <database name="pictures" filename="" />
    <database name="tvseries" filename="" />
    <database name="movingpictures" filename="" />
    </mpdatabases>
    <thumbpaths>
    <thumb name="tv" filename="C:\ProgramData\Team MediaPortal\MediaPortal\thumbs\tv\logos" />
    <thumb name="radio" filename="C:\ProgramData\Team MediaPortal\MediaPortal\thumbs\radio\logos" />
    <thumb name="pictures" filename="c:\ProgramData\Team MediaPortal\MediaPortal\thumbs\Pictures" />
    </thumbpaths>
    </appconfig>
     

    ianc

    MP Donator
  • Premium Supporter
  • December 29, 2007
    132
    1
    wicklow
    Home Country
    Ireland Ireland
    Re: [New Plugin] WebServices + Transcoded streaming + Web Interface for TvServer and

    Please post your config.xml.

    Have you used the config.xml from the last version?

    If so, then this doesn't work.

    Please try to insert
    scraper_url=""

    inside the <config tag AFTER you finished configuring and restart tvservice

    Here's the Config.xml from F:\Program Files\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs when I look at it with notepad:

    Code:
    <appconfig>
      <config httpport="8080" thumbwidth="70" thumbheight="70" clientplayerpath="c:\program files\Videolan\VLC\vlc.exe" playertype="0" streamurl="http://192.168.1.101:8080" username="admin" password="XXXX" />
      <transcoders>
        <transcoder name="direct" usetranscoding="0" filename=" " args="" inputmethod="1" outputmethod="1" />
        <transcoder name="divx (320x200)" usetranscoding="1" filename="c:\mencoder\mencoder.exe" args="&quot;{0}&quot; -quiet -cache 8192 -ovc lavc -vf scale=320:200,harddup -ffourcc DX50 -oac mp3lame -o {1}" inputmethod="0" outputmethod="1" />
        <transcoder name="mpeg2 (240x160)" usetranscoding="1" filename="c:\mencoder\mencoder.exe" args="&quot;{0}&quot; -quiet -cache 8192 -vf scale=240:160 -oac lavc -of lavf -lavfopts format=dvd -ovc lavc -lavcopts vcodec=mpeg2video:vbitrate=512:threads=2:acodec=ac3:abitrate=128 -ofps 24000/1001 -o {1}" inputmethod="0" outputmethod="1" />
      </transcoders>
      <mpdatabases>
        <database name="movies" filename="F:\ProgramData\Team MediaPortal\MediaPortal\database\VideoDatabaseV5.db3" />
        <database name="music" filename="F:\ProgramData\Team MediaPortal\MediaPortal\database\MusicDatabaseV11.db3" />
        <database name="pictures" filename="F:\ProgramData\Team MediaPortal\MediaPortal\database\PictureDatabase.db3" />
        <database name="tvseries" filename="" />
        <database name="movingpictures" filename="" />
      </mpdatabases>
    </appconfig>

    And here it is when I just double click on it and view in IE8

    Code:
    - <appconfig>
      <config httpport="8080" thumbwidth="70" thumbheight="70" clientplayerpath="c:\program files\Videolan\VLC\vlc.exe" playertype="0" streamurl="http://192.168.1.20:8080" username="admin" password="admin" /> 
    - <transcoders>
      <transcoder name="direct" usetranscoding="0" filename="" args="" inputmethod="1" outputmethod="1" /> 
      <transcoder name="divx (320x200)" usetranscoding="1" filename="c:\mencoder\mencoder.exe" args=""{0}" -quiet -cache 8192 -ovc lavc -vf scale=320:200,harddup -ffourcc DX50 -oac mp3lame -o {1}" inputmethod="0" outputmethod="1" /> 
      <transcoder name="mpeg2 (240x160)" usetranscoding="1" filename="c:\mencoder\mencoder.exe" args=""{0}" -quiet -cache 8192 -vf scale=240:160 -oac lavc -of lavf -lavfopts format=dvd -ovc lavc -lavcopts vcodec=mpeg2video:vbitrate=512:threads=2:acodec=ac3:abitrate=128 -ofps 24000/1001 -o {1}" inputmethod="0" outputmethod="1" /> 
      </transcoders>
    - <mpdatabases>
      <database name="movies" filename="" /> 
      <database name="music" filename="" /> 
      <database name="pictures" filename="" /> 
      <database name="tvseries" filename="" /> 
      <database name="movingpictures" filename="" /> 
      </mpdatabases>
      </appconfig>

    What the hell! Why are they different??????
    Anyways - I confirmed that the Notepad one was the version getting picked up. I stuck the scraper_url="" into the config file and managed to get past the error - Thanks. However this update gets wiped once I use SetupTV.

    My problems with TV and Pictures are still there
     

    gemx

    Retired Team Member
  • Premium Supporter
  • October 31, 2006
    1,972
    539
    Home Country
    Germany Germany
    Re: [New Plugin] WebServices + Transcoded streaming + Web Interface for TvServer and

    Please try the attached MPWebServices.dll.

    Config should work now. I forgot to add the new scraper_url setting.
     

    Attachments

    • MPWebServices.rar
      30.6 KB

    mylle

    Portal Pro
    April 14, 2005
    574
    66
    Denmark
    Home Country
    Denmark Denmark
    Re: [New Plugin] WebServices + Transcoded streaming + Web Interface for TvServer and

    Still not working

    2010-01-02 12:34:42.629600 [10]: MPWebServices: Exception raised while loading settings:
    Object reference not set to an instance of an object.
    at TvServerPlugin.Settings.LoadSettings()
    2010-01-02 12:34:42.629600 [10]: MPWebServices: settings are invalid. Can't start web server!!!
     

    shh26_83

    MP Donator
  • Premium Supporter
  • November 19, 2009
    40
    1
    Home Country
    Germany Germany
    Re: [New Plugin] WebServices + Transcoded streaming + Web Interface for TvServer and

    Geht leider immer noch nicht.
    Server startet nicht und lässt sich auch nach dem ersten Konfigaufruf nicht mehr erneut einstellen.
    Bild bleibt leer!
     

    NoFear23m

    MP Donator
  • Premium Supporter
  • December 11, 2008
    518
    146
    Home Country
    Austria Austria
    Re: [New Plugin] WebServices + Transcoded streaming + Web Interface for TvServer and

    Habe leider das slbe Problem wie shh26_83, egal welchen Port ich einstelle (nach einem Deinstall und nochmaligem Installieren kann man ja wieder in die Einstellungen), ich bekomme einfach nichts in den Explorer. Sieht fast so auch als würde der Webserver nicht starten. Ist das nur bei der letzten Version der Fall? Hat jemand eine ältere die er hier einstellen könnte?
    Würde das Interface nämlich VOLL gerne ausprobieren. :)

    Schöne Grüße
    Sascha
     

    mischa

    Portal Member
    March 5, 2008
    17
    4
    Edingen-Neckarhausen
    Home Country
    Germany Germany
    Re: [New Plugin] WebServices + Transcoded streaming + Web Interface for TvServer and

    Hi,

    the plugin-setup dialog write
    <thumbpaths>
    <thumb name="tv" filename="C:\ProgramData\Team MediaPortal\MediaPortal\thumbs\tv\logos" />

    instead
    <thumbpaths>
    <thumb name="tv" path="C:\ProgramData\Team MediaPortal\MediaPortal\thumbs\tv\logos" />

    filename vs. path

    Mischa
     
    Status
    Not open for further replies.

    Users who are viewing this thread

    Top Bottom