Live TV Audio/Video Sync (1 Viewer)

CCob

Portal Pro
November 10, 2008
111
8
Attached is a better fix for the FFDShow video problem - this is a replacement 'TsReader.ax' file.

You need to revert back to the original MP 1.2.0 Beta 'Core.dll' and replace the original TsReader.ax with the new one.

This fix should handle stream corruption/discontinuities properly so A/V sync is maintained.

(I think this *may* work in MP 1.1.3 as well, but I haven't tried it)

Tony

Excellent Owlsroost. I'll try this one tonight. Does it use the same concept as the previous modification, 0.5 secs play and seek back 0.2 secs, or is there some magic being done on the PTS values.

Thanks,
Ceri
 

Owlsroost

Retired Team Member
  • Premium Supporter
  • October 28, 2008
    5,539
    5,038
    Cambridge
    Home Country
    United Kingdom United Kingdom
    Excellent Owlsroost. I'll try this one tonight. Does it use the same concept as the previous modification, 0.5 secs play and seek back 0.2 secs, or is there some magic being done on the PTS values.

    Thanks,
    Ceri

    No, it makes sure that the 'discontinuity' flag is set on media samples sent from TsReader to the video decoder just after the start of play, and when incoming stream corruptions occur. This seems to be the only way to force FFDShow video to re-sync it's internal timestamps with the TsReader version.

    Tony
     

    tony72

    MP Donator
  • Premium Supporter
  • August 15, 2009
    180
    61
    Home Country
    England England
    Owlsroost, does the TsReader.ax fix also only do a correction at start of playback like the core.dll workaround, or should it maintain sync on a continuous basis? I took what you said a few posts above to mean the latter, but I may have misunderstood. I was testing it this morning (the _fix_3 version I think), and at some point I lost sync, and it stayed that way until I manually skipped back and forward again. I've only seen that once, but I've only been running that fix for about an hour total, and other than that it's been fine.
     

    Owlsroost

    Retired Team Member
  • Premium Supporter
  • October 28, 2008
    5,539
    5,038
    Cambridge
    Home Country
    United Kingdom United Kingdom
    Owlsroost, does the TsReader.ax fix also only do a correction at start of playback like the core.dll workaround, or should it maintain sync on a continuous basis? I took what you said a few posts above to mean the latter, but I may have misunderstood. I was testing it this morning (the _fix_3 version I think), and at some point I lost sync, and it stayed that way until I manually skipped back and forward again. I've only seen that once, but I've only been running that fix for about an hour total, and other than that it's been fine.

    It forces a re-sync just after start-of-play, channel change, skip step and FFWD/REW rate changes. It also forces a re-sync whenever TsReader detects a corrupted packet or other discontinuity in the incoming data stream.

    The basic problem with FFDshow video decoder is that it doesn't track the timestamps from TsReader continuously, so if they change substantially it doesn't notice (unless forced to) and we end up with an A/V sync error....

    If your problem happens again can you note the time it lost sync and then post the TsReader log, so I can try and see if TsReader logged the discontinuity at that time.

    Tony
     

    Owlsroost

    Retired Team Member
  • Premium Supporter
  • October 28, 2008
    5,539
    5,038
    Cambridge
    Home Country
    United Kingdom United Kingdom
    tony72 - quick question - do you have the 'Don't drop discontinued packets in TsReader' box in MP Config (TV Client section) ticked or not ?

    Not ticked is the default, and this sstting also means that the video decoder gets the stream discontinuity information.

    Tony
     

    pünktchen

    Portal Pro
    October 26, 2010
    537
    202
    Home Country
    Germany Germany
    I don't use ffdshow but PDVD Videocodec. On some HD-Channels I often have slowdowns in video. Tried the tsreader-fix and those slowdowns are nearly gone.

    Thanks!

    Sent from my X10i using Tapatalk
     

    tony72

    MP Donator
  • Premium Supporter
  • August 15, 2009
    180
    61
    Home Country
    England England
    tony72 - quick question - do you have the 'Don't drop discontinued packets in TsReader' box in MP Config (TV Client section) ticked or not ?

    Not ticked is the default, and this sstting also means that the video decoder gets the stream discontinuity information.

    Tony

    I don't believe I've ever changed that setting, so it should be at the default, but I'll check this evening when I get home and confirm that, and update this post.

    [Edit] Just confirming that the "Don't drop discontinued packets" setting was in the default (unchecked) state. But I haven't lost sync again since that post.
     

    disaster123

    MP Donator
  • Premium Supporter
  • May 14, 2008
    3,558
    434
    Home Country
    Germany Germany
    AW: Live TV Audio/Video Sync

    @owlroost
    could you post patch files for your tsreader versions?
     

    Users who are viewing this thread

    Top Bottom