MPEGts
Functions relating to DVB networks, multiplexes and services. Further service functions can be found in the Service section. ADMIN privilege is required for all these functions.
mpegts/input/network_list
Lists the network(s) associated with a given input device.
uuid
The uuid of the specific hardware device.
To find the input device uuid, use hardware/tree?uuid=root
, then take the id
value from the output and use it as the value of uuid
in another call to hardware/tree. From the output of this function select the id
corresponding to the specific front-end device required.
mpegts/network/grid
Lists available networks. The standard parameters listed in Grid Parameters may be used. The items returned depend on the type of network - terrestrial, satellite, IPTV etc.
mpegts/network/class
Lists the text strings, options and defaults used when configuring the DVB capability within TVH (ie Configuration -> DVB Inputs -> Networks).
mpegts/network/builders
Lists the text strings, options and defaults used when configuring the DVB capability within TVH (ie Configuration -> DVB Inputs -> Network -> Add).
mpegts/network/create
Create a new network.
class
Required. The class name matching theclass
item obtained from a call to mpegts/network/builders.conf
Required. A JSON object containing the settings for this network.
mpegts/network/mux_class
Lists the text strings, options and defaults used when editing a multiplex using Configuration -> DVB Inputs -> Muxes -> Edit.
uuid
The value ofnetwork_uuid
from a call to mpegts/mux/grid.
mpegts/network/mux_create
Create a mux for an existing network.
uuid
The uuid of the network containing this mux.conf
A JSON object containing the settings for this mux. The contents will depend on the type of network.
A JSON object containing the UUID of the new mux is returned.
mpegts/network/scan
Triggers a scan of the requested network(s).
uuid
uuid(s) of the network(s) to scan. More than one may be given; they will be scanned in sequence.
mpegts/mux/grid
Lists available multiplexes. The standard parameters listed in Grid Parameters may be used.
hidemode
If set toall
, only enabled multiplexes are listed. The default is to show all multiplexes.
mpegts/mux/class
Lists the text strings, options and defaults used when configuring the DVB capability within TVH (ie Configuration -> DVB Inputs -> Muxes).
mpegts/service/grid
Lists available mpegts services. The standard parameters listed in Grid Parameters may be used.
hidemode
The default is to show only services where the multiplex is enabled and the service has been verified. Setting this parameter toall
also hides services which are not enabled, setting it tonone
shows all services.
dvb_servicetype
can be used to determine what kind of service is being broadcast. The possibilities are:
Radio: 0x02
SD TV: 0x01, 0x16, 0x17, 0x18, 0x80, 0x96, 0xa8, 0xd3
HD TV: 0x11, 0x19 - 0x1e, 0x91, 0xa0, 0xa4, 0xa6
UHDTV: 0x1f
mpegts/service/class
Lists the text strings, options and defaults used when configuring the DVB capability within TVH (ie Configuration -> DVB Inputs -> Services).
mpegts/mux_sched/class
Lists the text strings, options and defaults used when configuring the DVB capability within TVH (ie Configuration -> DVB Inputs -> Mux Schedulers).
mpegts/mux_sched/grid
List the entries as found under Configuration -> DVB Inputs -> Mux Schedulers. The standard parameters listed in Grid Parameters may be used.
mpegts/mux_sched/create
Untested. Create a mux schedule, presumably from a structure similar to that from mpegts/mux_sched/grid.
dvb/orbitalpos/list
Lists orbital positions and the satellites occupying them. The list is distributed with tvheadend; satellite reception is not necessary to use this API.
dvb/scanfile/list
Lists the available frequency scan tables.
type
One of 'dvb-s', 'dvb-t', 'dvb-c', 'atsc-t', 'atsc-c', 'isdb-t'.satpos
For dvb-s, the satellite position in degrees multiplied by 10 with East positive (so 28.2E is written as 282). The position must be accurate within +/- 0.2 degrees.
This function requires the dvb-scan files to be present on the server. They are installed by default (in /usr/share/tvheadend/data/) but are omitted if configure argument '--disable-dvbscan' is used. Distributions may also choose to package them separately.
Last updated