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

Status
Not open for further replies.

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

    Looking good
    I've even got VLC plugin working.

    Thanks

    I
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    AW: [New Plugin] WebServices + Transcoded streaming + Web Interface for TvServer and

    hi,

    I installed RC3 and its working fine on my x64 HTPC :D

    maybe there was some other issue with the beta build removal before.


    :D again
     

    shh26_83

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

    hi,

    I installed RC3 and its working fine on my x64 HTPC :D

    maybe there was some other issue with the beta build removal before.


    :D again

    RC3 :eek:
    i find only RC2 to download!
     

    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,

    i have added transcoding for certain bandwidth that found here (only in german but the code is readably): VDR Portal | Capturen - Digitalisieren - Aufnehmen | Streaming über verschiedene Bandbreiten (DSL bis LAN)
    Code:
        <transcoder name="MPEG4 (DSL1000)" usetranscoding="1" filename="C:\Program Files\MPlayer\mencoder.exe" args="&quot;{0}&quot; -quiet -cache 8192 -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=100 -oac mp3lame -lameopts preset=15:mode=3 -vf scale=160:104  -o {1}" inputmethod="0" outputmethod="1" />
        <transcoder name="MPEG4 (DSL2000)" usetranscoding="1" filename="C:\Program Files\MPlayer\mencoder.exe" args="&quot;{0}&quot; -quiet -cache 8192 -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=128 -oac mp3lame -lameopts preset=15:mode=3 -vf scale=160:104  -o {1}" inputmethod="0" outputmethod="1" />
        <transcoder name="MPEG4 (DSL6000)" usetranscoding="1" filename="C:\Program Files\MPlayer\mencoder.exe" args="&quot;{0}&quot; -quiet -cache 8192 -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=350 -oac mp3lame -lameopts preset=15:mode=3 -vf scale=320:208  -o {1}" inputmethod="0" outputmethod="1" />
        <transcoder name="MPEG4 (LAN10)" usetranscoding="1" filename="C:\Program Files\MPlayer\mencoder.exe" args="&quot;{0}&quot; -quiet -cache 8192 -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=4096 -oac mp3lame -lameopts preset=standard -o {1}" inputmethod="0" outputmethod="1" />
        <transcoder name="MPEG4 (WLAN11)" usetranscoding="1" filename="C:\Program Files\MPlayer\mencoder.exe" args="&quot;{0}&quot; -quiet -cache 8192 -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=768 -oac mp3lame -lameopts preset=standard -vf scale=640:408 -o {1}" inputmethod="0" outputmethod="1" />
        <transcoder name="MPEG4 (WLAN54)" usetranscoding="1" filename="C:\Program Files\MPlayer\mencoder.exe" args="&quot;{0}&quot; -quiet -cache 8192 -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=2048 -oac mp3lame -lameopts preset=standard -o {1}" inputmethod="0" outputmethod="1" />
        <transcoder name="MPEG4 (IPAQ)" usetranscoding="1" filename="C:\Program Files\MPlayer\mencoder.exe" args="&quot;{0}&quot; -quiet -cache 8192 -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=350 -oac mp3lame -lameopts preset=15:mode=3 -vf scale=320:208 -o {1}" inputmethod="0" outputmethod="1" />

    Note: Puth this in the config.xml and adjust the mencoder path to your system.

    I don't know the option of memcoder. so give me a hint why the wlan54 transcoding don't have the correct scale? It is by me more highly instead of broader.

    The DSL 2000 line is good working for me from outside my local network (from work).

    When i play from internet with a dynamic dns entry, i found that in tv section the picturestreamer url is absolut with the value "streamurl" from the config. This is working only for one host, but i used two: in my local network i used for the moment the privat ip and from outside i used my dyndns value. I think for forwarding the port from inside to outside must not be the same.
    Why used (and where) this value? Can you make this relative?

    And when i open the tv section from internet with my slowly bandwidth from 192kbits upload, the loading time for the tv section with more than 250 channels is to much because to load all the channel-picture. I don't have installed yet channel logos. So all the picturestreamer calls return nothing. Can you make this to only load the picture when it is exists (evaluate before the tv section is viewing in default.aspx.cs and static send a blank image) or when the picture is not found send a blank picture? This will also solve the gappings between channels with and without channel-logos.

    Greetings,
    Mischa
     

    ravenrocks

    Portal Pro
    October 11, 2007
    351
    96
    Re: [New Plugin] WebServices + Transcoded streaming + Web Interface for TvServer and

    Found bug: Logos containing special characters such as + and & don't show in the WEBIF. Example: All Canal+ channellogos are empty.
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    AW: Re: AW: [New Plugin] WebServices + Transcoded streaming + Web Interface for TvSer

    hi,

    I installed RC3 and its working fine on my x64 HTPC :D

    maybe there was some other issue with the beta build removal before.


    :D again

    RC3 :eek:
    i find only RC2 to download!

    :D typed on my very small HTPC keyboard, the keys are very small *LOL*
     

    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

    Release cycle got pretty high speed - RC 3 is up :D

    Also note the additions i made to the tv server status page.

    BTW: i finished with implementing new ideas/features

    Next RC will (most) probably only contain bugfixes and then will become the first stable release :)
     

    VASkO

    Portal Member
    September 18, 2008
    48
    2
    Home Country
    Slovenia Slovenia
    Re: [New Plugin] WebServices + Transcoded streaming + Web Interface for TvServer and

    some bugs still in RC3 running on Win7 x64 system.
    In Default.aspx.cs i'm somehow getting channels with id=0 from foreach WebMiniEPG loop. Inserted a check if (epg.idChannel==0) continue; cured that problem.
    Another one is on the TV Server status page. For the totalPhysicalMem you have to use the Int64 type (see the .NET documentation) or you get an overflow error.
    Also after line 103 I had to add a check for drive.Length>0 then GetDriveUsage else just do nothing, cause it threw an index out of bounds error for some reason - just a quick fix, don't know what's in recPaths, cause I don't have a debugger here.

    edit:
    try to add -I dummy --dummy-quiet in the vlc transcoding line to disable opening up a cmd box or vlc, when doing transcoding. also there's a bug in the line for vlc transcoding: access:f_ile should be access:file (without space)

    Also no logos (tv thumbs, video thumbs...) are shown on my pages.

    edit2:
    yet, there are logos, didn't know, MP changed the logos format to PNG. after converting all my logos to .PNG format, I see them. sorry for misreporting.
     

    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

    Hi,

    i click on TVServer-Status and an Error are displayed:
    "
    Serverfehler in der Anwendung /.
    --------------------------------------------------------------------------------

    Der Wert für einen Int32 war zu groß oder zu klein.
    Beschreibung: Unbehandelte Ausnahme beim Ausführen der aktuellen Webanforderung. Überprüfen Sie die Stapelüberwachung, um weitere Informationen über diesen Fehler anzuzeigen und festzustellen, wo der Fehler im Code verursacht wurde.

    Ausnahmedetails: System.OverflowException: Der Wert für einen Int32 war zu groß oder zu klein.

    Quellfehler:


    Zeile 80: manufacturer = mo["manufacturer"].ToString();
    Zeile 81: computername = mo["name"].ToString();
    Zeile 82: totalPhysicalMem = Convert.ToInt32(mo["totalphysicalmemory"]);
    Zeile 83: totalPhysicalMem = (totalPhysicalMem / 1024) / 1024;
    Zeile 84: }


    Quelldatei: c:\Program Files\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs\TvServerStatus.aspx.cs Zeile: 82

    Stapelüberwachung:


    [OverflowException: Der Wert für einen Int32 war zu groß oder zu klein.]
    System.Convert.ToInt32(UInt64 value) +2881297
    System.UInt64.System.IConvertible.ToInt32(IFormatProvider provider) +9
    System.Convert.ToInt32(Object value) +28
    TvServerStatus.RefreshServerInfo(List`1 recPaths) in c:\Program Files\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs\TvServerStatus.aspx.cs:82
    TvServerStatus.Page_Load(Object sender, EventArgs e) in c:\Program Files\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs\TvServerStatus.aspx.cs:65
    System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
    System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +43
    System.Web.UI.Control.OnLoad(EventArgs e) +73
    System.Web.UI.Control.LoadRecursive() +52
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2184




    --------------------------------------------------------------------------------
    Versionsinformationen: Microsoft .NET Framework-Version:2.0.50727.4927; ASP.NET-Version:2.0.50727.4927
    "

    what`s this?
    what can i do?
    --
    My System are:
    Prozessor:
    AMD Phenom(tm) II X4 905e Processor
    OS:
    Microsoft Windows 7 Professional 6.1.7600
    Ram:
    4096MB (2x 2GB)
    --

    best regards
    simon
     

    altytesty

    Portal Pro
    December 19, 2009
    57
    9
    Re: [New Plugin] WebServices + Transcoded streaming + Web Interface for TvServer and

    The problem is that when YOUR server/pc streams something so that it is accessable from the internet, you probably won't have enough bandwith to stream video files.

    A typical ADSL line of 6 MBits has:

    ~ 6 MBits downstream
    ~ 512 kb updstream

    When you watch a movie from the internet your downstream rate is used when you yourself stream something TO the internet, your UPSTREAM bandwidth is used.
    So that would about 64 KBytes/s max. Subtract at least 10 kb for protocol overhead and the like and you end up with a bandwidth of ~ 50 KBytes/s MAX. I guess a video that is compressed like that won't be watchable.

    BTW: That's the difference between S(ynchronous)-DSL and A(synchronous)-DSL


    In SDSL both Upstream and downstream have the same bandwidth and in ADSL they have different bandwidth ;)

    actually 51 kilobytes/sec (KB) is more than sufficient for streaming watchable video.
    Streaming players cache data before beginning to play, hence the reason why people with 51 kilobyte/sec internet can still watch content from terrible providers such as hulu.

    Just like shoutcast or other streaming services, a defined bitrate can be set by the server. If the server streams at 28 KB/sec, then they'll have extra bandwidth still available.

    Streaming content at even dialup bandwidth produces watchable video.
    With 50 KB /sec is only takes 20 seconds to caches 1 Megabyte (MB) of video.

    Cheers

    AND some rambling and venting :)

    PS: any provider with flash content should be fined $1,000,000 US per second per video on it's servers.

    ANYONE considering streaming video...please do so in a technologically sensible manner and avoid flash containers and formats.
    (Yes im aware that alot of cool stuff is available via flash and youtube uses flash....doesn't mean you should do the same idiot thing.)
     
    Status
    Not open for further replies.

    Users who are viewing this thread

    Top Bottom