Moderator Control Panel ]

Corrupted Recordings in Tvheadend

Corrupted Recordings in Tvheadend

Postby khinch » Tue Jul 23, 2013 8:06 pm

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

I started using tvheadend 3.4 recently and I have noticed that some recordings are randomly becoming corrupted. When the system is first powered on it records and streams live TV to XBMC fine. Then, after a random amount of time (anything between a few hours and a few days) the recordings begin to show errors in the status window 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.

Restarting the system resolves this temporarily but restarting tvheadend does not. The problem happens regardless of encoding used i.e. matroska or pass-through. I have also noticed that during the recordings that end up corrupted, tvh reports high numbers of errors as it is recording - around 2 per second.

I'm not sure if this helps, but I've also noticed that when the system is erroring, 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 starting loads of new processes for some reason.

I have posted on the tvheadend forums but had no reply as yet.

I have attached sample images to illustrate. One is what the video looks like when I try to watch it, one is the tvheadend screen during recording - note the errors at the right hand side, and one is the file list after the recordings have finished - note the filesizes as the corrupted ones are considerably smaller than the uncorrupted ones.

Can anyone suggest whether this is my TV adapter or tvh please? Any help much appreciated.

Edit: This seems to be related to the audio stream. I have captured some system logs when the error is happening:

