• TVHeadend occasionally failing to stop recording at the scheduled time

    From NY@me@privacy.net to uk.tech.digital-tv on Sun Aug 31 15:06:45 2025
    From Newsgroup: uk.tech.digital-tv

    Has anyone else found that TVHeadend (Unix PVR software, recording via
    DVB-T or DVB-S tuner) occasionally fails to stop recording at the
    scheduled stop time?

    I've had two recordings, both on BBC Four and both scheduled to stop at
    around 0200-0400, which carried on recording until I manually cancelled
    them later in the morning - generating 30 GB files ;-)

    I don't have Accurate Recording turned on (which uses a signal from the broadcaster to determine when to start and stop, designed to avoid
    problems with late-running programmes) because I've found that it often
    fails to start recording.

    I have a system-wide pre-padding of 5 minutes and post-padding of 15
    minutes. I have confirmed that the reported times match the EPG times, allowing for that padding. Unfortunately there isn't an error message in
    the log file (in Configuration | Debugging I have Syslog, Debug to
    Syslog, Debug Trace low level and Debug libav log ticked): at the time
    that recording should have ended, there is nothing - only the hourly EPG database updates:

    2025-08-31 02:18:32.002 [ INFO]:epgdb: snapshot start
    2025-08-31 02:18:32.082 [ INFO]:epgdb: queued to save (size 3557166) 2025-08-31 02:18:32.082 [ INFO]:epgdb: broadcasts 9254
    2025-08-31 02:18:32.082 [ INFO]:epgdb: save start
    2025-08-31 02:18:32.187 [ INFO]:epgdb: stored (size 806809)
    2025-08-31 03:18:32.002 [ INFO]:epgdb: snapshot start
    2025-08-31 03:18:32.095 [ INFO]:epgdb: queued to save (size 3557166) 2025-08-31 03:18:32.095 [ INFO]:epgdb: broadcasts 9254
    2025-08-31 03:18:32.095 [ INFO]:epgdb: save start
    2025-08-31 03:18:32.217 [ INFO]:epgdb: stored (size 806809)
    2025-08-31 04:18:32.006 [ INFO]:epgdb: snapshot start
    2025-08-31 04:18:32.105 [ INFO]:epgdb: queued to save (size 3557166) 2025-08-31 04:18:32.105 [ INFO]:epgdb: broadcasts 9254
    2025-08-31 04:18:32.105 [ INFO]:epgdb: save start
    2025-08-31 04:18:32.219 [ INFO]:epgdb: stored (size 806809)

    Recording should have finished at 04:10 (and called a program that I
    have written which dumps the pathname, number of reported errors etc to
    a text file), but nothing until

    2025-08-31 09:17:33.544 [ INFO]:subscription: 0BE9: "DVR: Miss Marple:
    4:50 From Paddington" unsubscribing from "106 BBC Four HD", username="" 2025-08-31 09:17:33.545 [ INFO]:spawn: Executing "/srv/ext/Videos/debug/postproc"
    2025-08-31 09:17:33.561 [ INFO]:dvr: "Miss Marple: 4:50 From
    Paddington" on "106 BBC Four HD": End of program: Completed OK
    2025-08-31 09:17:33.578 [ INFO]:spawn: Recording finished at Sun 31
    Aug 2025 09:17:33
    2025-08-31 09:17:33.578 [ INFO]:spawn: argc 10 2025-08-31 09:17:33.578 [ INFO]:spawn: argv[1] Pathname /srv/ext/Videos/Miss Marple_ 4_50 From Paddington/Miss Marple_ 4_50 From Paddington-20250831-0205-106 BBC Four HD.ts
    2025-08-31 09:17:33.578 [ INFO]:spawn: argv[2] Filename
    Miss Marple_ 4_50 From Paddington-20250831-0205-106 BBC Four HD.ts
    2025-08-31 09:17:33.578 [ INFO]:spawn: argv[3] Title
    Miss Marple: 4:50 From Paddington
    2025-08-31 09:17:33.578 [ INFO]:spawn: argv[4] Summary
    Travelling on the 4.50 from Paddington, Mrs McGillicuddy witnesses a
    murder on a passing train - but where is the body? [S]
    2025-08-31 09:17:33.578 [ INFO]:spawn: argv[5] Status OK
    2025-08-31 09:17:33.578 [ INFO]:spawn: argv[6] Errors / Data Errors 0 / 7
    2025-08-31 09:17:33.578 [ INFO]:spawn: argv[7] Creator IP 192.168.1.80
    2025-08-31 09:17:33.578 [ INFO]:spawn: argv[8] Start Time
    Sun 31 Aug 2025 02:00:00 (1756602000)
    2025-08-31 09:17:33.578 [ INFO]:spawn: argv[9] End Time
    Sun 31 Aug 2025 04:10:00 (1756609800)
    2025-08-31 09:17:33.578 [ INFO]:spawn: Duration 130 min
    0 sec

    when I manually stopped recording. /srv/ext/Videos/debug/postproc is my program which received command line inputs of various fields from a line

    /srv/ext/Videos/debug/postproc "%f" "%b" "%t" "%s" "%e" "%r / %R" "%C"
    "%S" "%E"

    in Configuration | Recording, Post Processor Command


    Normally this works perfectly and has done for about 8 years.

    Tvheadend is V4.3-2375~g653bd0400.
    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From Andy Burns@usenet@andyburns.uk to uk.tech.digital-tv on Sun Aug 31 15:21:24 2025
    From Newsgroup: uk.tech.digital-tv

    NY wrote:

    Has anyone else found that TVHeadend [...] occasionally fails to stop recording at the
    scheduled stop time?
    My F1 autorec stopped working some time ago, and I've not tended to
    record much else, so probably wouldn't notice ...

    --- Synchronet 3.21a-Linux NewsLink 1.2