Closed SupaschaiPh closed 6 months ago
API Sample
{
"http-flv": {
"nginx_version": "1.25.4",
"nginx_http_flv_version": "1.2.11",
"compiler": "gcc 11.4.0 (Ubuntu 11.4.0-1ubuntu1~22.04) ",
"built": "Apr 11 2024 03:45:44",
"pid": 8,
"uptime": 32,
"naccepted": 0,
"bw_in": 0,
"bytes_in": 0,
"bw_out": 0,
"bytes_out": 0,
"servers": [
{
"port": 1935,
"server_index": 0,
"applications": [
{
"name": "live_src",
"live": {
"streams": [],
"nclients": 0
},
"recorders": {
"count": 1,
"lists": [
{
"id": "",
"flags": [
"off"
],
"unique": false,
"append": false,
"lock_file": false,
"notify": false,
"path": "",
"max_size": 0,
"max_frames": 0,
"interval": 18446744073709552000,
"suffix": ".flv"
}
]
}
},
{
"name": "live",
"live": {
"streams": [],
"nclients": 0
},
"recorders": {
"count": 1,
"lists": [
{
"id": "",
"flags": [
"off"
],
"unique": false,
"append": false,
"lock_file": false,
"notify": false,
"path": "",
"max_size": 0,
"max_frames": 0,
"interval": 18446744073709552000,
"suffix": ".flv"
}
]
}
}
]
}
]
}
}
Sample Data
{
"http-flv": {
"nginx_version": "1.25.4",
"nginx_http_flv_version": "1.2.11",
"compiler": "gcc 11.4.0 (Ubuntu 11.4.0-1ubuntu1~22.04) ",
"built": "Apr 11 2024 03:45:44",
"pid": 352,
"uptime": 12530,
"naccepted": 10,
"bw_in": 39933608,
"bytes_in": 8678464693,
"bw_out": 57338160,
"bytes_out": 8583027291,
"servers": [
{
"port": 1935,
"server_index": 0,
"applications": [
{
"name": "ingest",
"live": {
"streams": [
{
"name": "aOBV9w6C",
"time": 3847613,
"bw_in": 27047000,
"bytes_in": 5309236238,
"bw_out": 0,
"bytes_out": 0,
"bw_audio": 350728,
"bw_video": 24680384,
"clients": [
{
"id": 330,
"address": "",
"time": 3847614,
"flashver": "APSH 16,351",
"pageurl": "nginx-auto-push",
"dropped": 0,
"avsync": 727856,
"timestamp": 3846696,
"publishing": true,
"active": true
}
],
"records": [],
"meta": {
"video": {
"width": 1920,
"height": 1080,
"frame_rate": 50,
"codec": "H264",
"profile": "High",
"level": 4.2
},
"audio": {
"codec": "AAC",
"profile": "LC",
"channels": 2,
"sample_rate": 48000
}
},
"nclients": 1,
"publishing": true,
"active": true
}
],
"nclients": 1
},
"recorders": {
"count": 1,
"lists": [
{
"id": "",
"flags": [
"off"
],
"unique": false,
"append": false,
"lock_file": false,
"notify": false,
"path": "",
"max_size": 0,
"max_frames": 0,
"interval": 1.8446744073709552e+19,
"suffix": ".flv"
}
]
}
},
{
"name": "live",
"live": {
"streams": [
{
"name": "aOBV9w6C_720",
"time": 3845774,
"bw_in": 3747944,
"bytes_in": 564346994,
"bw_out": 56219184,
"bytes_out": 8465204025,
"bw_audio": 181424,
"bw_video": 3566520,
"clients": [
{
"id": 393,
"address": "/tmp/nginx-http-flv.351",
"time": 3845774,
"flashver": "ngx-local-relay",
"dropped": 0,
"avsync": -1,
"timestamp": 3845660,
"publishing": false,
"active": true
},
{
"id": 409,
"address": "/tmp/nginx-http-flv.361",
"time": 3845774,
"flashver": "ngx-local-relay",
"dropped": 0,
"avsync": -1,
"timestamp": 3845660,
"publishing": false,
"active": true
},
{
"id": 419,
"address": "/tmp/nginx-http-flv.366",
"time": 3845774,
"flashver": "ngx-local-relay",
"dropped": 0,
"avsync": -1,
"timestamp": 3845660,
"publishing": false,
"active": true
},
{
"id": 413,
"address": "/tmp/nginx-http-flv.363",
"time": 3845774,
"flashver": "ngx-local-relay",
"dropped": 0,
"avsync": -1,
"timestamp": 3845660,
"publishing": false,
"active": true
},
{
"id": 417,
"address": "/tmp/nginx-http-flv.365",
"time": 3845774,
"flashver": "ngx-local-relay",
"dropped": 0,
"avsync": -1,
"timestamp": 3845660,
"publishing": false,
"active": true
},
{
"id": 416,
"address": "/tmp/nginx-http-flv.364",
"time": 3845774,
"flashver": "ngx-local-relay",
"dropped": 0,
"avsync": -1,
"timestamp": 3845660,
"publishing": false,
"active": true
},
{
"id": 411,
"address": "/tmp/nginx-http-flv.362",
"time": 3845774,
"flashver": "ngx-local-relay",
"dropped": 0,
"avsync": -1,
"timestamp": 3845660,
"publishing": false,
"active": true
},
{
"id": 407,
"address": "/tmp/nginx-http-flv.360",
"time": 3845774,
"flashver": "ngx-local-relay",
"dropped": 0,
"avsync": -1,
"timestamp": 3845660,
"publishing": false,
"active": true
},
{
"id": 406,
"address": "/tmp/nginx-http-flv.359",
"time": 3845774,
"flashver": "ngx-local-relay",
"dropped": 0,
"avsync": -1,
"timestamp": 3845660,
"publishing": false,
"active": true
},
{
"id": 403,
"address": "/tmp/nginx-http-flv.358",
"time": 3845774,
"flashver": "ngx-local-relay",
"dropped": 0,
"avsync": -1,
"timestamp": 3845660,
"publishing": false,
"active": true
},
{
"id": 401,
"address": "/tmp/nginx-http-flv.357",
"time": 3845774,
"flashver": "ngx-local-relay",
"dropped": 0,
"avsync": -1,
"timestamp": 3845660,
"publishing": false,
"active": true
},
{
"id": 399,
"address": "/tmp/nginx-http-flv.356",
"time": 3845774,
"flashver": "ngx-local-relay",
"dropped": 0,
"avsync": -1,
"timestamp": 3845660,
"publishing": false,
"active": true
},
{
"id": 397,
"address": "/tmp/nginx-http-flv.355",
"time": 3845774,
"flashver": "ngx-local-relay",
"dropped": 0,
"avsync": -1,
"timestamp": 3845660,
"publishing": false,
"active": true
},
{
"id": 395,
"address": "/tmp/nginx-http-flv.354",
"time": 3845774,
"flashver": "ngx-local-relay",
"dropped": 0,
"avsync": -1,
"timestamp": 3845660,
"publishing": false,
"active": true
},
{
"id": 394,
"address": "/tmp/nginx-http-flv.353",
"time": 3845774,
"flashver": "ngx-local-relay",
"dropped": 0,
"avsync": -1,
"timestamp": 3845660,
"publishing": false,
"active": true
},
{
"id": 392,
"address": "127.0.0.1",
"time": 3846033,
"flashver": "FMLE/3.0 (compatible; Lavf61.1.100)",
"dropped": 0,
"avsync": -1,
"timestamp": 3845660,
"publishing": true,
"active": true
}
],
"records": [],
"meta": {
"video": {
"width": 1280,
"height": 720,
"frame_rate": 50,
"codec": "H264",
"profile": "High",
"level": 3.2
},
"audio": {
"codec": "AAC",
"profile": "LC",
"channels": 2,
"sample_rate": 44100
}
},
"nclients": 16,
"publishing": true,
"active": true
},
{
"name": "aOBV9w6C_360",
"time": 3845512,
"bw_in": 1186416,
"bytes_in": 192426468,
"bw_out": 0,
"bytes_out": 0,
"bw_audio": 108440,
"bw_video": 1077968,
"clients": [
{
"id": 427,
"address": "",
"time": 3845514,
"flashver": "APSH 35,353",
"pageurl": "nginx-auto-push",
"dropped": 0,
"avsync": -12,
"timestamp": 3845300,
"publishing": true,
"active": true
}
],
"records": [],
"meta": {
"video": {
"width": 640,
"height": 360,
"frame_rate": 50,
"codec": "H264",
"profile": "High",
"level": 3.1
},
"audio": {
"codec": "AAC",
"profile": "LC",
"channels": 2,
"sample_rate": 44100
}
},
"nclients": 1,
"publishing": true,
"active": true
},
{
"name": "aOBV9w6C_240",
"time": 3845252,
"bw_in": 645728,
"bytes_in": 86034662,
"bw_out": 0,
"bytes_out": 0,
"bw_audio": 72880,
"bw_video": 572896,
"clients": [
{
"id": 457,
"address": "",
"time": 3845254,
"flashver": "APSH 16,351",
"pageurl": "nginx-auto-push",
"dropped": 0,
"avsync": -9,
"timestamp": 3845320,
"publishing": true,
"active": true
}
],
"records": [],
"meta": {
"video": {
"width": 426,
"height": 240,
"frame_rate": 50,
"codec": "H264",
"profile": "High",
"level": 2.2
},
"audio": {
"codec": "AAC",
"profile": "LC",
"channels": 2,
"sample_rate": 44100
}
},
"nclients": 1,
"publishing": true,
"active": true
},
{
"name": "aOBV9w6C_1080",
"time": 3846033,
"bw_in": 6756976,
"bytes_in": 2439537981,
"bw_out": 0,
"bytes_out": 0,
"bw_audio": 295952,
"bw_video": 6461016,
"clients": [
{
"id": 363,
"address": "",
"time": 3846034,
"flashver": "APSH 16,351",
"pageurl": "nginx-auto-push",
"dropped": 0,
"avsync": -14,
"timestamp": 3845580,
"publishing": true,
"active": true
}
],
"records": [],
"meta": {
"video": {
"width": 1920,
"height": 1080,
"frame_rate": 50,
"codec": "H264",
"profile": "High",
"level": 4.2
},
"audio": {
"codec": "AAC",
"profile": "LC",
"channels": 2,
"sample_rate": 44100
}
},
"nclients": 1,
"publishing": true,
"active": true
}
],
"nclients": 19
},
"recorders": {
"count": 1,
"lists": [
{
"id": "",
"flags": [
"off"
],
"unique": false,
"append": false,
"lock_file": false,
"notify": false,
"path": "",
"max_size": 0,
"max_frames": 0,
"interval": 1.8446744073709552e+19,
"suffix": ".flv"
}
]
}
}
]
}
]
}
}
ทำอันนี้ต่อ