Project

General

Profile

Corrupted Recordings with Small File Sizes

Added by Kieren Hinch over 11 years ago

Tvh version: 3.4
OS: Slackware64 14.0
Kernel: 3.2.45
Tuner: TBS6280 DVB-T2

Hi,

Since I started testing tvheadend 3.4 a few weeks ago I have noticed that some recordings are corrupted. When the system is first powered on it records and streams live TV to XBMC perfectly. Then, after a random amount of time (anything between a few hours and a few days) the recordings begin to error and the recorded files are corrupted. When it's in this state it fails to stream live TV to XBMC - it just says buffering and then gives an error about connection.

If I restart tvheadend the problem continues, only restarting the entire system appears to solve this. The problem also happens regardless of pass-through or matroska. I have also noticed that during the recordings that end up corrupted, tvh reports high numbers of errors during the recording process - around 2 per second.

I'm not sure if this helps, but I've also noticed that when the system is in the error state, any new processes seem to have a very high number - often in the 20,000s, but when it's working OK new processes seem to be down around 2000-3000. It appears that when the recordings are going wrong, either tvh or the adapter is kicking off loads of new processes for some reason.

I have attached some screenshots to illustrate:
Framegrab.png shows what the corrupted videos look like.
recorded.png shows the obvious differences in file sizes between the good and the corrupted recordings
recording_errors.png shows a bad recording in progress - note the high number of errors during the recording.

Can anyone shed any light on this please? Any help much appreciated.

Edit: sorry for attaching multiple of some of the pictures, I can't seem to remove them now.

Edit2: This seems to be related to the audio stream. I have captured some system logs when the error is happening and attached them as "tvhlog.txt". The most relevent lines are all something like this:

Aug 08 14:10:21.320 TS: Freeview2/West Borders: 481,833 kHz/BBC 1 Scot HD: H264 #6601: Continuity counter error
Aug 08 14:10:22.120 TS: Freeview2/West Borders: 481,833 kHz/BBC 1 Scot HD: H264
#6601: Continuity counter error, 4 duplicate log lines suppressed
Aug 08 14:10:30.020 parser: transport stream H264, DTS discontinuity. DTS = 313200, last = 217800

recorded.png (42.8 KB) recorded.png
recording_errors.png (23.5 KB) recording_errors.png
Framegrab.png (635 KB) Framegrab.png Screenshot of corrupted video
recorded.png (42.8 KB) recorded.png TVH recorded programs - some have failed
recording_errors.png (23.5 KB) recording_errors.png TVH recording errors in progress
tvhlog.txt (10.8 KB) tvhlog.txt tvheadend error log