Code: Select All Code
Aug 08 14:10:16.856 dvr: "Only Fools and Horses" on "BBC1 HD Scotland" recorder starting
Aug 08 14:10:17.257 subscription: "DVR: Only Fools and Horses" subscribing on "BBC1 HD Scotland", weight: 300, adapter: "Freeview2", network: "West Borders", mux: "West Borders: 481,833 kHz", provider: "", service: "BBC 1 Scot HD", quality: 100
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:21.320 TS: Freeview2/West Borders: 481,833 kHz/BBC 1 Scot HD: AAC @ #6602: Continuity counter error
Aug 08 14:10:21.720 TS: Freeview2/West Borders: 481,833 kHz/BBC 1 Scot HD: AAC @ #6606: 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:22.120 TS: Freeview2/West Borders: 481,833 kHz/BBC 1 Scot HD: AAC @ #6602: Continuity counter error, 4 duplicate log lines suppressed
Aug 08 14:10:23.120 TS: Freeview2/West Borders: 481,833 kHz/BBC 1 Scot HD: H264 @ #6601: Continuity counter error, 9 duplicate log lines suppressed
Aug 08 14:10:23.120 TS: Freeview2/West Borders: 481,833 kHz/BBC 1 Scot HD: AAC @ #6602: Continuity counter error, 9 duplicate log lines suppressed
Aug 08 14:10:23.920 TS: Freeview2/West Borders: 481,833 kHz/BBC 1 Scot HD: AAC @ #6606: Continuity counter error, 1 duplicate log lines suppressed
Aug 08 14:10:25.620 TS: Freeview2/West Borders: 481,833 kHz/BBC 1 Scot HD: H264 @ #6601: Continuity counter error, 14 duplicate log lines suppressed
Aug 08 14:10:25.620 TS: Freeview2/West Borders: 481,833 kHz/BBC 1 Scot HD: AAC @ #6602: Continuity counter error, 14 duplicate log lines suppressed
Aug 08 14:10:25.820 TS: Freeview2/West Borders: 481,833 kHz/BBC 1 Scot HD: AAC @ #6606: Continuity counter error, 2 duplicate log lines suppressed
Aug 08 14:10:26.020 TS: Freeview2/West Borders: 481,833 kHz/BBC 1 Scot HD: H264 @ #6601: Continuity counter error, 16 duplicate log lines suppressed
Aug 08 14:10:26.020 TS: Freeview2/West Borders: 481,833 kHz/BBC 1 Scot HD: AAC @ #6602: Continuity counter error, 16 duplicate log lines suppressed
Aug 08 14:10:27.020 TS: Freeview2/West Borders: 481,833 kHz/BBC 1 Scot HD: H264 @ #6601: Continuity counter error, 21 duplicate log lines suppressed
Aug 08 14:10:27.020 TS: Freeview2/West Borders: 481,833 kHz/BBC 1 Scot HD: AAC @ #6602: Continuity counter error, 21 duplicate log lines suppressed
Aug 08 14:10:28.020 TS: Freeview2/West Borders: 481,833 kHz/BBC 1 Scot HD: H264 @ #6601: Continuity counter error, 26 duplicate log lines suppressed
Aug 08 14:10:28.020 TS: Freeview2/West Borders: 481,833 kHz/BBC 1 Scot HD: AAC @ #6602: Continuity counter error, 26 duplicate log lines suppressed
Aug 08 14:10:29.020 TS: Freeview2/West Borders: 481,833 kHz/BBC 1 Scot HD: H264 @ #6601: Continuity counter error, 31 duplicate log lines suppressed
Aug 08 14:10:29.020 TS: Freeview2/West Borders: 481,833 kHz/BBC 1 Scot HD: AAC @ #6602: Continuity counter error, 31 duplicate log lines suppressed
Aug 08 14:10:29.020 TS: Freeview2/West Borders: 481,833 kHz/BBC 1 Scot HD: AAC @ #6606: Continuity counter error, 3 duplicate log lines suppressed
Aug 08 14:10:30.020 TS: Freeview2/West Borders: 481,833 kHz/BBC 1 Scot HD: H264 @ #6601: Continuity counter error, 36 duplicate log lines suppressed
Aug 08 14:10:30.020 parser: transport stream H264, DTS discontinuity. DTS = 313200, last = 217800
Aug 08 14:10:30.020 TS: Freeview2/West Borders: 481,833 kHz/BBC 1 Scot HD: AAC @ #6602: Continuity counter error, 36 duplicate log lines suppressed
Aug 08 14:10:31.020 TS: Freeview2/West Borders: 481,833 kHz/BBC 1 Scot HD: H264 @ #6601: Continuity counter error, 40 duplicate log lines suppressed
Aug 08 14:10:31.020 TS: Freeview2/West Borders: 481,833 kHz/BBC 1 Scot HD: AAC @ #6602: Continuity counter error, 41 duplicate log lines suppressed
Aug 08 14:10:31.020 parser: transport stream AAC, DTS discontinuity. DTS = 303527, last = 159527
Aug 08 14:10:31.220 dvr: /home/tvh/recordings/Only Fools and Horses.2013-08-08.mkv from adapter: "Freeview2", network: "West Borders", mux: "West Borders: 481,833 kHz", provider: "", service: "BBC 1 Scot HD"
Aug 08 14:10:31.220 dvr:  #  type              lang  resolution  aspect ratio  sample rate  channels
Aug 08 14:10:31.220 dvr:  1  H264                    1920x1088   30:17                               
Aug 08 14:10:31.220 dvr:  2  AAC               eng                             48000        2         
Aug 08 14:10:31.220 dvr:  3  AAC               eng                             ?            ?         
Aug 08 14:10:31.220 dvr:  4  DVBSUB            eng                                                   
Aug 08 14:10:31.620 TS: Freeview2/West Borders: 481,833 kHz/BBC 1 Scot HD: AAC @ #6606: Continuity counter error, 4 duplicate log lines suppressed
Aug 08 14:10:32.020 TS: Freeview2/West Borders: 481,833 kHz/BBC 1 Scot HD: H264 @ #6601: Continuity counter error, 45 duplicate log lines suppressed
Aug 08 14:10:32.020 TS: Freeview2/West Borders: 481,833 kHz/BBC 1 Scot HD: AAC @ #6602: Continuity counter error, 46 duplicate log lines suppressed
Attachments
recorded.png
Recorded Files After Recording
recording_errors.png
Errors During Recording Process
Framegrab.png
Sample of Corrupted Video
khinch
 
Posts: 6
Joined: Sat Jun 29, 2013 6:35 pm

Re: Corrupted Recordings in Tvheadend

Postby kerhac » Tue Sep 03, 2013 2:10 am

Hi@,
i had a similar issue, take a look here: viewtopic.php?f=52&t=7631

Regards
kerhac
 
Posts: 1
Joined: Sun Sep 01, 2013 11:26 pm


Return to Linux

Who is online

Users browsing this forum: No registered users and 5 guests

cron