Crashing on some IPTV channels (1 Viewer)

steviewunda

MP Donator
  • Premium Supporter
  • August 29, 2015
    19
    14
    74
    Home Country
    New Zealand New Zealand
    Totally understandable - I'll remind you once a month, and sooner or later the planets will line up ;-)
     

    Owlsroost

    Retired Team Member
  • Premium Supporter
  • October 28, 2008
    5,539
    5,038
    Cambridge
    Home Country
    United Kingdom United Kingdom
    I've spent some time investigating the issue.

    The problem appears to be caused by missing or corrupted PCR timestamps in the file (which is why the duration of the file looks wrong e.g. 1.6 seconds instead of the actual 2 minutes 9 seconds. The file data from Mediainfo:

    Code:
    General
    ID                                       : 4 (0x4)
    Complete name                            : D:\Video\TV Server\Movie - US _ HBO 2 - 2019-03-13_1.ts
    Format                                   : MPEG-TS
    File size                                : 80.2 MiB
    Duration                                 : 1 s 600 ms
    Overall bit rate mode                    : Variable
    Overall bit rate                         : 417 Mb/s
    
    Video
    ID                                       : 48 (0x30)
    Menu ID                                  : 137 (0x89)
    Format                                   : AVC
    Format/Info                              : Advanced Video Codec
    Format profile                           : Main@L3.1
    Format settings                          : CABAC / 1 Ref Frames
    Format settings, CABAC                   : Yes
    Format settings, RefFrames               : 1 frame
    Format settings, GOP                     : M=1, N=60
    Codec ID                                 : 27
    Duration                                 : 2 min 9 s
    Width                                    : 1 280 pixels
    Height                                   : 720 pixels
    Display aspect ratio                     : 16:9
    Color space                              : YUV
    Chroma subsampling                       : 4:2:0
    Bit depth                                : 8 bits
    Scan type                                : Progressive
    Color range                              : Full
    Color primaries                          : BT.709
    Transfer characteristics                 : BT.709
    Matrix coefficients                      : BT.709
    
    Audio
    ID                                       : 64 (0x40)
    Menu ID                                  : 137 (0x89)
    Format                                   : AAC
    Format/Info                              : Advanced Audio Codec
    Format version                           : Version 4
    Format profile                           : LC
    Muxing mode                              : ADTS
    Codec ID                                 : 15
    Duration                                 : 2 min 8 s
    Bit rate mode                            : Variable
    Channel(s)                               : 2 channels
    Channel positions                        : Front: L R
    Sampling rate                            : 48.0 kHz
    Frame rate                               : 46.875 FPS (1024 SPF)
    Compression mode                         : Lossy
    Delay relative to video                  : -101 ms

    Note the video and audio stream durations (based on the presentation timestamps) are correct, but the 'general' duration (based on PCR timestamps) is only 1.6 seconds.

    MP uses the 'general' PCR timestamps to determine the file duration and also when seeking in the file (for skip steps and fast-forward/rewind) - so not having correct ones is fairly fundamental.

    I'm pretty sure this mismatch is causing the playback problems (both with MP and in Windows media player etc.) - basically in MP it appears to stop fetching data from the file after a while (so it freezes), but I haven't worked out why (yet).

    So no fix yet, but some progress.
     

    Users who are viewing this thread

    Similar threads

    ok, i've fixed parsing and did a couple of other optimizations. Also officially published this site, so everybody can use it
    ok, i've fixed parsing and did a couple of other optimizations. Also officially published this site, so everybody can use it
    Hi! I am trying to get the m3u files from GitHub - iptv-org/iptv: Collection of publicly available IPTV channels from all over the...
    Replies
    4
    Views
    8K
    It's getting weirder..... If I remove all the IP cards in the TVServer setup and then add them back I can scan the M3u and tune the stations but if I rescan it on the same card it just keeps updating the 1 channel. My brain is melting.........
    It's getting weirder..... If I remove all the IP cards in the TVServer setup and then add them back I can scan the M3u and tune the...
    Having great fun with this still. I have a fairly good PC setup, Ryzen 5 8500g, Msi Pro 650M-P with 32GB of RAM with a TBS 6281 and...
    Replies
    2
    Views
    1K
    To other people reading about this 'issue', Doskabouter provided me with a fix/patch. It is a modified version of tswriter.ax which solved the problem with dolby digital plus audio. I want to thank Doskabouter for all his time and energy he put into resolving this!!
    To other people reading about this 'issue', Doskabouter provided me with a fix/patch. It is a modified version of tswriter.ax which...
    Hi all, I could use some help with the following; OS: Win11 24H2 TV server: 1.37.000.0|x64 (working with Mediaportal for maybe 20...
    Replies
    4
    Views
    2K
    Interesting. :coffee: I always have DVB subtitles enabled in "MP Config", but I actually switch on subtitles only for those films that have deafening sound effects and music, combined with inaudible dialogue. I have never noticed the problem that you have described, but I also use the EVR renderer, and not the Madvr renderer. So...
    Interesting. :coffee: I always have DVB subtitles enabled in "MP Config", but I actually switch on subtitles only for those films...
    Every so often, when I switch to a TV channel, my MP client stops accepting user inputs, either from the remote or keyboard/mouse...
    Replies
    27
    Views
    3K
    So, you're power cycling the TV, but not putting the PC to sleep ? In General => Startup/Resume settings, try checking "Ignore Windows resolution/size changes" In Codecs and Render, try selecting the specific audio device rather than "Default DirectSound device" Just ideas, no guarantee this will do anything. If this doesn't work, I...
    So, you're power cycling the TV, but not putting the PC to sleep ? In General => Startup/Resume settings, try checking "Ignore...
    I'm running MP1 as a client only on this: https://www.amazon.com/dp/B0DZX5DWS5?ref_=pe_123509780_1038749300_t_fed_asin_title&th=1...
    Replies
    4
    Views
    609
    Top Bottom