Large number of [MTS] unhandled_packets AND discontinuity_detected for ch6101 DISCOVERY

The recordings from DiY and NatGeo are OK.

Could this be from the ad insertions?

I can cut the commercials out of the recordings and don't lose any program material.
Running it through my video editor without removing the commercials results in video/audio frame removal to resync.

ch6108 DIY
2020/05/26 19:03:01.581660 [MTS] Statistics for "TV/Building Off the Grid/Building Off the Grid S09E00 Most Epic 2020-05-26-1759.mpg": skipped=0 unhandled_packets=0 discontinuity_detected=175 transport_errors=0 invalid_pts=0 invalid_dts=0 saw_pcr=false saw_pmt=true highest_pts=3797.463044

ch6101 DISCOVERY
2020/05/26 21:03:01.907078 [MTS] Statistics for "TV/NASA & SpaceX Countdown to Launch/NASA & SpaceX Countdown to Launch 2020-05-26-1859.mpg": skipped=0 unhandled_packets=1426 discontinuity_detected=1718 transport_errors=0 invalid_pts=0 invalid_dts=0 saw_pcr=false saw_pmt=true highest_pts=7402.961144

ch6071 NGCP
2020/05/27 14:03:02.334345 [MTS] Statistics for "TV/Launch America Mission to Space Live/Launch America Mission to Space Live 2020-05-27-1159.mpg": skipped=0 unhandled_packets=0 discontinuity_detected=81 transport_errors=0 invalid_pts=0 invalid_dts=0 saw_pcr=false saw_pmt=true highest_pts=7402.784100

ch6101 DISCOVERY
2020/05/27 14:03:03.883419 [MTS] Statistics for "TV/Space Launch LIVE America Returns to Space/Space Launch LIVE America Returns to Space 2020-05-27-1059.mpg": skipped=0 unhandled_packets=3095 discontinuity_detected=3311 transport_errors=0 invalid_pts=0 invalid_dts=0 saw_pcr=false saw_pmt=true highest_pts=11007.052311

I recorded one of those myself so I thought I would share my numbers:

2020/05/27 00:30:13.828920 [MTS] Statistics for "TV/NASA & SpaceX Countdown to Launch/NASA & SpaceX Countdown to Launch 2020-05-26-2200.mpg": skipped=0 unhandled_packets=1428 discontinuity_detected=1770 transport_errors=0 invalid_pts=0 invalid_dts=0 saw_pcr=false saw_pmt=true highest_pts=9022.265744

Thanks, going to try recording the live launch again on Saturday since it was scrubbed for weather today.
Will record from both TVE and HDHR Prime on the same networks.

Definitely a timestamp issue with the inserted ads.
Here's one of them.


Looking at the individual frames the time jumps from 2:28:58.22 to 2:28:11.81 then 2:28:11.91 to 2:28:58.29
These jumps also appear in the comskip log.

Strange audio pts step of -39.10220 instead of 0.00000 at frame 40971
Jump in base apts from 1389.72994 to 1350.62715, delta=-39.10279
Strange audio pts step of 39.25376 instead of 0.00000 at frame 40971
Jump in base apts from 1350.66728 to 1389.92051, delta=39.25323

Strange audio pts step of -47.56216 instead of 0.00000 at frame 58282
Jump in base apts from 1973.62601 to 1926.06330, delta=-47.56271
Strange video pts step of -47.52211 instead of 0.03387 at frame 58284
Strange audio pts step of 47.39249 instead of 0.00000 at frame 58285
Jump in base apts from 1926.27137 to 1973.66329, delta=47.39192

Strange audio pts step of -47.59266 instead of 0.00000 at frame 59905
Jump in base apts from 2033.61789 to 1986.02468, delta=-47.59322
Strange audio pts step of 47.46566 instead of 0.00000 at frame 59908
Jump in base apts from 1986.33520 to 2033.80033, delta=47.46513
Strange video pts step of -47.46268 instead of 0.03387 at frame 59908

