Bug #3899
openTimeshift problems
0%
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)
#49: Invalid start code 43:42:ba
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
2016-07-16 08:10:43.615 [WARNING]:TS: hdhr/189.028MHz/CFTO: MPEG2VIDEO #49 Continuity counter error (total 1)
#52 Continuity counter error (total 1)
2016-07-16 08:10:43.615 [WARNING]:TS: hdhr/189.028MHz/CFTO: AC3
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)
#51 Continuity counter error (total 1)
2016-07-16 08:13:07.185 [WARNING]:TS: hdhr/189.028MHz/CFTO: AC3
2016-07-16 08:13:07.185 [WARNING]:TS: hdhr/189.028MHz/CFTO: AC3 #52 Continuity counter error (total 2)
#49 Corrupted PES header (errors 4)
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
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-0rw------ 1 tvh tvh 133939476 Jul 16 07:18 tvh-60006733rw------ 1 tvh tvh 133706587 Jul 16 07:19 tvh-120066733rw------ 1 tvh tvh 133935520 Jul 16 07:20 tvh-180026633rw------ 1 tvh tvh 133706412 Jul 16 07:21 tvh-240086633rw------ 1 tvh tvh 133702457 Jul 16 07:22 tvh-300046533rw------ 1 tvh tvh 133939473 Jul 16 07:23 tvh-360006433rw------ 1 tvh tvh 133702459 Jul 16 07:24 tvh-420066433rw------ 1 tvh tvh 133926450 Jul 16 07:25 tvh-480026333rw------ 1 tvh tvh 133719780 Jul 16 07:26 tvh-540086333rw------ 1 tvh tvh 133706589 Jul 16 07:27 tvh-600046233rw------ 1 tvh tvh 133922063 Jul 16 07:28 tvh-660006133rw------ 1 tvh tvh 133715481 Jul 16 07:29 tvh-720066133rw------ 1 tvh tvh 133926452 Jul 16 07:30 tvh-780026033rw------ 1 tvh tvh 133706756 Jul 16 07:31 tvh-840086033rw------ 1 tvh tvh 133755599 Jul 16 07:32 tvh-900045933rw------ 1 tvh tvh 133894838 Jul 16 07:33 tvh-960005833rw------ 1 tvh tvh 133817727 Jul 16 07:34 tvh-1020065833rw------ 1 tvh tvh 133904427 Jul 16 07:35 tvh-1080025733rw------ 1 tvh tvh 133617861 Jul 16 07:36 tvh-1140085733rw------ 1 tvh tvh 133758190 Jul 16 07:37 tvh-1200045633rw------ 1 tvh tvh 133883743 Jul 16 07:38 tvh-1260005533rw------ 1 tvh tvh 133702456 Jul 16 07:39 tvh-1320065533rw------ 1 tvh tvh 133939477 Jul 16 07:40 tvh-1380025433rw------ 1 tvh tvh 133706756 Jul 16 07:41 tvh-1440085433rw------ 1 tvh tvh 133875403 Jul 16 07:42 tvh-1500045333rw------ 1 tvh tvh 133806289 Jul 16 07:43 tvh-1560005233rw------ 1 tvh tvh 133679851 Jul 16 07:44 tvh-1620065233rw------ 1 tvh tvh 133922063 Jul 16 07:45 tvh-1680025133rw------ 1 tvh tvh 133706756 Jul 16 07:46 tvh-1740085133rw------ 1 tvh tvh 133702456 Jul 16 07:47 tvh-1800045033rw------ 1 tvh tvh 133961838 Jul 16 07:48 tvh-1860004933rw------ 1 tvh tvh 133680095 Jul 16 07:49 tvh-1920064933rw------ 1 tvh tvh 133939477 Jul 16 07:50 tvh-1980024833rw------ 1 tvh tvh 133734919 Jul 16 07:51 tvh-2040084833rw------ 1 tvh tvh 133691447 Jul 16 07:52 tvh-2100044733rw------ 1 tvh tvh 133922153 Jul 16 07:53 tvh-2160004633rw------ 1 tvh tvh 133702456 Jul 16 07:54 tvh-2220064633rw------ 1 tvh tvh 133939476 Jul 16 07:55 tvh-2280024533rw------ 1 tvh tvh 133716513 Jul 16 07:56 tvh-2340084533rw------ 1 tvh tvh 133735641 Jul 16 07:57 tvh-2400044433rw------ 1 tvh tvh 133934310 Jul 16 07:58 tvh-2460004333rw------ 1 tvh tvh 133664682 Jul 16 07:59 tvh-2520064333rw------ 1 tvh tvh 133999346 Jul 16 08:00 tvh-2580024233rw------ 1 tvh tvh 133646630 Jul 16 08:01 tvh-2640084233rw------ 1 tvh tvh 133752361 Jul 16 08:02 tvh-2700044133rw------ 1 tvh tvh 133889572 Jul 16 08:03 tvh-2760004033rw------ 1 tvh tvh 133702456 Jul 16 08:04 tvh-2820064033rw------ 1 tvh tvh 133926453 Jul 16 08:05 tvh-2880023933rw------ 1 tvh tvh 133715480 Jul 16 08:06 tvh-2940083933rw------ 1 tvh tvh 133706756 Jul 16 08:07 tvh-3000043833rw------ 1 tvh tvh 133926453 Jul 16 08:08 tvh-3060003733rw------ 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