[Finished] Improvements to Live TV playback rate matching - for testing (1 Viewer)

Status
Not open for further replies.

Owlsroost

Development Group
  • Team MediaPortal
  • October 28, 2008
    5,540
    5,038
    Cambridge
    United Kingdom United Kingdom
    Country flag
    • Thread starter
    • Moderator
    • #1
    A significant problem for some users is that when playing live TV, differences in the playback rate of the PC and the rate at which data arrives from the broadcaster can mean that playback has to be paused briefly to correct the situation.

    The attached versions of TsReader.ax attempt to fix this problem by manipulating the video and audio playback rates very slowly - basically forcing the renderers to drop/repeat video frames and audio samples occasionally. This is much less sophisticated than the method used by MediaPortal Audio Renderer, but in reality is almost unnoticeable (at least on my systems :)).

    Installation setup :
    You must install the x86 version of Visual C++ Redistributable Package for Visual Studio 2013 if you are using MP 1.10 or older versions.

    Before installing the new files backup the original files !

    Copy binary files :

    Path to replace TsReader.ax :
    64Bit
    Os : C:\Program Files (x86)\Team MediaPortal\MediaPortal
    32Bit
    OS : C:\Program Files\Team MediaPortal\MediaPortal

    If you are replacing TsWriter.ax, MPFileWriter.ax, StreamingServer.dll or MPIPTV_RTSP.dll you must stop the TVservice - use the 'Manual Control' section of TV Server Configuration - http://wiki.team-mediaportal.com/1_...ion/TV-Server_Configuration/11_Manual_Control

    Path to replace TsWriter.ax, MPFileWriter.ax, StreamingServer.dll and MPIPTV_RTSP.dll :
    64Bit
    Os : C:\Program Files (x86)\Team MediaPortal\MediaPortal TV Server
    32Bit
    OS : C:\Program Files\Team MediaPortal\MediaPortal TV Server

    Restart TVservice (if stopped earlier)

    Usage instructions :
    The new rate matching system works best using LAV Audio Decoder for TV with the 'Auto A/V Sync correction' option enabled in LAV Audio settings, and do not use MediaPortal Audio Renderer for TV.

    Source code :
    The Github branch with the source code is at https://github.com/MediaPortal/MediaPortal-1/tree/EXP-Upgrade_555_MM_Owlsroost

    Latest Binary Download (for MP 1.11 and later only) :

    The latest binary files are in 'EXP-Upgrade_555_MM_Owlsroost_28-04-2016_3.zip' attached below.

    This is a merge of my latest TsReader/TsWriter code with the latest 'RTSP streaming library update' code from mm1352000 (discussed in this thread - https://forum.team-mediaportal.com/threads/rtsp-streaming-library-update.132521/ )

    Install TsReader.ax into the MediaPortal (client) folder - see above for installation instructions.

    Install TsWriter.ax, MPFileWriter.ax, StreamingServer.dll and MPIPTV_RTSP.dll into the MediaPortal TV Server folder - see above for installation instructions.

    (In case you need to go back, the previous version of TsReader.ax - v4.1.0.15 - is -> here <- and the previous version of TsWriter - v3.1.31.6 - is -> here <- Note these do not include the new RTSP code)
     

    Attachments

    Last edited:

    htpchtpc

    MP Donator
  • Premium Supporter
  • February 14, 2012
    27
    5
    Canada Canada
    Country flag
    i believe i followed the instructions correctly... but after install had no 'audio or video signal ' come up after 30 seconds or so wait trying different channels. even after reboot . using version 4 on MP1.11
     

    Owlsroost

    Development Group
  • Team MediaPortal
  • October 28, 2008
    5,540
    5,038
    Cambridge
    United Kingdom United Kingdom
    Country flag
    • Thread starter
    • Moderator
    • #4
    i believe i followed the instructions correctly... but after install had no 'audio or video signal ' come up after 30 seconds or so wait trying different channels. even after reboot . using version 4 on MP1.11
    Can you attach the logs please ?
     

    Owlsroost

    Development Group
  • Team MediaPortal
  • October 28, 2008
    5,540
    5,038
    Cambridge
    United Kingdom United Kingdom
    Country flag
    • Thread starter
    • Moderator
    • #5
    Hi @Owlsroost ,

    my laptop display supports only 60 Hz, but the DVB-T stream is 1080i50. Is it ok?

    View attachment 163827
    Yes, that's fine - the rate matching is not affected by the video frame rate, it's matching incoming data rate to audio render rate (the playback rate of a DS filter graph is normally controlled by the audio renderer).
     

    Owlsroost

    Development Group
  • Team MediaPortal
  • October 28, 2008
    5,540
    5,038
    Cambridge
    United Kingdom United Kingdom
    Country flag
    • Thread starter
    • Moderator
    • #7
    sorry about that... here are the logs
    Did you set the log level (in MP configuration) to 'debug' before generating the logs ? (there is very little related to TV starting in MediaPortal.log, and no TsReader or evr logs at all).

    Does it work correctly with the original (MP 1.11) version of TsReader installed ?
     

    Owlsroost

    Development Group
  • Team MediaPortal
  • October 28, 2008
    5,540
    5,038
    Cambridge
    United Kingdom United Kingdom
    Country flag
    • Thread starter
    • Moderator
    • #9
    First test were pretty good but today I had visible stops and desync.
    Is it better or worse than the standard MP 1.11 TsReader.ax ?

    I can see in the TsReader.log that it runs very low on audio data in a few places, which might account for the 'stops' (or the 'stops' might be caused by something else which is also affecting TsReader - I can't tell).
     
    Status
    Not open for further replies.

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

    OP Similar threads Forum Replies Date
    horned_reaper [solved] Improved MBID Search for Artist and Album Fanart Handler 106
    ajs [fixed] 5022: Improving the MPE Installer, providing nicer GUI :) MediaPortal 1 42
    doskabouter Small code improvements MediaPortal 1 8
    ajs [fixed] 5015: Improving the MP1 installer, providing nicer GUI :) MediaPortal 1 138
    doskabouter Exceptions found due to improved logging General Support 11
    CyberSimian [fixed] MP1-4990 : Improve horizontal scrolling in the EPG MediaPortal 1 10
    ge2301 Bugs and Improvements Nereus 0
    N [Proposal] How to improve series scheduling MediaPortal 2 72
    ge2301 [Finished] [MP2-776] Improve busy screen appearance MediaPortal 2 14
    B [MP2-772-773] improve busy cursor and settings loading Testing Area 10
    azzuro [Help Me!] Improve duration times of GUI List items MediaPortal 2 37
    Alberto83 [Finished] [MP2-752] Improve recording handling MediaPortal 2 34
    B [MP2-744] WMC home content focus improvements Archive 55
    S IPTV from online m3u8 for Aussie Live TV General Support 9
    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
    Similar threads

























    Top Bottom