Tvheadend has been driving me crazy because I am trying to receive a particular stream that takes a long time to start. The issue is that I am using a pipe:// link and calling ffmpeg to get a stream. For whatever reason this particular stream usually takes a little overone minute to start returning data after it has been called. But Tvheadend will only wait 20 seconds before it gives up and retries the stream (it re-launches ffmpeg). Of course because it is starting over that also fails, and if you have set a recording it will do an endless loop of retries and fails until the recording time ends (hammering the server in the process). I even tried changing the "Maximum timeout (seconds):" value in the Network settings from 20 to 180 (just to give plenty of time no matter what) and yet it totally ignores that and keeps restarting after 20 seconds.
I have been trying to think of ways around this but everything I think of won't work. For example in a Tvheadend recording profile you can run a Pre-processor command. If I could do this a couple minutes in advance of when Tvheadend actually attempts to start recording there might be a very kludgey workaround I could use, but it appears Tvheadend runs the Pre-processor command and then immediately starts the recording. This would not be my preferred way to deal with this anyway (since the more kludges you use the less reliable it gets).
I wish there were an option to just try firing off a pipe:// link ONCE, and then WAIT until a stream actually comes in or the timeout set in the Network settings is reached.
Then another issue is that with certain tuners it would be helpful to do a dummy "warmup" recording without actually saving anything to the hard drive. If Linux had something like /dev/null but that was a directory I would just send the warm-up recording there, but it doesn't so I can't. It would be helpful to have a way to specify in a recording profile that you don't really want to record anything, just go through the motions to warm up the equipment.
Finally, is there any relatively easy way to schedule using a manual recording from the Linux command prompt or a bash shell script? I found an old Python script that was supposed to do it but it wanted a Python module called tvh which apparently is no longer in the Python modules repository, also I suspect it was written for Python 2 not Python 3. It would be REALLY helpful to be able to be able to use a program or a script to start recording a particular channel now, for a duration of say 10 minutes and then quit, WITHOUT needing to do it through the Tvheadend web interface.