[solved] - Playback stops when seeking to live point in recordings

Discussion in 'General Support' started by Threarah, July 2, 2017.

  1. Threarah
    • Premium Supporter

    Threarah MP Donator

    Joined:
    October 24, 2013
    Messages:
    20
    Likes Received:
    2
    Ratings:
    +9 / 0
    Home Country:
    New Zealand New Zealand
    Show System Specs
    When seeking forward to the live point (scroll bar says END) in an active recording, playback stops and returns to the menu. This doesn't happen when watching a live channel directly. This doesn't appear to be channel specific (I thought it may have been related to a particular channel with a weird A/V delay/skew, but it happens on other, normal channels too) as in testing I reproduced it on three different channels. I can only reproduce it on a 'single seat' setup (MP + TV server running on same machine), and it doesn't appear to happen when streaming to other clients (MP only) on the LAN.



    I've attached logs showing it happening several times. You should be able to tell which seeks were done on live TV or active recording from the logs themselves.

    FWIW - I'm not sure if it's relevant - this is with the latest TsReader.ax from my other thread, although the same happens with the default 1.16 one as well. IIRC this has been happening since at least MP 1.15, though I'm not certain when it began.

    Possibly relevant stuff:
    MP 1.16 single seat install
    Latest Windows 10 x64 (Creators Update)
    i3-7100 CPU + integrated graphics (latest drivers)
     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. Owlsroost
    • Team MediaPortal

    Owlsroost Development Group

    Joined:
    October 28, 2008
    Messages:
    5,537
    Likes Received:
    2,829
    Location:
    Cambridge
    Ratings:
    +4,131 / 1
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    Thanks for the logs - I can see what is happening.

    Basically TsReader allows seeking to within 3 seconds of the end of the file (which is what it's doing in the logs), but of course then it needs to read data forwards from that point to find a 'random access' point in the video stream so it can start playing cleanly. Then it reads ahead some more so that it has a (small) buffer of data to work with. At some point in all that it reaches the end-of-file, and because it's a recording (not live TV) it tells MP player that EOF has occured, and MP stops playback.

    I think some of the problem in your case is caused by an 'excessive buffering' issue that I'm seeing in your logs but I can't reproduce on my system (even when playing the same file) - I'm working on that one at the moment, and I'm sure the end-of-file situation can be worked around.
     
    Last edited: July 3, 2017
    • Like Like x 2
  4. Owlsroost
    • Team MediaPortal

    Owlsroost Development Group

    Joined:
    October 28, 2008
    Messages:
    5,537
    Likes Received:
    2,829
    Location:
    Cambridge
    Ratings:
    +4,131 / 1
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    Got it! You have the TsReader registry key 'BufferingDelayInMilliSeconds' set to 5000ms, so it tries to buffer 5 seconds of data by reading ahead from the seek point, hence it reads off the end of the file...(since it was only 3 s from the end to start with).

    So I just need to factor the buffering amount into the offset from the end-of-file e.g. in your case the 'seek limit' will need to be 8s from the end.
     
    • Like Like x 2
    • Thank You! Thank You! x 2
  5. Threarah
    • Premium Supporter

    Threarah MP Donator

    Joined:
    October 24, 2013
    Messages:
    20
    Likes Received:
    2
    Ratings:
    +9 / 0
    Home Country:
    New Zealand New Zealand
    Show System Specs
    Nice find! I'd bumped that up a long time ago (2013?) to try to work around the other seeking issue, before it was properly fixed. I've changed it back to 0 and seeking to the end in an active recording works as expected now. I assume there's no benefit in having it increased any more?

    Thanks a lot for your help :)

    *edit* For the sake of posterity/anyone who Googles this in the future - the fix is here: [solved] - Possible (TsReader?) regression in 1.16
     
    Last edited: July 7, 2017
    • Thank You! Thank You! x 1
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!