Strange audio pts step of -47.62466 instead of 0.00000 at frame 61528
Jump in base apts from 2093.77789 to 2046.15268, delta=-47.62522
Strange video pts step of -47.49595 instead of 0.03387 at frame 61531
Strange audio pts step of 47.45499 instead of 0.00000 at frame 61532
Jump in base apts from 2046.52857 to 2093.98302, delta=47.45445

Strange audio pts step of -47.62466 instead of 0.00000 at frame 63152
Jump in base apts from 2153.93508 to 2106.30984, delta=-47.62524
Strange audio pts step of 47.49766 instead of 0.00000 at frame 63155
Jump in base apts from 2106.62184 to 2154.11898, delta=47.49714
Strange video pts step of -47.49663 instead of 0.03387 at frame 63155
Strange video pts step of 47.56900 instead of 0.03387 at frame 63157

1 Like

Just did a couple test recordings and also seeing a large number of these [MTS] unhandled_packets and discontinuity_detected on ch6110 SCIENCE. Maybe it's all Discovery Network channels.

[MTS] Statistics for "TV/The Unexplained Files/The Unexplained Files S02E01 2014-06-01 Yeti The New Evidence 2020-05-28-1259.mpg": skipped=0 unhandled_packets=591 discontinuity_detected=689 transport_errors=0 invalid_pts=0 invalid_dts=0 saw_pcr=false saw_pmt=true highest_pts=3802.811556

Good thing I left myself notes!

Have a recording from TVE Discovery tonight using v2020.07.30.2221 with these issues and went searching...
[MTS] Statistics for "TV/American Chopper/American Chopper The Last Ride 2020-08-04-1800.mpg": skipped=0 unhandled_packets=1950 discontinuity_detected=2246 transport_errors=0 invalid_pts=0 invalid_dts=0 saw_pcr=false saw_pmt=true highest_pts=7603.510678

Once comskip is done with the recording I'll check it.
Good thing I'm also recording it from my Prime on my other NAS.
Thought I could see it 3 hrs early by recording from TVE (east coast feed) vs Prime (west coast feed)

UPDATE: Confirmed it's still the same issue with the commercial insertions. Program material is fine in the recording.

This happened again yesterday on a TVE Discovery recording.
I had also recorded the same episode on my other NAS using an HDHR Prime as source which was fine.

The TVE recording was missing some parts of the show (about a minute) and had timestamp issues causing some players to stall, glitch, loop or skip ahead.

Just for grins I ran the 'Fix Video Timestamps' on it which didn't help.

So the source of the problem appears to be when these TVE streams come out of commercials and back to the show there's a PTS timestamp issue in the stream or Channels is introducing it when it tries to rewrite timestamps while recording.

My video editor (VideoReDo) showed PTS jumping from 2 minutes something to 1 hour something and then back at the transition from a commercial to show segment. Same issue after I did the 'Fix Video Timestamps'.

I was going to spend the time to submit diags, do this writeup, submit logs, etc. but I decided to delete the TVE recording since I had a perfect copy on my other NAS from the HDHR Prime and nobody seems to be complaining about it anyway.

Problem returned.

After having to delete and re-add my Xfinity TVE source so it could record DIY channel, I was able to record the second airing of this show tonight, but it has 1,214 unhandled packets.

[MTS] Statistics for "TV/Building Off the Grid/Building Off the Grid S10E07 2021-04-27 Georgia Appalachian AFrame 2021-04-27-2059.mpg": skipped=0 unhandled_packets=1214 discontinuity_detected=1287 transport_errors=0 invalid_pts=0 invalid_dts=0 saw_pcr=false saw_pmt=true highest_pts=3845.717422

Can you email me the debug recording log. I am looking into these issues.

I zeroed in on the major discontinuities using the comskip log and my video editor.
They were contained in two commercial breaks, but the recording was overall too bright and posterized, so I deleted it.

Next time (another one scheduled for Tue. 5/11) I will email the debug recording log.

Commercial break from 18:07 to 22:20
Jump in base apts from 1263.41447 to 1152.38012, delta=-111.03435
Jump in base apts from 1152.55459 to 1263.58621, delta=111.03163
Jump in base apts from 1325.54320 to 1212.53499, delta=-113.00821
Jump in base apts from 1212.53499 to 1325.47398, delta=112.93899

