Skip to content

MPEGTS - file incorrect length shown + Timestamp conversion errors

VLC is unable to properly display the time of large MPEGTS streams.

In my example I have a stream that is 24h:01m:21s long, this is incorrectly displayed as "-2:29:22" in length. (On the VLC4.0 Nightly this is "--:--"). The file plays fine on mpv and MPC-HC, the issue is only on VLC. FFMPEG is able to read through the file without noteworthy warnings or errors.

Another file with a length of 24h:01m:00s shows up as "-2:29:43" in VLC. The issue however happens at a different position (19:06:04)

The file seems to be causing trouble at 15:06:53 into the stream, the audio will cut out and the VLC log will be full of Timestamp conversion failed errors. (Again this part of the video causes no issues on mpv, MPC-HC or ffmpeg)
If I skip a little, the file plays correctly again.


Version: VLC 3.0.17 Nightly Win64 (20220202-0220)
OS: Windows 10 (x64)

VLC Log: vlc_log.txt
ffmpeg log: ffmpeg.out.txt

Stream contents (ffmpeg):

Input #0, mpegts, from 'T:\NPO1+2022-02-01_04_00.ts':
  Duration: 24:01:21.64, start: 88750.233400, bitrate: 14056 kb/s
  Program 1
    Metadata:
      service_name    : NPO 1 HD
      service_provider: Ziggo
  Stream #0:1[0x7d1]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 50 tbr, 90k tbn
  Stream #0:2[0x7db](dut): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, fltp, 256 kb/s
  Stream #0:3[0x7dc](dut): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side), fltp, 448 kb/s
  Stream #0:4[0x7dd](GOS): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, fltp, 256 kb/s (visual impaired) (descriptions)
  Stream #0:5[0x835](dut,dut): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006), 492x250
  Stream #0:6[0x836](dut): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
  Stream #0:7[0x837](dut): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006) (hearing impaired)
  No Program
  Stream #0:0[0x12]: Data: epg

Screenshots:

1_1_29_05

2_12_57_18

3_00_00_00

If there is any other info that might be useful, please let me know.

Edited by Bart S.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information