Skip to end/live during dvbip recording causes it to stop playing instead. (1 Viewer)

divxmaster

Portal Pro
February 15, 2009
55
16
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
 

Owlsroost

Development Group
  • Team MediaPortal
  • October 28, 2008
    5,540
    5,038
    Cambridge
    United Kingdom United Kingdom
    Country flag
    Which version of MP is this?

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

    divxmaster

    Portal Pro
    February 15, 2009
    55
    16
    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
     

    Owlsroost

    Development Group
  • Team MediaPortal
  • October 28, 2008
    5,540
    5,038
    Cambridge
    United Kingdom United Kingdom
    Country flag
    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.
     

    divxmaster

    Portal Pro
    February 15, 2009
    55
    16
    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
     

    Owlsroost

    Development Group
  • Team MediaPortal
  • October 28, 2008
    5,540
    5,038
    Cambridge
    United Kingdom United Kingdom
    Country flag
    evr.log, TsReader.log and MediaPortal.log from the client are the important ones (in C:\ProgramData\Team MediaPortal\MediaPortal\log )
     

    divxmaster

    Portal Pro
    February 15, 2009
    55
    16
    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
     

    Attachments

    Owlsroost

    Development Group
  • Team MediaPortal
  • October 28, 2008
    5,540
    5,038
    Cambridge
    United Kingdom United Kingdom
    Country flag
    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'.
     

    divxmaster

    Portal Pro
    February 15, 2009
    55
    16
    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
     

    divxmaster

    Portal Pro
    February 15, 2009
    55
    16
    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.
     

    Users who are viewing this thread

    Similar threads
    OP Title Forum Replies Date
    F Show Player info while skipping Feature Requests 0
    P Another Fast Forward/Rewind/Skip/Replay Question General 3
    doskabouter 1.23.0 Crash when skipping in a dvd Bugreports 3
    Rob Hexenmeister DVD Skip steps causing crash General Support 2
    N [Finished] [MP2-806] Playing a recorded radio program does not show screen to allow skipping forward, etc MediaPortal 2 141
    BlueMax1916 [confirm] Music: Every 2nd track skipped MediaPortal 2 30
    R MP 2.2 client spielt audio-titel kurz an und springt dann zum nächten Allgemeines Support- und Diskussionsforum 9
    R Directx 9.0 June 2010 does not install on Windows 10 x64, ends up with weird failure / no debug file Installation, configuration support 0
    high [unanswered] front end system for the aviation industry as an in flight entertainment system contactform feedback and requests 6
    M What does MP homeserver detection need at the client end, and what does the server need to transmit? General 6
    K MP1.24 HDHomeRun Quatro DVT2 - Pixelation on live TV General Support 1
    S IPTV from online m3u8 for Aussie Live TV General Support 10
    K Flickering live TV playback Newcomers Forum 3
    H [solved] MP2 Wiedergabe von Aufnahmen und Live TV geht nicht Allgemeines Support- und Diskussionsforum 6
    torone Dritter versuch mit Mediaportal 2 Allgemeines Support- und Diskussionsforum 1
    W [solved] MP suddenly Crashes when starting live TV on most channels and on recordings from the same channels General Support 20
    W [solved] MP suddenly Crashes when starting live TV on some channels and on some recordings Television (MyTV frontend and TV-Server) 1
    vvulture UNKNOWN ERROR when starting live TV General Support 6
    H random black screen live tv and videos (amended) General Support 0
    404 [solved] Live TV...video and audio freeze General Support 20
    404 How to turn off narration on live tv General 2
    Volker MP2 Rewind / zurückspulen bei Live TV funktioniert nicht Allgemeines Support- und Diskussionsforum 3
    G Occasional Black screen on Live TV and Recorded TV Watch / Listen Media 5
    G Live Tv friert ein Allgemeines Support- und Diskussionsforum 47
    U [solved] Beginner needs help recording live TV General 19

    Similar threads

    Top Bottom