Project

General

Profile

Priority mechanism logic

Added by G. Orge over 10 years ago

Hi all,

is it possible to describe, how the recording priority should work, i.e.
whether when program with higher priority is about to be recorded on different MUX,
should a currently recording program with lower priority be aborted and tuner re-tuned
to higher priority MUX frequency ?

How does TV Headend manages multiple tuners in this case.

Rgrds.

G.


Replies (1)

RE: Priority mechanism logic - Added by Martin Mrvka over 10 years ago

In tvheadend, each channel can have more services which are usually on different tuners (called adapters).

Each recording or live stream for such a channel tries to create a so called subscription to a service by iterating over all available services, which are mapped to the channel. This subscription has a weight assigned, which is calculated for example from the recording priority.

If there is already a service for the desired channel running, of course this service is choosen. Otherwise, by iterating over the available services in a first run, tvheadend tries to create a subscription with lowest priority. This means, it tries to find an available mux respectively a free adapter where it can hang on to without disturbing existing subscriptions.

If this is not possible, then in a second run, going over the mapped services, the maximum weight for existing subscriptions is calculated and compared with the new to be created subscription. Does the new subscription have the highest weight, the adapter is retuned.

HTH,
Martin

    (1-1/1)