Project

General

Profile

Bug #4022

PVR stops before transcoder has finished

Added by Christopher Small about 8 years ago. Updated about 8 years ago.

Status:
New
Priority:
Normal
Assignee:
Category:
PVR / DVR
Target version:
-
Start date:
2016-10-14
Due date:
% Done:

0%

Estimated time:
Found in version:
4.0.9
Affected Versions:

Description

Hypothesis:
I think tvheadend PVR code (in dvr_rec.c) kills the transcoding thread when the recording is scheduled to end, but the transcoder might be behind, have untranscoded frames still buffered in RAM, and this results in the recording being cut short.

Data:
  • I am running tvheadend on a system with an underpowered CPU.
  • When transcoding OTA 1080p ATSC to 720p, one-hour recordings end after 50-55 minutes, although the tvheadend log messages show the recording starting and ending at the scheduled time.
  • I see that RSS (as seen in top(1)) for the tvheadend process grows continuously during the program and drops down at the time the program is scheduled to end.
  • When transcoding to 480p, one-hour recordings complete successfully and RSS does not grow continuously during the program.

I haven't worked through all of the logic in dvr_rec.c but it appears that when the SMT_STOP event is received it kills the transcode job immediately, doesn't alow it to drain.

This is on Ubuntu 16.04.

History

#1

Updated by Jaroslav Kysela about 8 years ago

TVH assumes only realtime data processing at the moment. Use post-command scripting to queue transcode jobs.

Also available in: Atom PDF