[Approved] Fix for stuttering/corrupted streaming of live tv (1 Viewer)

sukceso

Portal Pro
November 6, 2008
181
31
Herrenberg
Home Country
Germany Germany
It would be perfect if you could add a patch file for the current SVN as well. Would like to test it, but running current SVN.
 

te3hpurp

Retired Team Member
  • Premium Supporter
  • September 23, 2008
    910
    231
    Rovaniemi
    Home Country
    Finland Finland
    I was able to compile at work. Currently it's working fine.
    No side effects so far.

    Br,
     

    te3hpurp

    Retired Team Member
  • Premium Supporter
  • September 23, 2008
    910
    231
    Rovaniemi
    Home Country
    Finland Finland
    Here is whole setup files, because my htpc is in use and I cannot get my hands into it now:), so I cannot get pnly filters.
    These are quite big files, so they should be deleted after a while.

    Br,
     

    disaster123

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

    Does anybody have an idea why i'm getting:
    "Error 4 error C3861: '_snprintf': identifier not found DirectShowFilters\LiveMedia555\liveMedia\RTSPServer.cpp 438 LiveMedia555"
    for the whole LiveMedia555 project when i'm trying to compile tsreader?
     

    mylle

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

    hi miroslav22 since your patch my biggest problem is this:
    Code:
    26-12-2010 22:25:49.298 [e78]FileReader::Read() no open file
    26-12-2010 22:25:49.298 [e78]READ FAILED1
    26-12-2010 22:25:49.319 [d08]SEEK FAILED
    26-12-2010 22:25:49.319 [d08]FileReader::Read() no open file
    26-12-2010 22:25:49.319 [d08]READ FAILED1
    26-12-2010 22:25:49.339 [e78]SEEK FAILED
    26-12-2010 22:25:49.339 [e78]FileReader::Read() no open file
    26-12-2010 22:25:49.339 [e78]READ FAILED1
    26-12-2010 22:25:49.357 [d08]SEEK FAILED
    26-12-2010 22:25:49.358 [d08]FileReader::Read() no open file
    26-12-2010 22:25:49.358 [d08]READ FAILED1
    26-12-2010 22:25:49.377 [d08]SEEK FAILED
    26-12-2010 22:25:49.378 [d08]FileReader::Read() no open file
    26-12-2010 22:25:49.378 [d08]READ FAILED1
    26-12-2010 22:25:49.401 [e78]SEEK FAILED
    26-12-2010 22:25:49.402 [e78]FileReader::Read() no open file
    26-12-2010 22:25:49.402 [e78]READ FAILED1
    26-12-2010 22:25:49.419 [d08]SEEK FAILED
    26-12-2010 22:25:49.419 [d08]FileReader::Read() no open file
    26-12-2010 22:25:49.420 [d08]READ FAILED1
    26-12-2010 22:25:49.441 [e78]SEEK FAILED
    26-12-2010 22:25:49.442 [e78]FileReader::Read() no open file
    26-12-2010 22:25:49.442 [e78]READ FAILED1
    26-12-2010 22:25:49.460 [d08]SEEK FAILED
    26-12-2010 22:25:49.460 [d08]FileReader::Read() no open file
    26-12-2010 22:25:49.461 [d08]READ FAILED1

    Full log file can be found here:
    TsReader-2010-12-26.Log

    Stefan


    Hi Stefan,

    Did you get any further with this? Its bugging the hell out of me.

    here is part of my log

    01-01-2011 19:38:36.966 [f50]Demux : Video to render 1.505 Sec
    01-01-2011 19:38:37.008 [f50]Demux : Video to render 1.489 Sec
    01-01-2011 19:38:53.735 [f50]MultiFileReader has error 0x80 in Loop 0. Try to clear SMB Cache.
    01-01-2011 19:39:57.617 [f50]Demux : Video to render 1.488 Sec
    01-01-2011 19:41:31.167 [f50]MultiFileReader has error 0x80 in Loop 0. Try to clear SMB Cache.
    01-01-2011 19:44:08.599 [f50]MultiFileReader has error 0x80 in Loop 0. Try to clear SMB Cache.
    01-01-2011 19:46:45.617 [f50]Demux : Video to render 1.484 Sec
    01-01-2011 19:46:45.991 [f50]MultiFileReader has error 0x80 in Loop 0. Try to clear SMB Cache.
    01-01-2011 19:49:23.404 [f50]MultiFileReader has error 0x80 in Loop 0. Try to clear SMB Cache.
    01-01-2011 19:52:01.009 [dc0]FileReader::OpenFile(), open file \\SERVER\Timeshifting\live2-0.ts.tsbuffer1.ts failed. Error code 2
    01-01-2011 19:52:01.009 [dc0]SEEK FAILED
    01-01-2011 19:52:01.009 [dc0]FileReader::Read() no open file
    01-01-2011 19:52:01.009 [dc0]READ FAILED2
    01-01-2011 19:52:01.011 [dc0]FileReader::CloseFile() no open file
    01-01-2011 19:52:01.019 [f50]FileReader::OpenFile(), open file \\SERVER\Timeshifting\live2-0.ts.tsbuffer1.ts failed. Error code 2
    01-01-2011 19:52:01.019 [f50]SEEK FAILED
    01-01-2011 19:52:01.019 [f50]FileReader::Read() no open file
    01-01-2011 19:52:01.019 [f50]READ FAILED2
    01-01-2011 19:52:01.029 [f50]SEEK FAILED
    01-01-2011 19:52:01.029 [f50]FileReader::Read() no open file
    01-01-2011 19:52:01.029 [f50]READ FAILED2
    01-01-2011 19:52:01.039 [f50]SEEK FAILED
    01-01-2011 19:52:01.039 [f50]FileReader::Read() no open file
    01-01-2011 19:52:01.039 [f50]READ FAILED2
    01-01-2011 19:52:01.049 [f50]SEEK FAILED
    01-01-2011 19:52:01.049 [f50]FileReader::Read() no open file
    01-01-2011 19:52:01.049 [f50]READ FAILED2
    01-01-2011 19:52:01.059 [f50]SEEK FAILED
    01-01-2011 19:52:01.059 [f50]FileReader::Read() no open file
    01-01-2011 19:52:01.059 [f50]READ FAILED2
    01-01-2011 19:52:01.069 [f50]SEEK FAILED
    01-01-2011 19:52:01.069 [f50]FileReader::Read() no open file
    01-01-2011 19:52:01.069 [f50]READ FAILED2
    01-01-2011 19:52:01.079 [f50]SEEK FAILED
    01-01-2011 19:52:01.079 [f50]FileReader::Read() no open file
    01-01-2011 19:52:01.079 [f50]READ FAILED2
    01-01-2011 19:52:01.089 [f50]SEEK FAILED
    01-01-2011 19:52:01.089 [f50]FileReader::Read() no open file
    01-01-2011 19:52:01.089 [f50]READ FAILED2
    01-01-2011 19:52:01.099 [f50]SEEK FAILED
    01-01-2011 19:52:01.099 [f50]FileReader::Read() no open file
    01-01-2011 19:52:01.099 [f50]READ FAILED2
    01-01-2011 19:52:01.109 [f50]SEEK FAILED
    01-01-2011 19:52:01.109 [f50]FileReader::Read() no open file
    01-01-2011 19:52:01.109 [f50]READ FAILED2
    01-01-2011 19:52:01.115 [dc0]FileReader::OpenFile(), open file \\SERVER\Timeshifting\live2-0.ts.tsbuffer1.ts failed. Error code 2
    01-01-2011 19:52:01.115 [dc0]SEEK FAILED
    01-01-2011 19:52:01.115 [dc0]FileReader::Read() no open file
    01-01-2011 19:52:01.115 [dc0]READ FAILED2
    01-01-2011 19:52:01.116 [dc0]SEEK FAILED
    01-01-2011 19:52:01.116 [dc0]FileReader::Read() no open file
    01-01-2011 19:52:01.116 [dc0]READ FAILED2
    01-01-2011 19:52:01.119 [f50]SEEK FAILED
    01-01-2011 19:52:01.119 [f50]FileReader::Read() no open file
    01-01-2011 19:52:01.119 [f50]READ FAILED2
    01-01-2011 19:52:01.129 [f50]SEEK FAILED
    01-01-2011 19:52:01.129 [f50]FileReader::Read() no open file
    01-01-2011 19:52:01.129 [f50]READ FAILED2
    01-01-2011 19:52:01.139 [f50]SEEK FAILED
    01-01-2011 19:52:01.139 [f50]FileReader::Read() no open file
    01-01-2011 19:52:01.139 [f50]READ FAILED2
    01-01-2011 19:52:01.149 [f50]SEEK FAILED
    01-01-2011 19:52:01.149 [f50]FileReader::Read() no open file
     

    miroslav22

    Development Group Member
  • Premium Supporter
  • September 4, 2009
    703
    460
    Warwick
    Home Country
    United Kingdom United Kingdom
    Hi Mylle,

    Have you always had this problem? (ie this patch hasn't introduced it)

    Error code 2 simple means the file doesn't exist that it's trying to open.

    How often does it happen and what are the symptoms? Does it recover on its own, or do you have to stop live tv and start it again? Storing the buffer files on a network drive will always cause problems but perhaps the code needs a few more retries and a longer delay between each.

    Edit: I presume the network share is hosted on a windows machine and not a linux samba drive etc?
     

    disaster123

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

    mylle
    no sorry i'm on holiday until tomorrow - but atm i've the problem that i can't compile the filters at all - see my post above.

    miroslav22
    Do you know if the ts filelist file (don't know the name atm but the file which holds the buffer file list) is perhaps filled before the real buffer file is created? If the order is correct (file created then added to the list) it could also be a windows SMB caching problem. Windows is really strange what belongs to this. I also introduced a ty to clean SMB cache hack to tsreader some years ago (tourettes added it then to SVN).
     

    mylle

    Portal Pro
    April 14, 2005
    574
    66
    Denmark
    Home Country
    Denmark Denmark
    Hi Mylle,

    Have you always had this problem? (ie this patch hasn't introduced it)

    Error code 2 simple means the file doesn't exist that it's trying to open.

    How often does it happen and what are the symptoms? Does it recover on its own, or do you have to stop live tv and start it again? Storing the buffer files on a network drive will always cause problems but perhaps the code needs a few more retries and a longer delay between each.

    Edit: I presume the network share is hosted on a windows machine and not a linux samba drive etc?

    Hi Miroslav22,

    You patch has NOT introduced this issue. Its been there for a long time. It varies how often it happens. Sometimes only a few times a day sometimes more. I dont see a pattern in why this happens. i can usually do a 15 second back skip and it starts the video again but sometimes the MP client crashes to the desktop. I believe the chrashing to the desktop happens if i notice the freeze to late (away from tv). The share is on a windows machine.

    regards
    Jacob
     

    miroslav22

    Development Group Member
  • Premium Supporter
  • September 4, 2009
    703
    460
    Warwick
    Home Country
    United Kingdom United Kingdom
    I do think it's likely to be some kind of caching or timing problem. From what I can see, the file is always created successfully before the file name is added to the buffer file list.

    The time difference between the file being created and then added to the buffer file list would be very small (almost zero). It could therefore just be a timing problem that a network share just doesn't 'see' the new file until a few ms after it is created. It could also be that when windows creates a file on a network drive, it returns successful before the file is actually physically created in the filesystem (ie added to some kind of queue or cache)

    It should be fixable through retrys if this is the case, i'm not sure i'll have the time to look at it though i'm afraid
     

    Users who are viewing this thread

    Top Bottom