iptv-mpegts : Audio stops after a few hours due to PCR overflow

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
kristof_vdb
New Cone
New Cone
Posts: 1
Joined: 11 Mar 2022 00:46

iptv-mpegts : Audio stops after a few hours due to PCR overflow

Postby kristof_vdb » 28 Mar 2022 23:15

Dear,

We are investigating an issue where, after watching the same IPTV channel for several hours, the audio playback stops. Video continues.
We believe that it is the PCR counter that overflows, to trigger this problem.
In the code we think the problem has been solved to some extent in TimeStampWrapAround (in modules/demux/mpeg/timestamps.h), but after a period of time (0x1FFFFFFFF at 90 kHz) the PCR will wrap after 26.5h.

if( i_first_pcr > 0x0FFFFFFFF && i_time < 0x0FFFFFFFF )
i_adjust = 0x1FFFFFFFF;

However, given the fact that this value is only 33 bits wide, the int64_t that holds it, should be large enough to count the overflows and have a PCR that never wraps. I have tried this approach, but then I got errors that ffmpeg was unable to decode the timestamp in the decoding chain later on.

I have yet to investigate this issue, but I was wondering whether somebody here could give me some hints/feedback on this issue.

Best Regards,

Kristof Vandenbussche

Lotesdelere
Cone Master
Cone Master
Posts: 10074
Joined: 08 Sep 2006 04:39
Location: Europe

Re: iptv-mpegts : Audio stops after a few hours due to PCR overflow

Postby Lotesdelere » 29 Mar 2022 13:09

You should create a new ticket on the VLC Trac with your above report and the link to this thread:
https://code.videolan.org/videolan/vlc/-/issues


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 25 guests