[confirm] Why oh Why :( Read() no open file (2 Viewers)

pilehave

Community Skin Designer
  • Premium Supporter
  • April 2, 2008
    2,566
    521
    Hornslet
    Denmark Denmark
    The change i'm making is to create the next timeshifting file before the previous one is completely filled. This should allow plenty of time for the next file to be ready on the network share before it is needed.

    At the moment a new file is only created the instant the previous one is completely filled and (i'm guessing) it sometimes takes a little while to be 'seen' on the share which is why it sometimes fails to open.
    To ensure that the file is visible on the network, perhaps it could be accessed by the client ie. 10 seconds before it should be visible? This should ensure that Windows has the path cached, right?

    Maybe this is already your idea :)

    :D
     

    miroslav22

    Development Group Member
  • Premium Supporter
  • September 4, 2009
    703
    460
    Warwick
    United Kingdom United Kingdom
    Country flag
    Hopefully a similar change won't be needed for tsreader, but we'll see how it goes :) Shouldn't be difficult if needed
     

    mylle

    Portal Pro
    April 14, 2005
    574
    66
    Denmark
    Denmark Denmark
    OK,

    Seems timeshifting to a ram drive does not make a difference with my setup :(

    Hopefully V4 of the patch will be ready soon :)

    regards
    Jacob
     

    miroslav22

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

    Unfortunately i've not been able to replicate this problem so can't confirm this will help. V4 of the attached patch contains the code that creates the next buffer file in advance. Would anyone mind testing it to see if it helps and post back either way?

    Thanks :)
     

    Attachments

    romuz

    Retired Team Member
  • Premium Supporter
  • July 26, 2008
    1,045
    250
    Moskau
    Russian Federation Russian Federation
    Hi applied that patch
    and now im geting stops of live tv (using unc)
    tsreader log contains new errors

    23-01-2011 20:36:54.891 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:36:55.898 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:36:56.904 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:36:57.911 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:36:58.920 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:36:59.929 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:37:00.935 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:37:01.942 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:37:02.948 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:37:03.954 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:37:04.962 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:37:05.969 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:37:06.977 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:37:07.984 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:37:08.993 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:37:09.999 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:37:11.008 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:37:12.018 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:37:13.026 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:37:14.033 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:37:15.042 [a18]FileReader::Read() read to less bytes

    + discontinuites
     

    miroslav22

    Development Group Member
  • Premium Supporter
  • September 4, 2009
    703
    460
    Warwick
    United Kingdom United Kingdom
    Country flag
    Hi applied that patch
    and now im geting stops of live tv (using unc)
    tsreader log contains new errors

    23-01-2011 20:36:54.891 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:36:55.898 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:36:56.904 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:36:57.911 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:36:58.920 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:36:59.929 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:37:00.935 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:37:01.942 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:37:02.948 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:37:03.954 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:37:04.962 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:37:05.969 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:37:06.977 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:37:07.984 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:37:08.993 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:37:09.999 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:37:11.008 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:37:12.018 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:37:13.026 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:37:14.033 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:37:15.042 [a18]FileReader::Read() read to less bytes

    + discontinuites
    Thanks Romuz, i'll try again :)

    Would everyone mind posting what their network setup is like? Mine's all fully wired 1gbps which might be why i'm not seeing these problems.

    Does anyone use wireless or homeplug/powerline adaptors?
     

    romuz

    Retired Team Member
  • Premium Supporter
  • July 26, 2008
    1,045
    250
    Moskau
    Russian Federation Russian Federation
    Mine 1gbps wired too
    additional info

    23-01-2011 22:06:07.861 [d70]FileReader::Read() read to less bytes
    23-01-2011 22:06:08.868 [d70]FileReader::Read() read to less bytes
    23-01-2011 22:06:09.877 [d70]FileReader::Read() read to less bytes
    23-01-2011 22:06:10.886 [d70]FileReader::Read() read to less bytes
    23-01-2011 22:06:11.893 [d70]FileReader::Read() read to less bytes
    23-01-2011 22:06:12.903 [d70]FileReader::Read() read to less bytes
    this errors happens even right after skip back for 15 sec so it is not related with network files caching

    BUT imho my main issue related to that tsreader are too close to the end of the buffer
    because after skiping back logs like this

    23-01-2011 21:55:51.562 [710]Demux : Video to render 0.899 Sec
    23-01-2011 21:55:51.564 [710]Demux : Audio to render 0.603 Sec
    23-01-2011 21:55:55.175 [710]Demux : Audio to render 0.590 Sec
    23-01-2011 21:55:55.415 [710]Demux : Audio to render 0.578 Sec
    23-01-2011 21:55:56.017 [710]Demux : Video to render 0.768 Sec
    23-01-2011 21:55:56.020 [710]Demux : Audio to render 0.464 Sec
    23-01-2011 21:56:30.565 [710]Demux : Audio to render 0.354 Sec
    23-01-2011 21:56:32.988 [710]Demux : Audio to render 0.326 Sec
    23-01-2011 21:56:36.737 [710]Demux : Video to render 0.750 Sec
    23-01-2011 21:56:46.137 [710]Demux : Audio to render 0.263 Sec
    23-01-2011 21:56:53.813 [710]Demux : Video to render 0.671 Sec
    23-01-2011 21:58:17.776 [710]Audio Continuity error... 1 ( prev e )
    23-01-2011 21:58:39.181 [710]Demux : Audio to render 0.116 Sec
    23-01-2011 21:58:39.182 [710]Demux : Video to render 0.477 Sec
    23-01-2011 21:58:46.258 [710]Audio Continuity error... 2 ( prev 0 )
    23-01-2011 21:58:46.260 [710]Video Continuity error... f ( prev c )

    are gone and all works perefectly
    even with FileReader::Read() read to less bytes
    it is not produce any visual issues
     

    tompa

    MP Donator
  • Premium Supporter
  • October 3, 2005
    665
    34
    Stockholm
    Sweden Sweden
    Would everyone mind posting what their network setup is like? Mine's all fully wired 1gbps which might be why i'm not seeing these problems.

    Does anyone use wireless or homeplug/powerline adaptors?
    In my case its a 100Mbs wired network. What I have seen is thats its only happens on one of my clients (not tested yet with 1.2a), so I think its due to that NIC.
    Could that be the case?

    /tompa
     

    Users Who Are Viewing This Thread (Users: 0, Guests: 2)

    OP Similar threads Forum Replies Date
    J Reading mp4 on Client PC General 0
    S MP restarts after 10-30 sec - how to read error logs General Support 1
    horned_reaper [solved] HID commands are not processed when multiple applications with HID support are open General Support 16
    BrownGhost Mepo/MediaInfo takes 59 secunds to open library and start play :o( General Support 26
    J [solved] Newbie to MediaPortal 2 - Cannot open/run TV programs Newcomers Forum 4
    lisag Can I get MP1 to open in the Recorded TV screen? MediaPortal 1 Talk 2
    Terra Crash when opening ACTORS list My TVSeries 3
    T [further infos missing] MP2.2 client crashes on open (after upgrade) 2.2 Archive 34
    C video wont open, screen goes black and reverts to video menu General Support 3
    T How to open MP on the extended desktop? Input / Output interfaces 8
    G MP2 - V2.1 Won't open after installing Older releases 8
    S Why open source fails and Integration wins for complex programs General 15
    J MP2 - V2.1 Opening settings on client! Older releases 2
    D Downloading EPG XML file: Installation, configuration support 0
    M [solved] WTV Files does not play on client, MPEG files works well General 1
    bigboss97 Does anyone has a SoundGraph imon remote file for MP2 to share? General 0
    J Help with new grabber file. WebEPG 1
    S [solved] No sound - MKV file MediaPortal 1 Talk 2
    G WTV files General 11
    Golf4 TV-Records werden als Audio-Files importiert ? Allgemeines Support- und Diskussionsforum 0
    azzuro [fixed] [WIP MP2.3] - Audio files not imported to MP MediaPortal 2 18
    HTPCSourcer Media Accessor is flooding logs with files from attached monitor MediaPortal 2 9
    R [will not fix] [MP2-832] MP2.2.2 subtitles not shown for WTV files Submit: Bug Reports 7
    R [solved] Files moved to new location - Easy way to update database? My TVSeries 7
    R Files moved to different location - Easy way to update database? Moving Pictures 2
    Similar threads

























    Top Bottom