Skip to end/live during dvbip recording causes it to stop playing instead.

Discussion in 'General Support' started by divxmaster, February 13, 2019.

  1. divxmaster

    divxmaster Portal Pro

    Joined:
    February 15, 2009
    Messages:
    55
    Likes Received:
    15
    Ratings:
    +18 / 1
    Home Country:
    New Zealand New Zealand
    Hi,
    I have set up Mediaportal to take a video/stream from a webpage, and feed that in as a UDP DVBIP channel,
    - basically OBS studio records the streaming page and sends it to Mediaportal on udp://@127.0.0.1:9999?pkt_size=1316.

    This all works fine, and if I pause and skip to end during timeshifting it works no problem
    However the issue is if I get Mediaportal to schedule/record, and then watch the program while
    it is still recording, when I skip to end, it just stops playing. Actually if skip to within about 3 seconds of the live point,
    it stops. Play from live point never starts playing.

    While this isnt a huge problem, as I can just make sure I fast forward to almost live, it would be nice to solve it,
    hopefully someone knows what causes this.

    Cheers,
    Divxmaster


     
    • Missing System Logs and/or Specs Missing System Logs and/or Specs x 1
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. Owlsroost
    • Team MediaPortal

    Owlsroost Development Group

    Joined:
    October 28, 2008
    Messages:
    5,502
    Likes Received:
    2,773
    Location:
    Cambridge
    Ratings:
    +4,055 / 1
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    Which version of MP is this?

    Is this a single-seat system or client and TV server on different PCs?
     
  4. divxmaster

    divxmaster Portal Pro

    Joined:
    February 15, 2009
    Messages:
    55
    Likes Received:
    15
    Ratings:
    +18 / 1
    Home Country:
    New Zealand New Zealand
    Its single seat (udp://@127.0.0.1), v 1.21 the latest.

    Works perfectly except for the skip end problem. I have written a python script that detects a channel change in tvserver.log, and then changes the
    stream to a different webpage 'channel' (just different url for each page). Just using one dvbip tuner, all the mediaportal channels point to the same
    source (udp://@127.0.0.1:9999). So now I can use streaming TV (foxtel aus, sky nz) as normal channels and schedule recordings etc.

    Cheers,
    Divxmaster
     
  5. Owlsroost
    • Team MediaPortal

    Owlsroost Development Group

    Joined:
    October 28, 2008
    Messages:
    5,502
    Likes Received:
    2,773
    Location:
    Cambridge
    Ratings:
    +4,055 / 1
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    Attach a set of logs (use the MP watchdog tool to collect them as a zip file, so we get the full client + server set) and I'll take a look at them.
     
  6. divxmaster

    divxmaster Portal Pro

    Joined:
    February 15, 2009
    Messages:
    55
    Likes Received:
    15
    Ratings:
    +18 / 1
    Home Country:
    New Zealand New Zealand
    ok thanks, do you have an idea which log it will be in (tswriter, etc?) Then I can clear it, create the problem and then
    watchdog it up. The logs are probably filled with all kinds of other issues when I was creating this setup,
    as you can see, its pretty non standard.

    Cheers,
    Mike
     
  7. Owlsroost
    • Team MediaPortal

    Owlsroost Development Group

    Joined:
    October 28, 2008
    Messages:
    5,502
    Likes Received:
    2,773
    Location:
    Cambridge
    Ratings:
    +4,055 / 1
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    evr.log, TsReader.log and MediaPortal.log from the client are the important ones (in C:\ProgramData\Team MediaPortal\MediaPortal\log )
     
  8. divxmaster

    divxmaster Portal Pro

    Joined:
    February 15, 2009
    Messages:
    55
    Likes Received:
    15
    Ratings:
    +18 / 1
    Home Country:
    New Zealand New Zealand
    Thanks,
    ok logs uploaded

    Started a recording, played and skipped to end, worked the first two times,
    then I stopped it and went 'play from live point', it just stopped immediately.
    Then 'played from beginning' and skipped to end, it stopped playing

    95% of the time it just stops playing.

    Cheers,
    Mike
     

    Attached Files:

    • Like Like x 1
    • Thank You! Thank You! x 1
  9. Owlsroost
    • Team MediaPortal

    Owlsroost Development Group

    Joined:
    October 28, 2008
    Messages:
    5,502
    Likes Received:
    2,773
    Location:
    Cambridge
    Ratings:
    +4,055 / 1
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    I think what is happening is that it's seeking (when you tell it to go to the end of the recording file i.e. the 'live' point if it is a recording in progress) to about 3 seconds from the end, then it has to read forward through the data until it finds a suitable point in the video stream to start playing (a 'random access' point). Unfortunately in your streams it looks like these 'random access' points are spaced several seconds apart (it depends on how the video encoding is done by the broadcaster), so sometimes MP detects 'end of file' and stops playback before it's got started... (end-of-file detection is basically 'I can't read any more data from the file so I assume I've reached the end').th

    It works OK for timeshifting because effectively MP assumes timeshift files are 'infinite' and ignores any end-of-file situations.

    (What happens inside is more complicated, but the above is the gist of it).

    I haven't got time to look at what might be done to avoid the situation for a few days, but I'll add it to the 'to do list'.
     
  10. divxmaster

    divxmaster Portal Pro

    Joined:
    February 15, 2009
    Messages:
    55
    Likes Received:
    15
    Ratings:
    +18 / 1
    Home Country:
    New Zealand New Zealand
    Awesome, thanks.

    As mentioned, the broadcaster is myself, though OBS studio. I will see what options it has for creating the UDP streams, but I believe I've already tried all of them.
    Already tried RTP, same issue.

    Cheers,
    Mike
     
  11. divxmaster

    divxmaster Portal Pro

    Joined:
    February 15, 2009
    Messages:
    55
    Likes Received:
    15
    Ratings:
    +18 / 1
    Home Country:
    New Zealand New Zealand
    Just tried OBS studio 23.0 rc2, which changes the way nvenc is used apparently, but no change, problem still occurs unfortunately.
     
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!