[Approved] Fix for stuttering/corrupted streaming of live tv (2 Viewers)

mylle

Portal Pro
April 14, 2005
574
66
Denmark
Home Country
Denmark Denmark
Re: AW: Fix for stuttering/corrupted streaming of live tv

@arion_p
At least for me - it could also be solved by just using ONE single buffer file. My stuttering always starts after the ts file changes - so i'm still not sure if it is really the caching.

When i set the filesize to 1000MB i can watch stutterfree until the 1000MB are reached...

I think arion_p is refering to the "cant open file" issue when talkingabout the pontential caching problem.
 

tourettes

Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    Re: AW: Fix for stuttering/corrupted streaming of live tv

    @arion_p
    At least for me - it could also be solved by just using ONE single buffer file. My stuttering always starts after the ts file changes - so i'm still not sure if it is really the caching.

    When i set the filesize to 1000MB i can watch stutterfree until the 1000MB are reached...

    I think arion_p is refering to the "cant open file" issue when talkingabout the pontential caching problem.

    Yes, the SMB cache we are refering is not file content cache but instead the folder content one.
     

    disaster123

    MP Donator
  • Premium Supporter
  • May 14, 2008
    3,558
    434
    Home Country
    Germany Germany
    AW: Fix for stuttering/corrupted streaming of live tv

    But strange that there only a few people seeing this. For me this is working fine => folder cache.
     

    tourettes

    Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    Re: AW: Fix for stuttering/corrupted streaming of live tv

    But strange that there only a few people seeing this. For me this is working fine => folder cache.

    Is it working? Since the folder cache issue would appear when time shifting file is changed - you said that one big TS buffer will solve the issue for you.
     

    arion_p

    Retired Team Member
  • Premium Supporter
  • February 7, 2007
    3,367
    1,642
    Athens
    Home Country
    Greece Greece
    I think that file content cache can affect too. The tsbuffer file changes rapidly when a new TS file is created. If the client does not see this change early enough it will start reading the wrong ts file. I have found no definite answer as to when the Read Cache is invalidated in an SMB client, so it is entirely possible that the client is seeing the wrong version of the tsbuffer file. I have also seen references to SMB read cache not being cleared even after a file has been closed and reopened. And I have personally experienced DB corruption on (heavily used) shared MDB files.
     

    disaster123

    MP Donator
  • Premium Supporter
  • May 14, 2008
    3,558
    434
    Home Country
    Germany Germany
    AW: Re: AW: Fix for stuttering/corrupted streaming of live tv

    But strange that there only a few people seeing this. For me this is working fine => folder cache.

    Is it working? Since the folder cache issue would appear when time shifting file is changed - you said that one big TS buffer will solve the issue for you.

    oh i see stuttering in that case and mostly discontinue errors but it find the new file immediatly - no problem with cannot find file like mylle.
     

    mylle

    Portal Pro
    April 14, 2005
    574
    66
    Denmark
    Home Country
    Denmark Denmark
    Re: AW: Re: AW: Fix for stuttering/corrupted streaming of live tv

    But strange that there only a few people seeing this. For me this is working fine => folder cache.

    Is it working? Since the folder cache issue would appear when time shifting file is changed - you said that one big TS buffer will solve the issue for you.

    oh i see stuttering in that case and mostly discontinue errors but it find the new file immediatly - no problem with cannot find file like mylle.

    Just to make sure that we are on the same page!

    Disaster and I have different issues but they might relate to the same root cause.

    My issue is this:

    https://forum.team-mediaportal.com/mediaportal-1-2-0-alpha-536/why-oh-why-read-no-file-92517/

    regards
    Jacob
     

    mcrob83

    MP Donator
  • Premium Supporter
  • November 10, 2009
    206
    12
    St.Marienkirchen, Eferding
    Home Country
    Austria Austria
    AW: Fix for stuttering/corrupted streaming of live tv

    Interesting discussion: changing the handling of the tsreader would also make "Fortherecord" users happier, I think. Especially with UNC stuttering occurs, when a new timeshiftfile is created. Rtsp is also not running flawless, it starts to freeze or stutter after a while. With vlc the rtsp stream runs as it should.
     

    disaster123

    MP Donator
  • Premium Supporter
  • May 14, 2008
    3,558
    434
    Home Country
    Germany Germany
    AW: Fix for stuttering/corrupted streaming of live tv

    tourettes
    can you tell me what the .info file handling in tsreader is? I've never seen a .info file in MP.
     

    dvdfreak

    Portal Pro
    June 13, 2006
    979
    178
    Home Country
    Belgium Belgium
    Re: AW: Fix for stuttering/corrupted streaming of live tv

    Interesting discussion: changing the handling of the tsreader would also make "Fortherecord" users happier, I think. Especially with UNC stuttering occurs, when a new timeshiftfile is created. Rtsp is also not running flawless, it starts to freeze or stutter after a while. With vlc the rtsp stream runs as it should.
    I did an experiment with creating only a single "looping" timeshift file in Argus, and while this works fine server-side the problem is that MP's tsreader can't handle this :( It stops playing the moment the file "wraps". So modifcations would be needed so it understands that the current-position offset will actually wrap back to the beginning of the same file.

    I do like the simplicity of this approach -- and a single looping file may also bypass the UNC problems some of you are seeing.
     

    Users who are viewing this thread

    Top Bottom