Project

General

Profile

Actions

Bug #3899

open

Timeshift problems

Added by Richard Pavlik almost 9 years ago. Updated over 8 years ago.

Status:
New
Priority:
Normal
Assignee:
Category:
Timeshift
Target version:
-
Start date:
2016-07-16
Due date:
% Done:

0%

Estimated time:
Found in version:
4.1-2141~g01c26fc
Affected Versions:

Description

I'm not sure if this can be fixed but here is my problem. If I get continuity error on my HDHomeRun ATSC-T Tuner timeshift stops working. Here is an example of one such problem encountered today running under KODI 16.1:

The log file is:

2016-07-16 08:09:17.593 [WARNING]:TS: hdhr/189.028MHz/CFTO Transport error indicator (total 3)
2016-07-16 08:09:17.593 [WARNING]:TS: hdhr/189.028MHz/CFTO: MPEG2VIDEO #49 Corrupted PES header (errors 1)
2016-07-16 08:10:43.604 [WARNING]:TS: hdhr/189.028MHz/CFTO Transport error indicator (total 6)
2016-07-16 08:10:43.604 [WARNING]:TS: hdhr/189.028MHz/CFTO: MPEG2VIDEO
#49: Invalid start code 43:42:ba
2016-07-16 08:10:43.615 [WARNING]:TS: hdhr/189.028MHz/CFTO: MPEG2VIDEO #49 Continuity counter error (total 1)
2016-07-16 08:10:43.615 [WARNING]:TS: hdhr/189.028MHz/CFTO: AC3
#52 Continuity counter error (total 1)
2016-07-16 08:13:07.185 [WARNING]:TS: hdhr/189.028MHz/CFTO Transport error indicator (total 28)
2016-07-16 08:13:07.185 [WARNING]:TS: hdhr/189.028MHz/CFTO: MPEG2VIDEO #49 Continuity counter error (total 4)
2016-07-16 08:13:07.185 [WARNING]:TS: hdhr/189.028MHz/CFTO: AC3
#51 Continuity counter error (total 1)
2016-07-16 08:13:07.185 [WARNING]:TS: hdhr/189.028MHz/CFTO: AC3 #52 Continuity counter error (total 2)
2016-07-16 08:15:52.315 [WARNING]:TS: hdhr/189.028MHz/CFTO Transport error indicator (total 42)
2016-07-16 08:16:07.135 [WARNING]:TS: hdhr/189.028MHz/CFTO Transport error indicator (total 47)
2016-07-16 08:16:14.533 [WARNING]:TS: hdhr/189.028MHz/CFTO: MPEG2VIDEO
#49 Corrupted PES header (errors 4)
2016-07-16 08:20:53.111 [WARNING]:TS: hdhr/189.028MHz/CFTO Transport error indicator (total 63)
2016-07-16 08:24:45.991 [WARNING]:TS: hdhr/189.028MHz/CFTO Transport error indicator (total 74)
2016-07-16 08:27:10.475 [ INFO]:subscription: 0001: "10.1.1.51 [ | Kodi Media Center ]" unsubscribing from "CTV", hostname="10.1.1.51", username="10.1.1.51", client="Kodi Media Center"
2016-07-16 08:28:45.113 [ INFO]:htsp: 10.1.1.51 [ | Kodi Media Center ]: Disconnected

The time shift buffers are as follows:

