Crashing on some IPTV channels (1 Viewer)

steviewunda

MP Donator
  • Premium Supporter
  • August 29, 2015
    19
    14
    73
    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,540
    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


    Write your reply...

    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
    815
    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
    564
    MP1 MP2 IPTV in New Zealand DE
    The m3u8 has several extra entries on the first line of each entry. Eg. #EXTINF:-1 xui-id="{XUI_ID}" tvg-id="UK: BBC One Lon HD" tvg-name="BBC ONE FHD" tvg-logo="hxtps://bunnybox.media/logos/uk/bbc-one-uk.png" group-title="UK | Entertainment",BBC ONE FHD The standard m3u has just 1 entry. Eg. #EXTINF:-1,BBC ONE FHD
    The m3u8 has several extra entries on the first line of each entry. Eg. #EXTINF:-1 xui-id="{XUI_ID}" tvg-id="UK: BBC One Lon HD"...
    I would love to get IPTV working on my Mediaportal. I have the TV server and three clients working great, but a recent power supply...
    Replies
    13
    Views
    4K
    I should point out that the developers have not formally left the project, and development has not formally stopped. The developers have instead simply "faded away", gradually spending less and less time on MP2 until the present, when they spend no time on MP2. But one or more of the developers might return next week! It is impossible...
    I should point out that the developers have not formally left the project, and development has not formally stopped. The developers...
    Hi Folks, I need some help with fixing the Problem that MP2 doesn't keep the sorted Order of Channels in TV-Configuraiton. I am...
    Replies
    10
    Views
    452
    There seems to be an ongoing problem that some users have when trying to install MP 1.36. I regret that I do not know the cause of this problem, and so cannot suggest a solution. However, I can suggest a workaround that (hopefully) will work for you. The workaround is to: Completely uninstall MP, MySQL, and MariaDB. Perform a...
    There seems to be an ongoing problem that some users have when trying to install MP 1.36. I regret that I do not know the cause of...
    MediaPortal was working without any issue until 24 hours ago. Then it started hanging; the disk it was installed on was quite full...
    Replies
    1
    Views
    379
    Top Bottom