Bug #6108
Starts recording before receiving EPG running flag
0%
Description
Recently moved to 4.3 latest branch after using 4.2 for many years. I use the "Use EPG running state" turned on for DVR recordings. Recording TV in the UK over DVB-T.
I have 30 seconds extra warming up time and 5 mins pre-recording padding configured in the DVR profile.
I've noticed that sometimes TVH will commence recording to file for a short period of time (5 - 10 secs) and then the status would change from "Running" back to "Waiting for EPG running flag". Then later when the EPG running flag is detected TVH starts recording but to a new filename.
States seem to go:
- Scheduled for recording
- Running (with filename: /recordings/Channel 4 HD/2021-12-13-18-00-The Simpsons.ts)
- Waiting for EPG running flag (with filename: /recordings/Channel 4 HD/2021-12-13-18-00-The Simpsons.ts)
- Running (with filename: /recordings/Channel 4 HD/2021-12-13-18-00-The Simpsons-1.ts)
- Completed OK (with filename: /recordings/Channel 4 HD/2021-12-13-18-00-The Simpsons-1.ts)
Note the different filenames for the last two states.
After the recording is completed and looking at the filesystem the two files are sized:
2021-12-13-18-00-The Simpsons.ts - 5,730,804 bytes
2021-12-13-18-00-The Simpsons-1.ts - 767,236,648 bytes
This is unexpected behaviour and different to TVH 4.2 (latest) where it would go straight from "Scheduled for recording" to "Waiting for EPG running flag".
Is this a bug or expected?
Log file:
2021-12-13 17:52:21.909 [ INFO] dvr: entry 05c8806833368d28c8ccb5c778bbd320 "The Simpsons" on "Channel 4 HD" starting at 2021-12-13 17:54:30, with broadcast id "crid://www.channel4.com/72304/017", scheduled for recording by "172.17.0.9" 2021-12-13 17:54:30.005 [ INFO] dvr: "The Simpsons" on "Channel 4 HD" recorder starting 2021-12-13 17:54:30.035 [ INFO] subscription: 0016: "DVR: The Simpsons" subscribing on channel "Channel 4 HD", weight: 200, adapter: "HDHomeRun DVB-T Tuner #0 (192.168.90.33)", network: "DVB-T Network", mux: "618MHz", service: "Channel 4 HD", profile="pass", username="" 2021-12-13 17:55:00.060 [ INFO] dvr: /recordings/Channel 4 HD/2021-12-13-18-00-The Simpsons.ts from adapter: "HDHomeRun DVB-T Tuner #0 (192.168.90.33)", network: "DVB-T Network", mux: "618MHz", provider: "<N/A>", service: " Channel 4 HD" 2021-12-13 17:55:00.060 [ INFO] dvr: # type lang resolution aspect ratio sample rate channels 2021-12-13 17:55:00.060 [ INFO] dvr: 1 H264 ? ? 2021-12-13 17:55:00.060 [ INFO] dvr: 2 AAC-LATM eng 96000 ? 2021-12-13 17:55:00.060 [ INFO] dvr: 3 AAC-LATM eng 96000 ? 2021-12-13 17:55:00.060 [ INFO] dvr: 4 DVBSUB eng 2021-12-13 18:02:13.603 [ INFO] dvr: /recordings/Channel 4 HD/2021-12-13-18-00-The Simpsons-1.ts from adapter: "HDHomeRun DVB-T Tuner #0 (192.168.90.33)", network: "DVB-T Network", mux: "618MHz", provider: "<N/A>", service: "Channel 4 HD" 2021-12-13 18:02:13.603 [ INFO] dvr: # type lang resolution aspect ratio sample rate channels 2021-12-13 18:02:13.603 [ INFO] dvr: 1 H264 ? ? 2021-12-13 18:02:13.603 [ INFO] dvr: 2 AAC-LATM eng 96000 ? 2021-12-13 18:02:13.603 [ INFO] dvr: 3 AAC-LATM eng 96000 ? 2021-12-13 18:02:13.603 [ INFO] dvr: 4 DVBSUB eng 2021-12-13 18:29:10.484 [ INFO] subscription: 0016: "DVR: The Simpsons" unsubscribing from "Channel 4 HD", username="" 2021-12-13 18:29:10.580 [ INFO] dvr: "The Simpsons" on "Channel 4 HD": End of program: Completed OK
History
Updated by Dave Pickles almost 3 years ago
I believe this is expected.
"Use EPG Running State" means that TVH should start recording when the programme changes from 'next' to 'now' in the EPG. Pre-recording padding doesn't make sense in this case, so the padding interval is treated as a separate recording. Maybe TVH should ignore any padding value if "Use EPG Running State" is set.
Updated by dj bloc almost 3 years ago
Thanks. I should reiterate TVH doesn't do it all the time - only intermittently. We record up to 6 things at same time so that may be contributing to the issue.
Seeing the first recording started exactly 30 secs after the subscription started (and that this value is the same as the extra warming up time) I'll test what happens when setting the extra warming up time to zero.
I disagree on the pre-recording padding. It is needed to start the subscription so that TVH is monitoring the channel to detect the EPG running flag. Without the pre-recording padding TVH misses those recordings that start before the scheduled start time.