drwx------ 3 tvh tvh 4096 Jul 16 07:16 ..
rw------ 1 tvh tvh 131941916 Jul 16 07:17 tvh-0
rw------ 1 tvh tvh 133939476 Jul 16 07:18 tvh-60006733
rw------ 1 tvh tvh 133706587 Jul 16 07:19 tvh-120066733
rw------ 1 tvh tvh 133935520 Jul 16 07:20 tvh-180026633
rw------ 1 tvh tvh 133706412 Jul 16 07:21 tvh-240086633
rw------ 1 tvh tvh 133702457 Jul 16 07:22 tvh-300046533
rw------ 1 tvh tvh 133939473 Jul 16 07:23 tvh-360006433
rw------ 1 tvh tvh 133702459 Jul 16 07:24 tvh-420066433
rw------ 1 tvh tvh 133926450 Jul 16 07:25 tvh-480026333
rw------ 1 tvh tvh 133719780 Jul 16 07:26 tvh-540086333
rw------ 1 tvh tvh 133706589 Jul 16 07:27 tvh-600046233
rw------ 1 tvh tvh 133922063 Jul 16 07:28 tvh-660006133
rw------ 1 tvh tvh 133715481 Jul 16 07:29 tvh-720066133
rw------ 1 tvh tvh 133926452 Jul 16 07:30 tvh-780026033
rw------ 1 tvh tvh 133706756 Jul 16 07:31 tvh-840086033
rw------ 1 tvh tvh 133755599 Jul 16 07:32 tvh-900045933
rw------ 1 tvh tvh 133894838 Jul 16 07:33 tvh-960005833
rw------ 1 tvh tvh 133817727 Jul 16 07:34 tvh-1020065833
rw------ 1 tvh tvh 133904427 Jul 16 07:35 tvh-1080025733
rw------ 1 tvh tvh 133617861 Jul 16 07:36 tvh-1140085733
rw------ 1 tvh tvh 133758190 Jul 16 07:37 tvh-1200045633
rw------ 1 tvh tvh 133883743 Jul 16 07:38 tvh-1260005533
rw------ 1 tvh tvh 133702456 Jul 16 07:39 tvh-1320065533
rw------ 1 tvh tvh 133939477 Jul 16 07:40 tvh-1380025433
rw------ 1 tvh tvh 133706756 Jul 16 07:41 tvh-1440085433
rw------ 1 tvh tvh 133875403 Jul 16 07:42 tvh-1500045333
rw------ 1 tvh tvh 133806289 Jul 16 07:43 tvh-1560005233
rw------ 1 tvh tvh 133679851 Jul 16 07:44 tvh-1620065233
rw------ 1 tvh tvh 133922063 Jul 16 07:45 tvh-1680025133
rw------ 1 tvh tvh 133706756 Jul 16 07:46 tvh-1740085133
rw------ 1 tvh tvh 133702456 Jul 16 07:47 tvh-1800045033
rw------ 1 tvh tvh 133961838 Jul 16 07:48 tvh-1860004933
rw------ 1 tvh tvh 133680095 Jul 16 07:49 tvh-1920064933
rw------ 1 tvh tvh 133939477 Jul 16 07:50 tvh-1980024833
rw------ 1 tvh tvh 133734919 Jul 16 07:51 tvh-2040084833
rw------ 1 tvh tvh 133691447 Jul 16 07:52 tvh-2100044733
rw------ 1 tvh tvh 133922153 Jul 16 07:53 tvh-2160004633
rw------ 1 tvh tvh 133702456 Jul 16 07:54 tvh-2220064633
rw------ 1 tvh tvh 133939476 Jul 16 07:55 tvh-2280024533
rw------ 1 tvh tvh 133716513 Jul 16 07:56 tvh-2340084533
rw------ 1 tvh tvh 133735641 Jul 16 07:57 tvh-2400044433
rw------ 1 tvh tvh 133934310 Jul 16 07:58 tvh-2460004333
rw------ 1 tvh tvh 133664682 Jul 16 07:59 tvh-2520064333
rw------ 1 tvh tvh 133999346 Jul 16 08:00 tvh-2580024233
rw------ 1 tvh tvh 133646630 Jul 16 08:01 tvh-2640084233
rw------ 1 tvh tvh 133752361 Jul 16 08:02 tvh-2700044133
rw------ 1 tvh tvh 133889572 Jul 16 08:03 tvh-2760004033
rw------ 1 tvh tvh 133702456 Jul 16 08:04 tvh-2820064033
rw------ 1 tvh tvh 133926453 Jul 16 08:05 tvh-2880023933
rw------ 1 tvh tvh 133715480 Jul 16 08:06 tvh-2940083933
rw------ 1 tvh tvh 133706756 Jul 16 08:07 tvh-3000043833
rw------ 1 tvh tvh 133926453 Jul 16 08:08 tvh-3060003733
rw------ 1 tvh tvh 93438805 Jul 16 08:09 tvh-3120063733
drwx------ 2 tvh tvh 4096 Jul 16 08:09 .
rw------ 1 tvh tvh 2342335193 Jul 16 08:26 tvh-7333994533

