api:iptv:basechannel:stats2
Table of Contents
API : IPTV : Base Channel : Channel Statistics
Introduction
This request will return live statistics and configuration data for a single base channel.
Request
| URL | https://api.telecomx.dk/iptv/basechannel/BASECHANNEL_ID/stats | ||
|---|---|---|---|
| Method | DELETE | ||
| Access level | ADMIN. | ||
| Params | BASECHANNEL_ID | Number | Id of the base channel. |
| Query | mini | Boolean | True if only statistics and not settings should be returned. |
Query example
https://api.telecomx.dk/iptv/basechannel/1/stats https://api.telecomx.dk/iptv/basechannel/1/stats?mini=true
Response
Object with statstictics and settings.
Example
{ "stats": { "headEnd": { "tuner": 54397, "descrambler": 11286, "snr": 14, "level": -35, "locked": true }, "transcoders": { "0": 5480, "1": 1409, "2": 696, "3": 5832 }, "streamers": { "stbstream1.powernet.tv": [ { "id": "1", "bitrate": 4908, "alive": true, "running": true, "tsDelay": 163, "errorRate": 0, "clientCount": 2, "clientBitrate": 1422, "started": "2017-11-30T12:52:06.840Z", "streams": 2, "audio": { "max": -10.4, "mean": -26.6 } } ], "stbstream2.powernet.tv": [ { "id": "1", "bitrate": 4908, "alive": true, "running": true, "tsDelay": 149, "errorRate": 0, "clientCount": 2, "clientBitrate": 1418, "started": "2017-11-18T14:02:28.319Z", "streams": 2, "audio": { "max": -10.4, "mean": -26.6 } } ], "archive1.powernet.tv": [ { "id": "1", "bitrate": 4908, "alive": true, "running": true, "tsDelay": 179, "errorRate": 0, "clientCount": 1, "clientBitrate": 1418, "started": "2017-12-07T14:52:41.513Z", "streams": 2, "audio": { "max": -10.4, "mean": -26.6 } }, { "id": "1l", "bitrate": 5372, "alive": true, "running": true, "tsDelay": 185, "errorRate": 0, "clientCount": 1, "clientBitrate": 1370, "started": "2017-12-07T14:52:41.514Z", "streams": 4, "audio": { "max": -10.8, "mean": -26.7 } } ], "archive2.powernet.tv": [ { "id": "1", "bitrate": 4908, "alive": true, "running": true, "tsDelay": 181, "errorRate": 0, "clientCount": 2, "clientBitrate": 1395, "started": "2017-12-05T13:52:20.817Z", "streams": 2, "audio": { "max": -10.4, "mean": -26.6 } }, { "id": "1l", "bitrate": 5372, "alive": true, "running": true, "tsDelay": 132, "errorRate": 0, "clientCount": 1, "clientBitrate": 1371, "started": "2017-12-04T21:21:04.680Z", "streams": 4, "audio": { "max": -10.8, "mean": -26.7 } } ], "appstream1.powernet.tv": [], "appstream2.powernet.tv": [ { "id": "1", "bitrate": 5372, "alive": true, "running": true, "tsDelay": 180, "errorRate": 0, "clientCount": 2, "clientBitrate": 1371, "started": "2017-12-10T20:50:03.247Z", "streams": 4, "audio": { "max": -10.8, "mean": -26.7 } } ] } }, "up": true, "stateStart": "2017-12-11T12:44:48.569Z", "settings": { "_id": 1, "stbStreams": [ "http://stbstream1.powernet.tv/1/video.m3u8", "http://stbstream2.powernet.tv/1/video.m3u8" ], "drmStreams": [ "https://appstream1.powernet.tv/1/index.m3u8", "https://appstream2.powernet.tv/1/index.m3u8" ], "epgId": [ "honeybee.1686", "cd.4811", "ritzau.3" ], "name": "DR1", "hd": true, "archive": true, "record": true, "archiveServers": [ "archive1.powernet.tv", "archive2.powernet.tv" ], "nPvrServers": [ "npvr1.powernet.tv", "npvr2.powernet.tv" ], "headEnd": { "id": 2, "tuner": { "module": 2, "port": 1, "config": "DVB-S2", "frequency": 10903, "symbolRate": 25000, "polarization": "Horizontal", "pids": { "1280": { "type": 27, "typeName": "H.264 video", "typeMode": "VIDEO", "ccErrors": 346 }, "3498": { "type": 3, "typeName": "MPEG-1 audio", "typeMode": "AUDIO", "language": [ "dan" ], "ccErrors": 273 }, "6133": { "type": 6, "typeName": "AC-3 audio", "typeMode": "AUDIO", "ccErrors": 206 }, "7522": { "type": 5, "typeName": "MPEG-2 tabled data", "typeMode": "DATA", "ccErrors": 62 }, "7523": { "type": 11, "typeName": "DSM CC U-N messages", "typeMode": "DATA", "ccErrors": 156 } }, "pmt": "296", "pcr": "1280", "ecm": { "pid": "7063", "ca_system_id": "2816" } }, "descrambler": { "module": 5, "card": 3 }, "output": "udp://239.239.1.1:1234", "sid": 4811 }, "transcoders": [ { "id": 1, "input": { "id": 9, "url": "udp://239.239.1.1:1234" }, "coder": { "id": 8, "audioBitrate": 128, "videoFormat": "H.264 VBR", "videoBitrate": 4800, "maxBitrate": 0, "resolution": "1280*720@25p", "pFrame": 12, "bFrame": 3, "audioGain": 0, "h264Profile": "Main", "subtitle": true, "activeBitrate": 0, "cc": false, "deinterlacer": true, "denoiser": false }, "output": "udp://239.1.16.1:1234" }, { "id": 1, "input": { "id": 9, "url": "udp://239.239.1.1:1234" }, "coder": { "id": 7, "audioBitrate": 128, "videoFormat": "H.264 VBR", "videoBitrate": 2000, "maxBitrate": 2800, "resolution": "640*360@25p", "pFrame": 12, "bFrame": 3, "audioGain": 0, "h264Profile": "Main", "subtitle": true, "activeBitrate": 3200, "cc": false, "deinterlacer": true, "denoiser": false }, "output": "udp://239.1.16.101:1234" }, { "id": 26, "input": { "id": 7, "url": "udp://239.239.1.1:1234" }, "coder": { "id": 2, "audioBitrate": 128, "videoFormat": "H.264 VBR", "videoBitrate": 200, "maxBitrate": 800, "resolution": "320*180@25p", "pFrame": 12, "bFrame": 3, "audioGain": 0, "h264Profile": "Main", "activeBitrate": 2000, "subtitle": false, "cc": false, "deinterlacer": true, "denoiser": false }, "output": "udp://239.1.18.1:1234" }, { "id": 26, "input": { "id": 7, "url": "udp://239.239.1.1:1234" }, "coder": { "id": 1, "audioBitrate": 128, "videoFormat": "H.264 VBR", "videoBitrate": 7000, "maxBitrate": 10000, "resolution": "1280*720@50p", "pFrame": 12, "bFrame": 3, "audioGain": 0, "h264Profile": "High", "activeBitrate": 9000, "cc": false, "subtitle": false, "deinterlacer": false, "denoiser": false }, "output": "udp://239.1.18.101:1234" } ], "stbArchiveStreams": [ "http://archive1.powernet.tv/1/video.m3u8", "http://archive2.powernet.tv/1/video.m3u8" ], "drmArchiveStreams": [ "https://archive1.powernet.tv/1l/index.m3u8", "https://archive2.powernet.tv/1l/index.m3u8" ], "archiveForwardScrub": false, "archiveBackwardScrub": false, "archivePause": true, "disableErrorNotification": false } }
Errors
| Error code | Message | Description |
|---|---|---|
| 403 | access_denied | Insufficient access level |
| 500 | internal_error | <Unspecified> |
api/iptv/basechannel/stats2.txt · Last modified: 2017/12/11 14:24 by Per Møller