Commercial break from 45:11 to 48:50
Jump in base apts from 2863.96215 to 2752.59364, delta=-111.36852
Jump in base apts from 2752.77338 to 2863.98733, delta=111.21396
Jump in base apts from 2920.90404 to 2812.75318, delta=-108.15086
Jump in base apts from 2812.75318 to 2920.87691, delta=108.12372

Another one on DIY tonight with 609 unhandled packets.

[MTS] Statistics for "TV/Building Off the Grid/Building Off the Grid S09E08 2020-02-27 California Cob House 2021-05-04-1759.mpg": skipped=0 unhandled_packets=609 discontinuity_detected=676 transport_errors=0 invalid_pts=0 invalid_dts=0 saw_pcr=false saw_pmt=true highest_pts=3785.469044

It's where they insert the banner that says "Commercial break in progress. Your live stream will resume shortly"

In my video editor the PresentationTimeStamp jumps from 55:34.63 to 53:32.40
From the comskip log
Jump in base apts from 3333.79849 to 3212.26543, delta=-121.53306
Jump in base apts from 3212.44033 to 3334.52717, delta=122.08684

In my video editor the PresentationTimeStamp jumps from 56:35.52 to 54:32.60
From the comskip log
Jump in base apts from 3395.39700 to 3272.44174, delta=-122.95526
Jump in base apts from 3272.44174 to 3395.36239, delta=122.92064

Since the discontinuities are in the commercial breaks, cutting them out results in a perfect recording.
Emailed 7-zipped recording log for this one with subject 'Forum Topic 22854, User chDVRuser'

Happened again on DIY channel.

[MTS] Statistics for "TV/Building Off the Grid/Building Off the Grid S10E08 Alabama Arch House 2021-05-11-1759.mpg": skipped=0 unhandled_packets=980 discontinuity_detected=1044 transport_errors=0 invalid_pts=0 invalid_dts=0 saw_pcr=false saw_pmt=true highest_pts=3791.437622

The 95-100 second jumps/discontinuities happen when coming out of one commercial and into another commercial or back to the program.

PTS jumps from 1145 seconds (19:05) to 1049 seconds (17:29), then a couple frames later back to 1145 seconds (19:05)
Jump in base apts from 1145.69888 to 1049.18513, delta=-96.51374
Jump in base apts from 1049.38584 to 1145.88695, delta=96.50111

PTS jumps from 1209 seconds (20:09) to 1109 seconds (18:29), then a frame later back to 1209 seconds (20:09)
Jump in base apts from 1209.61609 to 1109.30624, delta=-100.30985
Jump in base apts from 1109.30624 to 1209.53880, delta=100.23256

PTS jumps from 2861 seconds (47:41) to 2766 seconds (46:06), then a couple frames later back to 2861 seconds (47:41)
Jump in base apts from 2861.26040 to 2766.01159, delta=-95.24880
Jump in base apts from 2766.18130 to 2861.26747, delta=95.08617

PTS jumps from 2921 seconds (48:41) to 2825 seconds (47:05), then a frame later back to 2921 seconds (48:41)
Jump in base apts from 2921.45373 to 2825.77014, delta=-95.68359
Jump in base apts from 2825.77014 to 2921.41097, delta=95.64083

@tmm1 Let me know if you still want the debug recording logs for these as I'm recording the new episodes each Tuesday.

Sounds like this is more an issue to be brought to the attention of Discovery, since this is predominantly/overwhelmingly happening with Discovery Network streams.

Out of curiosity, what exactly is the expected response from Channels when the streams they’re being sent are malformed with bad timestamps before they’re even received?

We know it's Discovery Networks and how they're inserting the commercials.

Also, these streams state they have a PCR, but don't.

All new TVE recordings should contain PCR. If you find a channel that doesn't, let me know.

I'm looking at this again and hope to have a fix for the unhandled_packets issue soon.

1 Like

This should be fixed in v2021.12.21.2353

2 Likes

@chDVRuser any issues since the fix?

Not that I've noticed (but I haven't gone digging for missing PCR).
Looking at my DVR log, I don't see any recently with unhandled_packets>0 or with saw_pcr=false

1 Like