One can see that when the first error occurs at 08:09 new buffers stop being created and only one is being appended to. I'm not sure what the number at the end of the buffer is (maybe frame) but it seems to be incorrect when looking at the pattern. Once this happens one cannot shift in time if watching in real time. If I had been watching in past time (did a pause) then the stream will stop and I have to stop the channel and start it again.

My build is as follows:

Configure arguments:
--enable-hdhomerun_static --enable-hdhomerun_client --enable-libffmpeg_static --enable-libmfx --enable-libx265

Compiler:
Using C compiler: ccache cc
Build for arch: x86_64

Binaries:
Using PYTHON: python
Using GZIP: gzip
Using BZIP2: bzip2

Options:
pie yes
ccdebug no
cwc yes
capmt yes
constcw yes
linuxdvb yes
satip_server yes
satip_client yes
hdhomerun_client yes
hdhomerun_static yes
iptv yes
tsfile yes
dvbscan yes
timeshift yes
trace yes
imagecache yes
avahi yes
zlib yes
libav yes
ffmpeg_static yes
libx264 yes
libx264_static yes
libx265 yes
libx265_static yes
libvpx yes
libvpx_static yes
libtheora yes
libtheora_static yes
libvorbis yes
libvorbis_static yes
libfdkaac yes
libfdkaac_static yes
nvenc no
qsv no
libmfx_static no
inotify yes
epoll yes
uriparser no
ccache yes
tvhcsa yes
bundle no
dvbcsa no
dvben50221 no
kqueue no
dbus_1 yes
android no
tsdebug no
gtimer_check no
slow_memoryinfo no
libsystemd_daemon no
bintray_cache yes
execinfo yes
mmx yes
sse2 yes
W_unused_result yes
getloadavg yes
atomic64 yes
atomic_time_t yes
lockowner yes
qsort_r yes
stime yes
gmtoff yes
recvmmsg yes
sendmmsg yes
ifnames yes
py_gzip yes
bin_pkg_config yes
bin_xgettext yes
bin_msgmerge yes
bin_gzip yes
bin_bzip2 yes
ssl yes
linuxdvbapi yes
upnp yes
bin_cmake yes
stdcpp yes
libogg_static yes
inotify_h yes
mpegts yes
mpegts_dvb yes

Packages:
openssl 1.0.2g
zlib 1.2.8
avahi-client 0.6.32-rc
dbus-1 1.10.6

Installation paths:
Prefix: /usr/local
Binaries: ${prefix}/bin
Libraries: ${prefix}/lib
Data files: ${prefix}/share
Man pages: ${datadir}/man

Thank you in advance.


Files

tsdemux.patch (910 Bytes) tsdemux.patch Richard Pavlik, 2016-07-26 16:32
parser.log (2.75 MB) parser.log Richard Pavlik, 2016-08-08 15:17
parser.zip (463 KB) parser.zip Richard Pavlik, 2016-08-09 12:54
pt.zip (65.4 KB) pt.zip Zipped --trace parser,timeshift Richard Pavlik, 2016-08-10 09:09
TraceAndLogs.zip (2.89 MB) TraceAndLogs.zip Richard Pavlik, 2016-08-11 13:21
trace.log (881 KB) trace.log Richard Pavlik, 2016-08-11 18:09
tvh.log (8.93 KB) tvh.log Richard Pavlik, 2016-08-11 18:09
logs-and-core.tar.gz (6 MB) logs-and-core.tar.gz Richard Pavlik, 2016-08-12 03:43
gdb.txt (13.5 KB) gdb.txt Richard Pavlik, 2016-08-12 10:34
gdb.txt (98.7 KB) gdb.txt Richard Pavlik, 2016-08-12 21:46
logs-and-trace.tar.gz (4.93 MB) logs-and-trace.tar.gz Richard Pavlik, 2016-08-13 14:39
logs-and-trace.tar.gz (708 KB) logs-and-trace.tar.gz Richard Pavlik, 2016-08-14 13:29
Actions

Also available in: Atom PDF