MERGING MediaPortal Url Source Splitter & IPTV Filter (1 Viewer)

georgius

Retired Team Member
  • Premium Supporter
  • October 31, 2010
    1,376
    654
    Bratislava
    Home Country
    Slovakia Slovakia
    Mhm, i thought i had the latest filter installed... Nevertheless, installed it again. Same stuttering. Here are the new logs. May be there is something to see...
    Again nothing on server side. Did you try to record channel and after stopping recording, did you try to play recording?
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    Hello

    The "PES fail" entries like this:
    PES H264 0-0-1 fail

    ...at the start of the TsReader log mean the stream is still encrypted when you first try to watch it. Interestingly there is a PES fail entry after approximately 30 seconds of viewing:
    [2015-03-15 18:19:22,138] [Log ] [MPMain ] [WARN ] - tvhome:startplay. Phase 2 - 1251 ms - Done starting g_Player.Play()
    ...
    [2015-03-15 18:19:50,180] [ d64efe8] [1594] - PES audio 0-0-1 fail
    [2015-03-15 18:19:50,180] [ d64efe8] [1594] - PES H264 0-0-1 fail

    That's a bit unusual.

    ...but probably the main cause of the stuttering are the messages like this:
    [2015-03-15 18:19:23,927] [ d64efe8] [ b90] - audPin : Audio to render late= 0.082
    [2015-03-15 18:19:51,520] [ d64efe8] [1594] - Demux : Audio to render too late= -0.096 Sec
    [2015-03-15 18:19:53,831] [ d64efe8] [15ac] - Pause 195 mS renderer clock to match provider/RTSP clock, A/V = 0/15

    Perhaps you could try to increase the TsReader buffer size:
    https://forum.team-mediaportal.com/threads/experimental-tsreader-development.102693/#post-811296
    New feature: Registry key added to adjust data buffering time - HKEY_CURRENT_USER\Software\Team MediaPortal\TsReader, set "BufferingDelayInMilliSeconds" to a (decimal) value in milliseconds (range is 0 to 2000, default is 0). Note - this will add delay to live TV channel changes since it needs to build up the buffer before play starts.

    Otherwise, perhaps @Owlsroost has some further insight.

    Regards,
    mm
     

    Owlsroost

    Retired Team Member
  • Premium Supporter
  • October 28, 2008
    5,540
    5,038
    Cambridge
    Home Country
    United Kingdom United Kingdom
    Perhaps you could try to increase the TsReader buffer size:
    https://forum.team-mediaportal.com/threads/experimental-tsreader-development.102693/#post-811296
    New feature: Registry key added to adjust data buffering time - HKEY_CURRENT_USER\Software\Team MediaPortal\TsReader, set "BufferingDelayInMilliSeconds" to a (decimal) value in milliseconds (range is 0 to 2000, default is 0). Note - this will add delay to live TV channel changes since it needs to build up the buffer before play starts.
    Otherwise, perhaps @Owlsroost has some further insight.


    Increasing the initial buffering delay would be my suggestion too. Basically TsReader is probably running out of data (or the data flow is not smooth/regular enough)
     

    mike1

    MP Donator
  • Premium Supporter
  • September 7, 2012
    88
    8
    59
    Home Country
    Germany Germany
    I checked that forum article, thank you.
    Is there a way to check wether the buffer is too slow? The same stream shown with VLC is ok.
    I it possible to set the buffer size for defined channels in the filter?


    I tried with pause and continue - it stutters. So the buffer size would not help, right?.
     

    georgius

    Retired Team Member
  • Premium Supporter
  • October 31, 2010
    1,376
    654
    Bratislava
    Home Country
    Slovakia Slovakia
    I checked that forum article, thank you.
    Is there a way to check wether the buffer is too slow? The same stream shown with VLC is ok.
    I it possible to set the buffer size for defined channels in the filter?


    I tried with pause and continue - it stutters. So the buffer size would not help, right?.
    If you pause and continue playback (with some gap, e.g. 30 seconds), then problem with high probability is in playback. Server side is not affected by pause.
     

    mike1

    MP Donator
  • Premium Supporter
  • September 7, 2012
    88
    8
    59
    Home Country
    Germany Germany
    No. It is really strange, today it works.-) I did not change anything...
    I will test during next days...
    Thank you for offering help!
     

    Ministerk

    Super User
  • Team MediaPortal
  • Super User
  • November 28, 2007
    970
    826
    Uppsala
    Home Country
    Sweden Sweden
    EDIT:

    Now it doesn't work even if I put Connection: Keep-Alive in the header. Going to disable this host at the moment. It has gone from working, through sort of not working, to not working at all in like 24h...
    Never give up! Added an iPhone user agent and it works!

    Original message:

    Hi,

    I've stumbled on a problem where a online source (a hoster in OnlineVideos) needs to have connection keep-alive in the http header, without it I get a 404 (in fiddler). This is using MPUrlSourceFilter.HttpUrl.

    Is there anything I can do to make the connection keep-alive?

    Edit: If you want or need to debug it add this to your OnlineVideoSites.xml (if you don't have enabled it already)
    XML:
        <Site name="Swefilmer" util="SwefilmerSite" agecheck="false" enabled="true" lang="sv">
          <Description>Titta på filmer på nätet med svenska undertexter.</Description>
        </Site>

    The util used is in trunk of OnlineVideos SVN
    Goto Swefilmer site choose "Dokumentär" category and pick "Let it be (1970)" video and the Videomega source.

    Edit again:
    If I take the the url and the header information from the mpurlsource log and do the request with the fiddler composer it works if I add Connection: Keep-Alive to the header (of course before cookies expires).
     
    Last edited:

    georgius

    Retired Team Member
  • Premium Supporter
  • October 31, 2010
    1,376
    654
    Bratislava
    Home Country
    Slovakia Slovakia
    EDIT:

    Now it doesn't work even if I put Connection: Keep-Alive in the header. Going to disable this host at the moment. It has gone from working, through sort of not working, to not working at all in like 24h...
    Never give up! Added an iPhone user agent and it works!

    Original message:

    Hi,

    I've stumbled on a problem where a online source (a hoster in OnlineVideos) needs to have connection keep-alive in the http header, without it I get a 404 (in fiddler). This is using MPUrlSourceFilter.HttpUrl.

    Is there anything I can do to make the connection keep-alive?

    Edit: If you want or need to debug it add this to your OnlineVideoSites.xml (if you don't have enabled it already)
    XML:
        <Site name="Swefilmer" util="SwefilmerSite" agecheck="false" enabled="true" lang="sv">
          <Description>Titta på filmer på nätet med svenska undertexter.</Description>
        </Site>

    The util used is in trunk of OnlineVideos SVN
    Goto Swefilmer site choose "Dokumentär" category and pick "Let it be (1970)" video and the Videomega source.

    Edit again:
    If I take the the url and the header information from the mpurlsource log and do the request with the fiddler composer it works if I add Connection: Keep-Alive to the header (of course before cookies expires).
    This is not possible to pass custom headers to filter (for now), but I try to implement this.
     

    georgius

    Retired Team Member
  • Premium Supporter
  • October 31, 2010
    1,376
    654
    Bratislava
    Home Country
    Slovakia Slovakia
    EDIT:

    Now it doesn't work even if I put Connection: Keep-Alive in the header. Going to disable this host at the moment. It has gone from working, through sort of not working, to not working at all in like 24h...
    Never give up! Added an iPhone user agent and it works!

    Original message:

    Hi,

    I've stumbled on a problem where a online source (a hoster in OnlineVideos) needs to have connection keep-alive in the http header, without it I get a 404 (in fiddler). This is using MPUrlSourceFilter.HttpUrl.

    Is there anything I can do to make the connection keep-alive?

    Edit: If you want or need to debug it add this to your OnlineVideoSites.xml (if you don't have enabled it already)
    XML:
        <Site name="Swefilmer" util="SwefilmerSite" agecheck="false" enabled="true" lang="sv">
          <Description>Titta på filmer på nätet med svenska undertexter.</Description>
        </Site>

    The util used is in trunk of OnlineVideos SVN
    Goto Swefilmer site choose "Dokumentär" category and pick "Let it be (1970)" video and the Videomega source.

    Edit again:
    If I take the the url and the header information from the mpurlsource log and do the request with the fiddler composer it works if I add Connection: Keep-Alive to the header (of course before cookies expires).
    Filter from version 2.1.8.5587 supports additional HTTP headers, changes already made to OV source code (SVN 3659).
     

    Users who are viewing this thread

    Top Bottom