diff --git a/kernel b/kernel
index 12527c7..dee0af5 100755
Binary files a/kernel and b/kernel differ
diff --git a/rootfs/etc/init.d/rcS b/rootfs/etc/init.d/rcS
index ad49e73..937825a 100644
--- a/rootfs/etc/init.d/rcS
+++ b/rootfs/etc/init.d/rcS
@@ -3,13 +3,12 @@
/bin/mount -a
echo "
- _ _ _ _ _ _ _ _ _ _ _ _
- \ _ _ _ _ _ ___
- / /__/ \ |_/
- / __ / - _ ___
- / / / / / /
- _ _ _ _/ / / \_/ \_ ______
-___________\___\__________________
+ _____ _ __ _______ _
+ |_ _| (_) [ | _ |_ __ \ (_)
+ | | __ _ .--. | | / ] | |__) |__
+ | | _ [ | [ \`.-. | | '' < | ___/[ |
+ _| |__/ | | | | | | | | |\`\ \ _| |_ | |
+ |________|[___][___||__][__| \_]|_____| [___]
"
for initscript in /etc/init.d/S[0-9][0-9]*
do
@@ -20,41 +19,4 @@ do
fi
done
-/sbin/sysctl -p /etc/sysctl.conf
-
-cd /ko
-./load3521d -i
-
-telnetd
-
-chown root:root /var/empty
-/usr/local/sbin/sshd
-
-#UART3
-#himm 0x120F0100 1
-#himm 0x120F0100 1
-
-#UART1
-himm 0x120F00F8 1
-himm 0x120F00FC 1
-
-#I2S
-himm 0x120F00A0 1
-himm 0x120F00A4 1
-himm 0x120F00A8 1
-himm 0x120F00AC 1
-himm 0x120F00B0 1
-himm 0x120F00B4 1
-himm 0x120F00B8 1
-himm 0x120F00BC 1
-
-#QOS
-himm 0x12120084 0x66663666
-
-#i2c
-himm 0x120F00E0 1
-himm 0x120F00E4 1
-
/link/shell/init.sh
-
-
diff --git a/rootfs/etc/sysctl.conf b/rootfs/etc/sysctl.conf
index be8b9a9..5496906 100644
--- a/rootfs/etc/sysctl.conf
+++ b/rootfs/etc/sysctl.conf
@@ -12,5 +12,7 @@ net.ipv4.tcp_wmem = 32768 4336600 873200
net.ipv4.tcp_rmem = 32768 4336600 873200
net.ipv4.tcp_mem = 786432 1048576 1572864
-net.ipv4.ip_forward = 1
+#net.ipv4.ip_forward = 1
+#net.ipv4.tcp_tw_recycle = 1
+#net.ipv4.tcp_tw_reuse = 1
diff --git a/rootfs/etc/udev/automount.sh b/rootfs/etc/udev/automount.sh
index 631d860..eec66c4 100644
--- a/rootfs/etc/udev/automount.sh
+++ b/rootfs/etc/udev/automount.sh
@@ -1,3 +1,5 @@
#!/bin/sh
-mount -t vfat -o sync /dev/sda1 /root/usb
-mount -t ext4 -o sync /dev/sda1 /root/usb
+/bin/umount /root/usb
+/bin/mount -t vfat -o codepage=936,utf8 /dev/sda1 /root/usb
+/bin/mount -t ext4 /dev/sda1 /root/usb
+/usr/bin/ntfs-3g /dev/sda1 /root/usb
diff --git a/rootfs/ko/load3521d b/rootfs/ko/load3521d
index 7cede28..0c13c0e 100644
--- a/rootfs/ko/load3521d
+++ b/rootfs/ko/load3521d
@@ -4,7 +4,7 @@
# -i : insmod all modules
# default : rmmod all moules and then insmod them
#
-
+. /link/shell/util/hardware.sh
####################Variables Definition##########################
AD_TYPE=6134 # ad type
@@ -15,7 +15,7 @@ os_mem_size=200; # 64M, os mem
mmz_start=0x8C800000; # mmz start addr
mmz_size=312M; # 128M, mmz size
board_mode="demo"; # demo or sck
-if [ "`cat /link/config/fac`" == "SH" ]; then
+if [ "$fac" == "SH" ]; then
mem_total=1024; # 512M, total mem
mem_start=0x80000000; # phy mem start
@@ -115,7 +115,11 @@ insert_ko()
insmod hi3521d_vpss.ko
insmod hi3521d_vou.ko
+if [ "$fac" == "SH" ]; then
insmod hifb.ko video="hifb:vram0_size:32400,vram1_size:8100" softcursor="off"
+else
+ insmod hifb.ko video="hifb:vram0_size:8100" softcursor="off"
+fi
insmod hi3521d_hdmi.ko
insmod hi3521d_rc.ko
@@ -132,7 +136,7 @@ insert_ko()
insmod hi_ir.ko
insmod extdrv/gpio_com_drv.ko
-if [ "`cat /link/config/fac`" == "SH" ]; then
+if [ "$fac" == "SH" ]; then
insmod extdrv/gs2971a.ko
insmod extdrv/8821cu_21.ko
insmod extdrv/8852bu_21.ko
diff --git a/rootfs/link/bin/Encoder b/rootfs/link/bin/Encoder
index 0aaae08..4712b44 100644
Binary files a/rootfs/link/bin/Encoder and b/rootfs/link/bin/Encoder differ
diff --git a/rootfs/link/config/config.json b/rootfs/link/config/config.json
index c4332b6..c84331a 100644
--- a/rootfs/link/config/config.json
+++ b/rootfs/link/config/config.json
@@ -4,107 +4,13 @@
"name": "HDMI",
"type": "vi",
"enable": true,
- "enable2": true,
- "interface": "HDMI",
- "cap": {
- "deinterlace": false,
- "rotate": 0,
- "crop": {
- "L": 0,
- "R": 0,
- "T": 0,
- "B": 0
- },
- "ntsc": false
- },
+ "enable2": false,
"encv": {
- "roi": [
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- }
- ],
"width": 1920,
"height": 1080,
"framerate": 30,
"bitrate": 4000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 2,
"codec": "h264",
@@ -120,7 +26,7 @@
"height": 360,
"framerate": 30,
"bitrate": 1000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 1,
"codec": "h264",
@@ -132,7 +38,7 @@
"Pqp": 25
},
"enca": {
- "audioSrc": "hdmi",
+ "audioSrc": 0,
"gain": 0,
"codec": "aac",
"samplerate": 48000,
@@ -143,15 +49,19 @@
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9001,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -167,21 +77,26 @@
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_main0"
- }
+ },
+ "suffix": "stream0"
},
"stream2": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9101,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -197,7 +112,8 @@
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_sub0"
- }
+ },
+ "suffix": "sub0"
},
"hls": {
"hls_time": 5,
@@ -218,52 +134,18 @@
"mpegts_pmt_start_pid": 4096,
"mpegts_start_pid": 100
},
- "overlay": [
- {
- "type": "text",
- "enable": false,
- "font": "/link/res/font.ttf",
- "content": "Overlay Text",
- "x": 0.1,
- "y": 0.136,
- "scale": 2.2,
- "color": "#669900",
- "alpha": 1,
- "move": -1,
- "w": 0.515
- },
- {
- "type": "pic",
- "enable": false,
- "content": "/link/res/logo.png",
- "x": 0.1,
- "y": 0.1,
- "scale": 1,
- "alpha": 1
- },
- {
- "type": "mask",
- "enable": false,
- "content": "16",
- "x": 0.4,
- "y": 0.4,
- "w": 0.2,
- "h": 0.2
- },
- {
- "type": "time",
- "x": "0.581",
- "y": "0.077",
- "h": 0,
- "w": 0,
- "scale": "3.02",
- "content": "yyyy-MM-dd hh:mm:ss",
- "enable": false,
- "color": "#ffffff",
- "alpha": 1,
- "font": "/link/res/font.ttf"
+ "interface": "HDMI",
+ "cap": {
+ "deinterlace": false,
+ "rotate": 0,
+ "ntsc": false,
+ "crop": {
+ "L": 0,
+ "T": 0,
+ "R": 0,
+ "B": 0
}
- ]
+ }
},
{
"id": 1,
@@ -271,102 +153,12 @@
"type": "usb",
"enable": false,
"enable2": false,
- "alsa": "hw:0,0",
- "lnk": "1-1",
- "channels":-1,
- "alarm": {
- "enable": false,
- "thresh": 800,
- "cache": 20
- },
"encv": {
- "roi": [
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- }
- ],
"width": 1920,
"height": 1080,
"framerate": 30,
"bitrate": 4000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 2,
"codec": "close",
@@ -382,7 +174,7 @@
"height": 360,
"framerate": 30,
"bitrate": 1000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 1,
"codec": "close",
@@ -394,26 +186,30 @@
"Pqp": 25
},
"enca": {
- "audioSrc": "hdmi",
+ "audioSrc": 1,
"gain": 0,
"codec": "close",
"samplerate": 48000,
- "bitrate": 32,
+ "bitrate": 128,
"channels": 2
},
"stream": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9002,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -422,28 +218,33 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.2.1",
- "port": 3005
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_main1"
- }
+ },
+ "suffix": "stream1"
},
"stream2": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9102,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -452,14 +253,15 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.3.1",
- "port": 3005
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_sub1"
- }
+ },
+ "suffix": "sub1"
},
"hls": {
"hls_time": 5,
@@ -478,9 +280,11 @@
"mpegts_original_network_id": 1,
"mpegts_transport_stream_id": 1,
"mpegts_pmt_start_pid": 4096,
- "mpegts_start_pid": 110
+ "mpegts_start_pid": 100
},
- "overlay": []
+ "alsa": "hw:0,0",
+ "lnk": "1-1",
+ "channels": -1
},
{
"id": 2,
@@ -488,103 +292,12 @@
"type": "net",
"enable": false,
"enable2": false,
- "net": {
- "bufferMode": 0,
- "protocol": "tcp",
- "framerate": -1,
- "path": "rtsp://admin:admin@192.168.1.23/cam/realmonitor?channel=1&subtype=0",
- "decodeV": false,
- "decodeA": false,
- "minDelay": 500
- },
"encv": {
- "roi": [
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- }
- ],
"width": 1920,
"height": 1080,
"framerate": 30,
"bitrate": 4000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 2,
"codec": "close",
@@ -600,7 +313,7 @@
"height": 360,
"framerate": 30,
"bitrate": 1000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 1,
"codec": "close",
@@ -612,7 +325,7 @@
"Pqp": 25
},
"enca": {
- "audioSrc": "hdmi",
+ "audioSrc": 2,
"gain": 0,
"codec": "close",
"samplerate": 48000,
@@ -623,15 +336,19 @@
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9003,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -640,28 +357,33 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.2.1",
- "port": 3001
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_main2"
- }
+ },
+ "suffix": "stream2"
},
"stream2": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9103,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -670,14 +392,15 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.3.1",
- "port": 3001
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_sub2"
- }
+ },
+ "suffix": "sub2"
},
"hls": {
"hls_time": 5,
@@ -696,9 +419,17 @@
"mpegts_original_network_id": 1,
"mpegts_transport_stream_id": 1,
"mpegts_pmt_start_pid": 4096,
- "mpegts_start_pid": 112
+ "mpegts_start_pid": 100
},
- "overlay": []
+ "net": {
+ "bufferMode": 1,
+ "protocol": "tcp",
+ "framerate": -1,
+ "path": "rtsp://admin:admin@192.168.1.64",
+ "decodeV": false,
+ "decode": false,
+ "minDelay": 500
+ }
},
{
"id": 3,
@@ -706,103 +437,12 @@
"type": "net",
"enable": false,
"enable2": false,
- "net": {
- "bufferMode": 0,
- "protocol": "tcp",
- "framerate": -1,
- "path": "rtsp://admin:admin@192.168.1.23/cam/realmonitor?channel=1&subtype=0",
- "decodeV": false,
- "decodeA": false,
- "minDelay": 500
- },
"encv": {
- "roi": [
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- }
- ],
"width": 1920,
"height": 1080,
"framerate": 30,
"bitrate": 4000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 2,
"codec": "close",
@@ -818,7 +458,7 @@
"height": 360,
"framerate": 30,
"bitrate": 1000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 1,
"codec": "close",
@@ -830,7 +470,7 @@
"Pqp": 25
},
"enca": {
- "audioSrc": "hdmi",
+ "audioSrc": 3,
"gain": 0,
"codec": "close",
"samplerate": 48000,
@@ -841,15 +481,19 @@
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9004,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -858,28 +502,33 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.2.1",
- "port": 3002
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_main3"
- }
+ },
+ "suffix": "stream3"
},
"stream2": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9104,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -888,14 +537,15 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.3.1",
- "port": 3002
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_sub3"
- }
+ },
+ "suffix": "sub3"
},
"hls": {
"hls_time": 5,
@@ -914,9 +564,17 @@
"mpegts_original_network_id": 1,
"mpegts_transport_stream_id": 1,
"mpegts_pmt_start_pid": 4096,
- "mpegts_start_pid": 114
+ "mpegts_start_pid": 100
},
- "overlay": []
+ "net": {
+ "bufferMode": 1,
+ "protocol": "tcp",
+ "framerate": -1,
+ "path": "rtsp://admin:admin@192.168.1.64",
+ "decodeV": false,
+ "decode": false,
+ "minDelay": 500
+ }
},
{
"id": 4,
@@ -924,22 +582,23 @@
"type": "ndi",
"enable": false,
"enable2": false,
- "ndirecv": {
- "name": ""
- },
"stream": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9005,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -955,21 +614,26 @@
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_main4"
- }
+ },
+ "suffix": "stream4"
},
"stream2": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9105,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -985,7 +649,8 @@
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_sub4"
- }
+ },
+ "suffix": "sub4"
},
"hls": {
"hls_time": 5,
@@ -1006,7 +671,9 @@
"mpegts_pmt_start_pid": 4096,
"mpegts_start_pid": 100
},
- "overlay": []
+ "ndirecv": {
+ "name": ""
+ }
},
{
"id": 5,
@@ -1014,20 +681,63 @@
"type": "file",
"enable": false,
"enable2": false,
- "file": [],
+ "encv": {
+ "width": 1920,
+ "height": 1080,
+ "framerate": 30,
+ "bitrate": 4000,
+ "rcmode": "cbr",
+ "lowLatency": false,
+ "gop": 2,
+ "codec": "close",
+ "profile": "base",
+ "gopmode": 0,
+ "minqp": 22,
+ "maxqp": 36,
+ "Iqp": 25,
+ "Pqp": 25
+ },
+ "encv2": {
+ "width": 640,
+ "height": 360,
+ "framerate": 30,
+ "bitrate": 1000,
+ "rcmode": "cbr",
+ "lowLatency": false,
+ "gop": 1,
+ "codec": "close",
+ "profile": "base",
+ "gopmode": 0,
+ "minqp": 22,
+ "maxqp": 36,
+ "Iqp": 25,
+ "Pqp": 25
+ },
+ "enca": {
+ "audioSrc": 5,
+ "gain": 0,
+ "codec": "close",
+ "samplerate": 48000,
+ "bitrate": 128,
+ "channels": 2
+ },
"stream": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9006,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -1036,28 +746,33 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.2.1",
- "port": 3003
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_main5"
- }
+ },
+ "suffix": "stream5"
},
"stream2": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9106,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -1066,14 +781,15 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.3.1",
- "port": 3003
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_sub5"
- }
+ },
+ "suffix": "sub5"
},
"hls": {
"hls_time": 5,
@@ -1092,108 +808,28 @@
"mpegts_original_network_id": 1,
"mpegts_transport_stream_id": 1,
"mpegts_pmt_start_pid": 4096,
- "mpegts_start_pid": 114
+ "mpegts_start_pid": 100
},
- "overlay": []
+ "decodeV": false,
+ "decodeA": false,
+ "file": []
},
{
"id": 6,
- "name": "Mix",
- "type": "mix",
+ "name": "ColorKey",
+ "type": "colorKey",
"enable": false,
"enable2": false,
"encv": {
- "roi": [
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- }
- ],
"width": 1920,
"height": 1080,
"framerate": 30,
"bitrate": 4000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 2,
- "codec": "h264",
- "profile": "high",
+ "codec": "close",
+ "profile": "base",
"gopmode": 0,
"minqp": 22,
"maxqp": 36,
@@ -1205,11 +841,11 @@
"height": 360,
"framerate": 30,
"bitrate": 1000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 1,
- "codec": "h264",
- "profile": "high",
+ "codec": "close",
+ "profile": "base",
"gopmode": 0,
"minqp": 22,
"maxqp": 36,
@@ -1217,46 +853,30 @@
"Pqp": 25
},
"enca": {
- "codec": "aac",
+ "audioSrc": 6,
+ "gain": 0,
+ "codec": "close",
"samplerate": 48000,
"bitrate": 128,
- "channels": 2,
- "audioSrc": "hdmi",
- "gain": 0
- },
- "output": {
- "enable": true,
- "src": 0,
- "ui": false,
- "lowLatency": false,
- "output": "1080P60",
- "type": "hdmi",
- "rotate": 0,
- "vid": 0
- },
- "output2": {
- "enable": false,
- "src": 0,
- "ui": false,
- "lowLatency": false,
- "output": "1080P60",
- "type": "vga",
- "rotate": 0,
- "vid": 1
+ "channels": 2
},
"stream": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9007,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -1265,28 +885,33 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.2.1",
- "port": 3004
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_main6"
- }
+ },
+ "suffix": "stream6"
},
"stream2": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9107,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -1295,14 +920,15 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.3.1",
- "port": 3004
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_sub6"
- }
+ },
+ "suffix": "sub6"
},
"hls": {
"hls_time": 5,
@@ -1321,17 +947,214 @@
"mpegts_original_network_id": 1,
"mpegts_transport_stream_id": 1,
"mpegts_pmt_start_pid": 4096,
- "mpegts_start_pid": 134
+ "mpegts_start_pid": 100
+ },
+ "colorKey": {
+ "point": [
+ {
+ "x": 0.2,
+ "y": 0.2
+ },
+ {
+ "x": 0.8,
+ "y": 0.2
+ },
+ {
+ "x": 0.2,
+ "y": 0.8
+ },
+ {
+ "x": 0.8,
+ "y": 0.8
+ }
+ ],
+ "autoUpdate": false,
+ "tolerance": 20,
+ "srcA": 0,
+ "srcB": {
+ "type": "img",
+ "path": "/link/res/background.jpg",
+ "id": 2
+ }
+ }
+ },
+ {
+ "id": 7,
+ "name": "Mix",
+ "type": "mix",
+ "enable": false,
+ "enable2": false,
+ "encv": {
+ "width": 1920,
+ "height": 1080,
+ "framerate": 30,
+ "bitrate": 4000,
+ "rcmode": "cbr",
+ "lowLatency": false,
+ "gop": 2,
+ "codec": "h264",
+ "profile": "high",
+ "gopmode": 0,
+ "minqp": 22,
+ "maxqp": 36,
+ "Iqp": 25,
+ "Pqp": 25
+ },
+ "encv2": {
+ "width": 640,
+ "height": 360,
+ "framerate": 30,
+ "bitrate": 1000,
+ "rcmode": "cbr",
+ "lowLatency": false,
+ "gop": 1,
+ "codec": "h264",
+ "profile": "high",
+ "gopmode": 0,
+ "minqp": 22,
+ "maxqp": 36,
+ "Iqp": 25,
+ "Pqp": 25
+ },
+ "enca": {
+ "audioSrc": 7,
+ "gain": 0,
+ "codec": "aac",
+ "samplerate": 48000,
+ "bitrate": 128,
+ "channels": 2
+ },
+ "stream": {
+ "http": false,
+ "hls": false,
+ "rtmp": false,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
+ "srt": {
+ "enable": false,
+ "mode": "listener",
+ "ip": "127.0.0.1",
+ "port": 9008,
+ "latency": 50,
+ "passwd": ""
+ },
+ "udp": {
+ "rtp": false,
+ "ttl": 5,
+ "flowCtrl": true,
+ "bandwidth": 100,
+ "enable": false,
+ "ip": "233.233.2.1",
+ "port": 3000
+ },
+ "push": {
+ "format": "auto",
+ "enable": false,
+ "hevc_id": 12,
+ "path": "rtmp://127.0.0.1/live/test_main7"
+ },
+ "suffix": "stream7"
+ },
+ "stream2": {
+ "http": false,
+ "hls": false,
+ "rtmp": false,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
+ "srt": {
+ "enable": false,
+ "mode": "listener",
+ "ip": "127.0.0.1",
+ "port": 9108,
+ "latency": 50,
+ "passwd": ""
+ },
+ "udp": {
+ "rtp": false,
+ "ttl": 5,
+ "flowCtrl": true,
+ "bandwidth": 100,
+ "enable": false,
+ "ip": "233.233.3.1",
+ "port": 3000
+ },
+ "push": {
+ "format": "auto",
+ "enable": false,
+ "hevc_id": 12,
+ "path": "rtmp://127.0.0.1/live/test_sub7"
+ },
+ "suffix": "sub7"
+ },
+ "hls": {
+ "hls_time": 5,
+ "hls_list_size": 5,
+ "hls_base_url": "/hls/",
+ "hls_filename": "-%06d.ts"
+ },
+ "ndi": {
+ "name": "stream7",
+ "group": "",
+ "enable": false
+ },
+ "ts": {
+ "tsSize": 1316,
+ "mpegts_service_id": 1,
+ "mpegts_original_network_id": 1,
+ "mpegts_transport_stream_id": 1,
+ "mpegts_pmt_start_pid": 4096,
+ "mpegts_start_pid": 100
+ },
+ "output": {
+ "enable": true,
+ "vid": 0,
+ "ui": false,
+ "lowLatency": false,
+ "output": "1080P60",
+ "type": "hdmi",
+ "rotate": 0,
+ "src": 0,
+ "csc": {
+ "matrix": "identity",
+ "contrast": "50",
+ "hue": "50",
+ "luma": "50",
+ "saturation": "50"
+ }
+ },
+ "output2": {
+ "enable": false,
+ "vid": 1,
+ "ui": false,
+ "lowLatency": false,
+ "output": "1080P60",
+ "type": "vga",
+ "rotate": 0,
+ "src": 7,
+ "csc": {
+ "matrix": "identity",
+ "contrast": "50",
+ "hue": "50",
+ "luma": "50",
+ "saturation": "50"
+ }
},
- "overlay": [],
"srcV": [
- "0",
- "-1",
- "-1",
- "-1"
+ 0,
+ 1,
+ 2,
+ 3
],
"srcA": [
- "0"
+ 0
],
"layout": [
{
@@ -1368,4 +1191,4 @@
}
]
}
-]
+]
\ No newline at end of file
diff --git a/rootfs/link/config/default/config.json b/rootfs/link/config/default/config.json
index c4332b6..c84331a 100644
--- a/rootfs/link/config/default/config.json
+++ b/rootfs/link/config/default/config.json
@@ -4,107 +4,13 @@
"name": "HDMI",
"type": "vi",
"enable": true,
- "enable2": true,
- "interface": "HDMI",
- "cap": {
- "deinterlace": false,
- "rotate": 0,
- "crop": {
- "L": 0,
- "R": 0,
- "T": 0,
- "B": 0
- },
- "ntsc": false
- },
+ "enable2": false,
"encv": {
- "roi": [
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- }
- ],
"width": 1920,
"height": 1080,
"framerate": 30,
"bitrate": 4000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 2,
"codec": "h264",
@@ -120,7 +26,7 @@
"height": 360,
"framerate": 30,
"bitrate": 1000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 1,
"codec": "h264",
@@ -132,7 +38,7 @@
"Pqp": 25
},
"enca": {
- "audioSrc": "hdmi",
+ "audioSrc": 0,
"gain": 0,
"codec": "aac",
"samplerate": 48000,
@@ -143,15 +49,19 @@
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9001,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -167,21 +77,26 @@
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_main0"
- }
+ },
+ "suffix": "stream0"
},
"stream2": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9101,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -197,7 +112,8 @@
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_sub0"
- }
+ },
+ "suffix": "sub0"
},
"hls": {
"hls_time": 5,
@@ -218,52 +134,18 @@
"mpegts_pmt_start_pid": 4096,
"mpegts_start_pid": 100
},
- "overlay": [
- {
- "type": "text",
- "enable": false,
- "font": "/link/res/font.ttf",
- "content": "Overlay Text",
- "x": 0.1,
- "y": 0.136,
- "scale": 2.2,
- "color": "#669900",
- "alpha": 1,
- "move": -1,
- "w": 0.515
- },
- {
- "type": "pic",
- "enable": false,
- "content": "/link/res/logo.png",
- "x": 0.1,
- "y": 0.1,
- "scale": 1,
- "alpha": 1
- },
- {
- "type": "mask",
- "enable": false,
- "content": "16",
- "x": 0.4,
- "y": 0.4,
- "w": 0.2,
- "h": 0.2
- },
- {
- "type": "time",
- "x": "0.581",
- "y": "0.077",
- "h": 0,
- "w": 0,
- "scale": "3.02",
- "content": "yyyy-MM-dd hh:mm:ss",
- "enable": false,
- "color": "#ffffff",
- "alpha": 1,
- "font": "/link/res/font.ttf"
+ "interface": "HDMI",
+ "cap": {
+ "deinterlace": false,
+ "rotate": 0,
+ "ntsc": false,
+ "crop": {
+ "L": 0,
+ "T": 0,
+ "R": 0,
+ "B": 0
}
- ]
+ }
},
{
"id": 1,
@@ -271,102 +153,12 @@
"type": "usb",
"enable": false,
"enable2": false,
- "alsa": "hw:0,0",
- "lnk": "1-1",
- "channels":-1,
- "alarm": {
- "enable": false,
- "thresh": 800,
- "cache": 20
- },
"encv": {
- "roi": [
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- }
- ],
"width": 1920,
"height": 1080,
"framerate": 30,
"bitrate": 4000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 2,
"codec": "close",
@@ -382,7 +174,7 @@
"height": 360,
"framerate": 30,
"bitrate": 1000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 1,
"codec": "close",
@@ -394,26 +186,30 @@
"Pqp": 25
},
"enca": {
- "audioSrc": "hdmi",
+ "audioSrc": 1,
"gain": 0,
"codec": "close",
"samplerate": 48000,
- "bitrate": 32,
+ "bitrate": 128,
"channels": 2
},
"stream": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9002,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -422,28 +218,33 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.2.1",
- "port": 3005
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_main1"
- }
+ },
+ "suffix": "stream1"
},
"stream2": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9102,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -452,14 +253,15 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.3.1",
- "port": 3005
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_sub1"
- }
+ },
+ "suffix": "sub1"
},
"hls": {
"hls_time": 5,
@@ -478,9 +280,11 @@
"mpegts_original_network_id": 1,
"mpegts_transport_stream_id": 1,
"mpegts_pmt_start_pid": 4096,
- "mpegts_start_pid": 110
+ "mpegts_start_pid": 100
},
- "overlay": []
+ "alsa": "hw:0,0",
+ "lnk": "1-1",
+ "channels": -1
},
{
"id": 2,
@@ -488,103 +292,12 @@
"type": "net",
"enable": false,
"enable2": false,
- "net": {
- "bufferMode": 0,
- "protocol": "tcp",
- "framerate": -1,
- "path": "rtsp://admin:admin@192.168.1.23/cam/realmonitor?channel=1&subtype=0",
- "decodeV": false,
- "decodeA": false,
- "minDelay": 500
- },
"encv": {
- "roi": [
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- }
- ],
"width": 1920,
"height": 1080,
"framerate": 30,
"bitrate": 4000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 2,
"codec": "close",
@@ -600,7 +313,7 @@
"height": 360,
"framerate": 30,
"bitrate": 1000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 1,
"codec": "close",
@@ -612,7 +325,7 @@
"Pqp": 25
},
"enca": {
- "audioSrc": "hdmi",
+ "audioSrc": 2,
"gain": 0,
"codec": "close",
"samplerate": 48000,
@@ -623,15 +336,19 @@
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9003,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -640,28 +357,33 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.2.1",
- "port": 3001
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_main2"
- }
+ },
+ "suffix": "stream2"
},
"stream2": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9103,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -670,14 +392,15 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.3.1",
- "port": 3001
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_sub2"
- }
+ },
+ "suffix": "sub2"
},
"hls": {
"hls_time": 5,
@@ -696,9 +419,17 @@
"mpegts_original_network_id": 1,
"mpegts_transport_stream_id": 1,
"mpegts_pmt_start_pid": 4096,
- "mpegts_start_pid": 112
+ "mpegts_start_pid": 100
},
- "overlay": []
+ "net": {
+ "bufferMode": 1,
+ "protocol": "tcp",
+ "framerate": -1,
+ "path": "rtsp://admin:admin@192.168.1.64",
+ "decodeV": false,
+ "decode": false,
+ "minDelay": 500
+ }
},
{
"id": 3,
@@ -706,103 +437,12 @@
"type": "net",
"enable": false,
"enable2": false,
- "net": {
- "bufferMode": 0,
- "protocol": "tcp",
- "framerate": -1,
- "path": "rtsp://admin:admin@192.168.1.23/cam/realmonitor?channel=1&subtype=0",
- "decodeV": false,
- "decodeA": false,
- "minDelay": 500
- },
"encv": {
- "roi": [
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- }
- ],
"width": 1920,
"height": 1080,
"framerate": 30,
"bitrate": 4000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 2,
"codec": "close",
@@ -818,7 +458,7 @@
"height": 360,
"framerate": 30,
"bitrate": 1000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 1,
"codec": "close",
@@ -830,7 +470,7 @@
"Pqp": 25
},
"enca": {
- "audioSrc": "hdmi",
+ "audioSrc": 3,
"gain": 0,
"codec": "close",
"samplerate": 48000,
@@ -841,15 +481,19 @@
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9004,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -858,28 +502,33 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.2.1",
- "port": 3002
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_main3"
- }
+ },
+ "suffix": "stream3"
},
"stream2": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9104,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -888,14 +537,15 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.3.1",
- "port": 3002
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_sub3"
- }
+ },
+ "suffix": "sub3"
},
"hls": {
"hls_time": 5,
@@ -914,9 +564,17 @@
"mpegts_original_network_id": 1,
"mpegts_transport_stream_id": 1,
"mpegts_pmt_start_pid": 4096,
- "mpegts_start_pid": 114
+ "mpegts_start_pid": 100
},
- "overlay": []
+ "net": {
+ "bufferMode": 1,
+ "protocol": "tcp",
+ "framerate": -1,
+ "path": "rtsp://admin:admin@192.168.1.64",
+ "decodeV": false,
+ "decode": false,
+ "minDelay": 500
+ }
},
{
"id": 4,
@@ -924,22 +582,23 @@
"type": "ndi",
"enable": false,
"enable2": false,
- "ndirecv": {
- "name": ""
- },
"stream": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9005,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -955,21 +614,26 @@
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_main4"
- }
+ },
+ "suffix": "stream4"
},
"stream2": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9105,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -985,7 +649,8 @@
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_sub4"
- }
+ },
+ "suffix": "sub4"
},
"hls": {
"hls_time": 5,
@@ -1006,7 +671,9 @@
"mpegts_pmt_start_pid": 4096,
"mpegts_start_pid": 100
},
- "overlay": []
+ "ndirecv": {
+ "name": ""
+ }
},
{
"id": 5,
@@ -1014,20 +681,63 @@
"type": "file",
"enable": false,
"enable2": false,
- "file": [],
+ "encv": {
+ "width": 1920,
+ "height": 1080,
+ "framerate": 30,
+ "bitrate": 4000,
+ "rcmode": "cbr",
+ "lowLatency": false,
+ "gop": 2,
+ "codec": "close",
+ "profile": "base",
+ "gopmode": 0,
+ "minqp": 22,
+ "maxqp": 36,
+ "Iqp": 25,
+ "Pqp": 25
+ },
+ "encv2": {
+ "width": 640,
+ "height": 360,
+ "framerate": 30,
+ "bitrate": 1000,
+ "rcmode": "cbr",
+ "lowLatency": false,
+ "gop": 1,
+ "codec": "close",
+ "profile": "base",
+ "gopmode": 0,
+ "minqp": 22,
+ "maxqp": 36,
+ "Iqp": 25,
+ "Pqp": 25
+ },
+ "enca": {
+ "audioSrc": 5,
+ "gain": 0,
+ "codec": "close",
+ "samplerate": 48000,
+ "bitrate": 128,
+ "channels": 2
+ },
"stream": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9006,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -1036,28 +746,33 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.2.1",
- "port": 3003
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_main5"
- }
+ },
+ "suffix": "stream5"
},
"stream2": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9106,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -1066,14 +781,15 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.3.1",
- "port": 3003
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_sub5"
- }
+ },
+ "suffix": "sub5"
},
"hls": {
"hls_time": 5,
@@ -1092,108 +808,28 @@
"mpegts_original_network_id": 1,
"mpegts_transport_stream_id": 1,
"mpegts_pmt_start_pid": 4096,
- "mpegts_start_pid": 114
+ "mpegts_start_pid": 100
},
- "overlay": []
+ "decodeV": false,
+ "decodeA": false,
+ "file": []
},
{
"id": 6,
- "name": "Mix",
- "type": "mix",
+ "name": "ColorKey",
+ "type": "colorKey",
"enable": false,
"enable2": false,
"encv": {
- "roi": [
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- }
- ],
"width": 1920,
"height": 1080,
"framerate": 30,
"bitrate": 4000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 2,
- "codec": "h264",
- "profile": "high",
+ "codec": "close",
+ "profile": "base",
"gopmode": 0,
"minqp": 22,
"maxqp": 36,
@@ -1205,11 +841,11 @@
"height": 360,
"framerate": 30,
"bitrate": 1000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 1,
- "codec": "h264",
- "profile": "high",
+ "codec": "close",
+ "profile": "base",
"gopmode": 0,
"minqp": 22,
"maxqp": 36,
@@ -1217,46 +853,30 @@
"Pqp": 25
},
"enca": {
- "codec": "aac",
+ "audioSrc": 6,
+ "gain": 0,
+ "codec": "close",
"samplerate": 48000,
"bitrate": 128,
- "channels": 2,
- "audioSrc": "hdmi",
- "gain": 0
- },
- "output": {
- "enable": true,
- "src": 0,
- "ui": false,
- "lowLatency": false,
- "output": "1080P60",
- "type": "hdmi",
- "rotate": 0,
- "vid": 0
- },
- "output2": {
- "enable": false,
- "src": 0,
- "ui": false,
- "lowLatency": false,
- "output": "1080P60",
- "type": "vga",
- "rotate": 0,
- "vid": 1
+ "channels": 2
},
"stream": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9007,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -1265,28 +885,33 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.2.1",
- "port": 3004
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_main6"
- }
+ },
+ "suffix": "stream6"
},
"stream2": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9107,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -1295,14 +920,15 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.3.1",
- "port": 3004
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_sub6"
- }
+ },
+ "suffix": "sub6"
},
"hls": {
"hls_time": 5,
@@ -1321,17 +947,214 @@
"mpegts_original_network_id": 1,
"mpegts_transport_stream_id": 1,
"mpegts_pmt_start_pid": 4096,
- "mpegts_start_pid": 134
+ "mpegts_start_pid": 100
+ },
+ "colorKey": {
+ "point": [
+ {
+ "x": 0.2,
+ "y": 0.2
+ },
+ {
+ "x": 0.8,
+ "y": 0.2
+ },
+ {
+ "x": 0.2,
+ "y": 0.8
+ },
+ {
+ "x": 0.8,
+ "y": 0.8
+ }
+ ],
+ "autoUpdate": false,
+ "tolerance": 20,
+ "srcA": 0,
+ "srcB": {
+ "type": "img",
+ "path": "/link/res/background.jpg",
+ "id": 2
+ }
+ }
+ },
+ {
+ "id": 7,
+ "name": "Mix",
+ "type": "mix",
+ "enable": false,
+ "enable2": false,
+ "encv": {
+ "width": 1920,
+ "height": 1080,
+ "framerate": 30,
+ "bitrate": 4000,
+ "rcmode": "cbr",
+ "lowLatency": false,
+ "gop": 2,
+ "codec": "h264",
+ "profile": "high",
+ "gopmode": 0,
+ "minqp": 22,
+ "maxqp": 36,
+ "Iqp": 25,
+ "Pqp": 25
+ },
+ "encv2": {
+ "width": 640,
+ "height": 360,
+ "framerate": 30,
+ "bitrate": 1000,
+ "rcmode": "cbr",
+ "lowLatency": false,
+ "gop": 1,
+ "codec": "h264",
+ "profile": "high",
+ "gopmode": 0,
+ "minqp": 22,
+ "maxqp": 36,
+ "Iqp": 25,
+ "Pqp": 25
+ },
+ "enca": {
+ "audioSrc": 7,
+ "gain": 0,
+ "codec": "aac",
+ "samplerate": 48000,
+ "bitrate": 128,
+ "channels": 2
+ },
+ "stream": {
+ "http": false,
+ "hls": false,
+ "rtmp": false,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
+ "srt": {
+ "enable": false,
+ "mode": "listener",
+ "ip": "127.0.0.1",
+ "port": 9008,
+ "latency": 50,
+ "passwd": ""
+ },
+ "udp": {
+ "rtp": false,
+ "ttl": 5,
+ "flowCtrl": true,
+ "bandwidth": 100,
+ "enable": false,
+ "ip": "233.233.2.1",
+ "port": 3000
+ },
+ "push": {
+ "format": "auto",
+ "enable": false,
+ "hevc_id": 12,
+ "path": "rtmp://127.0.0.1/live/test_main7"
+ },
+ "suffix": "stream7"
+ },
+ "stream2": {
+ "http": false,
+ "hls": false,
+ "rtmp": false,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
+ "srt": {
+ "enable": false,
+ "mode": "listener",
+ "ip": "127.0.0.1",
+ "port": 9108,
+ "latency": 50,
+ "passwd": ""
+ },
+ "udp": {
+ "rtp": false,
+ "ttl": 5,
+ "flowCtrl": true,
+ "bandwidth": 100,
+ "enable": false,
+ "ip": "233.233.3.1",
+ "port": 3000
+ },
+ "push": {
+ "format": "auto",
+ "enable": false,
+ "hevc_id": 12,
+ "path": "rtmp://127.0.0.1/live/test_sub7"
+ },
+ "suffix": "sub7"
+ },
+ "hls": {
+ "hls_time": 5,
+ "hls_list_size": 5,
+ "hls_base_url": "/hls/",
+ "hls_filename": "-%06d.ts"
+ },
+ "ndi": {
+ "name": "stream7",
+ "group": "",
+ "enable": false
+ },
+ "ts": {
+ "tsSize": 1316,
+ "mpegts_service_id": 1,
+ "mpegts_original_network_id": 1,
+ "mpegts_transport_stream_id": 1,
+ "mpegts_pmt_start_pid": 4096,
+ "mpegts_start_pid": 100
+ },
+ "output": {
+ "enable": true,
+ "vid": 0,
+ "ui": false,
+ "lowLatency": false,
+ "output": "1080P60",
+ "type": "hdmi",
+ "rotate": 0,
+ "src": 0,
+ "csc": {
+ "matrix": "identity",
+ "contrast": "50",
+ "hue": "50",
+ "luma": "50",
+ "saturation": "50"
+ }
+ },
+ "output2": {
+ "enable": false,
+ "vid": 1,
+ "ui": false,
+ "lowLatency": false,
+ "output": "1080P60",
+ "type": "vga",
+ "rotate": 0,
+ "src": 7,
+ "csc": {
+ "matrix": "identity",
+ "contrast": "50",
+ "hue": "50",
+ "luma": "50",
+ "saturation": "50"
+ }
},
- "overlay": [],
"srcV": [
- "0",
- "-1",
- "-1",
- "-1"
+ 0,
+ 1,
+ 2,
+ 3
],
"srcA": [
- "0"
+ 0
],
"layout": [
{
@@ -1368,4 +1191,4 @@
}
]
}
-]
+]
\ No newline at end of file
diff --git a/rootfs/link/config/default/defLays.json b/rootfs/link/config/default/defLays.json
new file mode 100644
index 0000000..36e24cb
--- /dev/null
+++ b/rootfs/link/config/default/defLays.json
@@ -0,0 +1,356 @@
+[
+ {
+ "layId": 0,
+ "layName": "9宫格",
+ "layNameEn": "grid 3x3",
+ "enable": false,
+ "layouts": [
+ {
+ "id": -1,
+ "name": "/",
+ "lock": true,
+ "key": 73249,
+ "pos": {
+ "a": 1,
+ "x": 0,
+ "y": 0,
+ "w": 0.3333,
+ "h": 0.3333,
+ "index": 1
+ }
+ },
+ {
+ "id": -2,
+ "name": "/",
+ "lock": true,
+ "key": 53394,
+ "pos": {
+ "a": 1,
+ "x": 0.3333,
+ "y": 0,
+ "w": 0.3333,
+ "h": 0.3333,
+ "index": 2
+ }
+ },
+ {
+ "id": -3,
+ "name": "/",
+ "lock": true,
+ "key": 28676,
+ "pos": {
+ "a": 1,
+ "x": 0.6667,
+ "y": 0,
+ "w": 0.3333,
+ "h": 0.3333,
+ "index": 3
+ }
+ },
+ {
+ "id": -4,
+ "name": "/",
+ "lock": true,
+ "key": 69702,
+ "pos": {
+ "a": 1,
+ "x": 0,
+ "y": 0.3333,
+ "w": 0.3333,
+ "h": 0.3333,
+ "index": 4
+ }
+ },
+ {
+ "id": -5,
+ "name": "/",
+ "lock": true,
+ "key": 9107,
+ "pos": {
+ "a": 1,
+ "x": 0.333,
+ "y": 0.333,
+ "w": 0.3333,
+ "h": 0.3333,
+ "index": 5
+ }
+ },
+ {
+ "id": -6,
+ "name": "/",
+ "lock": true,
+ "key": 79639,
+ "pos": {
+ "a": 1,
+ "x": 0.6667,
+ "y": 0.3333,
+ "w": 0.3333,
+ "h": 0.3333,
+ "index": 6
+ }
+ },
+ {
+ "id": -7,
+ "name": "/",
+ "lock": true,
+ "key": 45145,
+ "pos": {
+ "a": 1,
+ "x": 0,
+ "y": 0.6667,
+ "w": 0.3333,
+ "h": 0.3333,
+ "index": 7
+ }
+ },
+ {
+ "id": -8,
+ "name": "/",
+ "lock": true,
+ "key": 96008,
+ "pos": {
+ "a": 1,
+ "x": 0.3333,
+ "y": 0.6667,
+ "w": 0.3333,
+ "h": 0.3333,
+ "index": 8
+ }
+ },
+ {
+ "id": -9,
+ "name": "/",
+ "lock": true,
+ "key": 81693,
+ "pos": {
+ "a": 1,
+ "x": 0.6667,
+ "y": 0.6667,
+ "w": 0.3333,
+ "h": 0.3333,
+ "index": 9
+ }
+ }
+ ]
+ },
+ {
+ "layId": 1,
+ "layName": "4分屏",
+ "layNameEn": "grid 2x2",
+ "enable": false,
+ "layouts": [
+ {
+ "id": -1,
+ "name": "/",
+ "lock": true,
+ "pos": {
+ "a": 1,
+ "x": "0",
+ "y": "0",
+ "w": "0.5",
+ "h": "0.5",
+ "index": 1
+ },
+ "enable": false,
+ "key": 27788
+ },
+ {
+ "id": -2,
+ "name": "/",
+ "lock": true,
+ "pos": {
+ "a": 1,
+ "x": "0.5",
+ "y": "0",
+ "w": "0.5",
+ "h": "0.5",
+ "index": 2
+ },
+ "enable": false,
+ "key": 35441
+ },
+ {
+ "id": -3,
+ "name": "/",
+ "lock": true,
+ "pos": {
+ "a": 1,
+ "x": "0",
+ "y": "0.5",
+ "w": "0.5",
+ "h": "0.5",
+ "index": 3
+ },
+ "enable": false,
+ "key": 9422
+ },
+ {
+ "id": -4,
+ "name": "/",
+ "lock": true,
+ "pos": {
+ "a": 1,
+ "x": "0.5",
+ "y": "0.5",
+ "w": "0.5",
+ "h": "0.5",
+ "index": 4
+ },
+ "enable": false,
+ "key": 77627
+ }
+ ]
+ },
+ {
+ "layId": 2,
+ "layName": "1+2",
+ "layNameEn": "1+2",
+ "enable": false,
+ "layouts": [
+ {
+ "id": -1,
+ "name": "/",
+ "lock": true,
+ "pos": {
+ "a": 1,
+ "x": "0",
+ "y": "0.1667",
+ "w": "0.6667",
+ "h": "0.6667",
+ "index": 1
+ },
+ "enable": false,
+ "key": 38752
+ },
+ {
+ "id": -2,
+ "name": "/",
+ "lock": true,
+ "pos": {
+ "a": 1,
+ "x": "0.6667",
+ "y": "0.1667",
+ "w": "0.3333",
+ "h": "0.3333",
+ "index": 2
+ },
+ "enable": false,
+ "key": 23016
+ },
+ {
+ "id": -3,
+ "name": "/",
+ "lock": true,
+ "pos": {
+ "a": 1,
+ "x": "0.6667",
+ "y": "0.5",
+ "w": "0.3333",
+ "h": "0.3333",
+ "index": 3
+ },
+ "enable": false,
+ "key": 62826
+ }
+ ]
+ },
+ {
+ "layId": 3,
+ "layName": "画中画",
+ "layNameEn": "PinP",
+ "enable": false,
+ "layouts": [
+ {
+ "id": -1,
+ "name": "/",
+ "lock": true,
+ "pos": {
+ "a": 1,
+ "x": "0",
+ "y": "0",
+ "w": "1",
+ "h": "1",
+ "index": 1
+ },
+ "enable": false,
+ "key": 25939
+ },
+ {
+ "id": -2,
+ "name": "/",
+ "lock": true,
+ "pos": {
+ "a": 1,
+ "x": "0.6667",
+ "y": "0.6667",
+ "w": "0.25",
+ "h": "0.25",
+ "index": 2
+ },
+ "enable": false,
+ "key": 70744
+ }
+ ]
+ },
+ {
+ "layId": 4,
+ "layName": "单画面",
+ "layNameEn": "Single",
+ "enable": false,
+ "layouts": [
+ {
+ "id": -1,
+ "name": "/",
+ "lock": true,
+ "pos": {
+ "a": 1,
+ "x": "0",
+ "y": "0",
+ "w": "1",
+ "h": "1",
+ "index": 1
+ },
+ "enable": false,
+ "key": 41656
+ }
+ ]
+ },
+ {
+ "layId": 5,
+ "layName": "上下",
+ "layNameEn": "UpDown",
+ "enable": false,
+ "layouts": [
+ {
+ "id": -1,
+ "name": "/",
+ "lock": true,
+ "pos": {
+ "a": 1,
+ "x": "0",
+ "y": "0",
+ "w": "1",
+ "h": "0.5",
+ "index": 1
+ },
+ "enable": false,
+ "key": 33095
+ },
+ {
+ "id": -2,
+ "name": "/",
+ "lock": true,
+ "pos": {
+ "a": 1,
+ "x": "0",
+ "y": "0.5",
+ "w": "1",
+ "h": "0.5",
+ "index": 2
+ },
+ "enable": false,
+ "key": 81595
+ }
+ ]
+ }
+]
\ No newline at end of file
diff --git a/rootfs/link/config/default/group.json b/rootfs/link/config/default/group.json
index 056176f..911beaa 100644
--- a/rootfs/link/config/default/group.json
+++ b/rootfs/link/config/default/group.json
@@ -1,5 +1,5 @@
{
- "type":"ENC1H",
+ "type":"ENC1V2",
"groupId":0,
"order":[]
}
diff --git a/rootfs/link/config/default/intercom.json b/rootfs/link/config/default/intercom.json
new file mode 100644
index 0000000..53d4413
--- /dev/null
+++ b/rootfs/link/config/default/intercom.json
@@ -0,0 +1,27 @@
+{
+ "intercom": {
+ "buf": 8,
+ "did": 0,
+ "enable": false,
+ "gain": 0,
+ "ip": "127.0.0.1",
+ "name": "Director",
+ "hid": "/dev/headphone",
+ "port": 7000,
+ "tid": -1,
+ "vad": 50
+ },
+ "server": {
+ "enable": false
+ },
+ "tally": {
+ "enable": false,
+ "uart": "/dev/ttyTally"
+ },
+ "vmix": {
+ "enable": false,
+ "ip": "192.168.1.56",
+ "mode": "vmix",
+ "uart": "/dev/ttyAMA1"
+ }
+}
diff --git a/rootfs/link/config/default/misc/colorKey.json b/rootfs/link/config/default/misc/colorKey.json
new file mode 100644
index 0000000..e69a6c4
--- /dev/null
+++ b/rootfs/link/config/default/misc/colorKey.json
@@ -0,0 +1,8 @@
+{
+ "enable":false,
+ "point":[{"x":0,"y":0},{"x":0.1,"y":0.1},{"x":0.3,"y":0.3}],
+ "autoUpdate":false,
+ "tolerance":20,
+ "srcA":0,
+ "srcB":{"type":"img","path":"/link/res/x1.jpg","id":2}
+}
diff --git a/rootfs/link/config/default/misc/preset.json b/rootfs/link/config/default/misc/preset.json
new file mode 100644
index 0000000..5c2ec3f
--- /dev/null
+++ b/rootfs/link/config/default/misc/preset.json
@@ -0,0 +1,42 @@
+[
+ [
+ -72000,
+ 7200,
+ 100
+ ],
+ [
+ -72000,
+ 68040,
+ 100
+ ],
+ [
+ 0,
+ 0,
+ 100
+ ],
+ [
+ 0,
+ 0,
+ 100
+ ],
+ [
+ 0,
+ 0,
+ 100
+ ],
+ [
+ 0,
+ 0,
+ 100
+ ],
+ [
+ 0,
+ 0,
+ 100
+ ],
+ [
+ 0,
+ 0,
+ 100
+ ]
+]
diff --git a/rootfs/link/config/default/misc/timezone/tzselect.json b/rootfs/link/config/default/misc/timezone/tzselect.json
new file mode 100644
index 0000000..82f57c5
--- /dev/null
+++ b/rootfs/link/config/default/misc/timezone/tzselect.json
@@ -0,0 +1 @@
+{"timeArea":"Asia","timeCity":"Beijing"}
diff --git a/rootfs/link/config/default/ntp.json b/rootfs/link/config/default/ntp.json
index 2f5f285..775a8eb 100644
--- a/rootfs/link/config/default/ntp.json
+++ b/rootfs/link/config/default/ntp.json
@@ -1 +1,4 @@
-{"server":"cn.pool.ntp.org","enable":false}
+{
+ "enable":false,
+ "server":"ntp1.aliyun.com"
+}
diff --git a/rootfs/link/config/default/push.json b/rootfs/link/config/default/push.json
index 19dc9e8..9df61d5 100644
--- a/rootfs/link/config/default/push.json
+++ b/rootfs/link/config/default/push.json
@@ -1,7 +1,7 @@
{
"autorun": false,
- "srcA": 6,
- "srcV": 6,
+ "srcA": 0,
+ "srcV": 0,
"srcV_chn":"main",
"url": [
{
diff --git a/rootfs/link/config/default/service.json b/rootfs/link/config/default/service.json
new file mode 100644
index 0000000..3530ccb
--- /dev/null
+++ b/rootfs/link/config/default/service.json
@@ -0,0 +1,12 @@
+{
+ "telnet":true,
+ "ssh":true,
+ "php":true,
+ "nginx":true,
+ "crond":true,
+ "onvif":true,
+ "ndi":true,
+ "sls":true,
+ "frp":false,
+ "trans":false
+}
diff --git a/rootfs/link/config/default/theme.json b/rootfs/link/config/default/theme.json
new file mode 100644
index 0000000..e2d662f
--- /dev/null
+++ b/rootfs/link/config/default/theme.json
@@ -0,0 +1,8 @@
+{
+ "used": "default",
+ "themes": [
+ "default",
+ "salmon",
+ "skyBlue"
+ ]
+}
diff --git a/rootfs/link/config/default/uart.json b/rootfs/link/config/default/uart.json
new file mode 100644
index 0000000..66b1797
--- /dev/null
+++ b/rootfs/link/config/default/uart.json
@@ -0,0 +1,6 @@
+{
+ "baudRate": 115200,
+ "device": "/dev/ttyAMA1",
+ "ip": "192.168.1.1",
+ "port": "3000"
+}
diff --git a/rootfs/link/config/group.json b/rootfs/link/config/group.json
index 056176f..911beaa 100644
--- a/rootfs/link/config/group.json
+++ b/rootfs/link/config/group.json
@@ -1,5 +1,5 @@
{
- "type":"ENC1H",
+ "type":"ENC1V2",
"groupId":0,
"order":[]
}
diff --git a/rootfs/link/config/hardware.json b/rootfs/link/config/hardware.json
new file mode 100644
index 0000000..fdcff27
--- /dev/null
+++ b/rootfs/link/config/hardware.json
@@ -0,0 +1,55 @@
+{
+ "fac":"V2",
+ "model":"ENC1V2",
+ "chip":"HI3520DV400",
+ "interfaceV":[
+ {"name":"HDMI","type":"HDMI"}
+ ],
+ "capability":{
+ "decode":{
+ "channels":2
+ },
+ "encode":{
+ "maxSize":"1080P",
+ "maxPixel":165888000,
+ "BFrame":false
+ },
+ "maxInput":"1080P60",
+ "maxOutput":"1080P60",
+ "extraVo":"VGA",
+ "eth1":false
+ },
+ "function":{
+ "record":true,
+ "carousel":true,
+ "overlay":true,
+ "dhcp":true,
+ "wifi":true,
+ "videoOut":true,
+ "line":true,
+ "mix":true,
+ "portCtrl":true,
+ "ndi":true,
+ "srt":true,
+ "hls":true,
+ "serialport":true,
+ "button":false,
+ "intercom":true,
+ "remote":true,
+ "rtspAuth":true,
+ "netPic":true
+ },
+ "other":{
+ "help":"120.78.2.184"
+ },
+ "gpio":{
+ "type":"himm",
+ "name":"gpio11_5",
+ "mux":"himm 0x120F0104 0x0",
+ "dir":"himm 0x12200400 0x0",
+ "addr":"0x12200080"
+ },
+ "usb":{
+ "lnk":"1-1"
+ }
+}
diff --git a/rootfs/link/config/misc/colorKey.json b/rootfs/link/config/misc/colorKey.json
new file mode 100644
index 0000000..e69a6c4
--- /dev/null
+++ b/rootfs/link/config/misc/colorKey.json
@@ -0,0 +1,8 @@
+{
+ "enable":false,
+ "point":[{"x":0,"y":0},{"x":0.1,"y":0.1},{"x":0.3,"y":0.3}],
+ "autoUpdate":false,
+ "tolerance":20,
+ "srcA":0,
+ "srcB":{"type":"img","path":"/link/res/x1.jpg","id":2}
+}
diff --git a/rootfs/link/config/misc/overlayDemo.json b/rootfs/link/config/misc/overlayDemo.json
new file mode 100644
index 0000000..0493b3a
--- /dev/null
+++ b/rootfs/link/config/misc/overlayDemo.json
@@ -0,0 +1,68 @@
+[
+ {
+ "alpha": "0.9",
+ "color": "#000000",
+ "content": "/link/res/banner.png",
+ "enable": false,
+ "font": "/link/res/font.ttf",
+ "h": 0,
+ "scale": 1,
+ "type": "pic",
+ "w": 0,
+ "x": "0.081",
+ "y": "0.688"
+ },
+ {
+ "alpha": 1,
+ "color": "#000000",
+ "content": "This is an example of scrolling subtitles.",
+ "enable": false,
+ "font": "/link/res/font.ttf",
+ "h": 0,
+ "move": "-2",
+ "scale": "1.79",
+ "type": "text",
+ "w": "0.599",
+ "x": "0.195",
+ "y": "0.749"
+ },
+ {
+ "alpha": "1",
+ "color": "#909090",
+ "content": "hh:mm:ss",
+ "enable": false,
+ "font": "/link/res/font.ttf",
+ "h": 0,
+ "scale": "1.46",
+ "type": "time",
+ "w": 0,
+ "x": "0.827",
+ "y": "0.806"
+ },
+ {
+ "alpha": 1,
+ "color": "#ffffff",
+ "content": "THIS IS A TITLE",
+ "enable": false,
+ "font": "/link/res/font.ttf",
+ "h": 0,
+ "scale": "1",
+ "type": "text",
+ "w": 0,
+ "x": "0.431",
+ "y": "0.706"
+ },
+ {
+ "alpha": 1,
+ "color": "#000000",
+ "content": "/link/res/logo.png",
+ "enable": false,
+ "font": "/link/res/font.ttf",
+ "h": 0,
+ "scale": 1,
+ "type": "pic",
+ "w": 0,
+ "x": "0.049",
+ "y": "0.049"
+ }
+]
diff --git a/rootfs/link/config/ndi.json b/rootfs/link/config/ndi.json
index d6ac4df..130c75f 100644
--- a/rootfs/link/config/ndi.json
+++ b/rootfs/link/config/ndi.json
@@ -34,10 +34,10 @@
},
"rudp": {
"send": {
- "enable": true
+ "enable": false
},
"recv": {
- "enable": true
+ "enable": false
}
},
"vendor": {
diff --git a/rootfs/link/config/ntp.json b/rootfs/link/config/ntp.json
index 2f5f285..775a8eb 100644
--- a/rootfs/link/config/ntp.json
+++ b/rootfs/link/config/ntp.json
@@ -1 +1,4 @@
-{"server":"cn.pool.ntp.org","enable":false}
+{
+ "enable":false,
+ "server":"ntp1.aliyun.com"
+}
diff --git a/rootfs/link/config/push.json b/rootfs/link/config/push.json
index 19dc9e8..9df61d5 100644
--- a/rootfs/link/config/push.json
+++ b/rootfs/link/config/push.json
@@ -1,7 +1,7 @@
{
"autorun": false,
- "srcA": 6,
- "srcV": 6,
+ "srcA": 0,
+ "srcV": 0,
"srcV_chn":"main",
"url": [
{
diff --git a/rootfs/link/config/service.json b/rootfs/link/config/service.json
new file mode 100644
index 0000000..3530ccb
--- /dev/null
+++ b/rootfs/link/config/service.json
@@ -0,0 +1,12 @@
+{
+ "telnet":true,
+ "ssh":true,
+ "php":true,
+ "nginx":true,
+ "crond":true,
+ "onvif":true,
+ "ndi":true,
+ "sls":true,
+ "frp":false,
+ "trans":false
+}
diff --git a/rootfs/link/config/verLogs.json b/rootfs/link/config/verLogs.json
index 5374103..c5e215a 100644
--- a/rootfs/link/config/verLogs.json
+++ b/rootfs/link/config/verLogs.json
@@ -1,4 +1,19 @@
[
+ {
+ "version": "2.1.0 build 20230426",
+ "logs": [
+ "修正了B帧解码的缓冲控制",
+ "减少了MP3编码的cpu占用",
+ "支持insta360Link最新固件",
+ "修正个别情况下网络流叠加特效的异常",
+ "修正解码插图在缩放、旋转等情况下的显示异常",
+ "修正某些机型的网路流旋转异常",
+ "解决srt对于ipv6域名解析的问题",
+ "更换升级包/资源上传组件",
+ "视频轮播支持解码、重编码(即U盘播放、推流)",
+ "实验室新增抠像功能,即绿幕抠图"
+ ]
+ },
{
"version": "2.0.0 build 20230322",
"logs": [
diff --git a/rootfs/link/config/version.json b/rootfs/link/config/version.json
index 22973b6..3241538 100644
--- a/rootfs/link/config/version.json
+++ b/rootfs/link/config/version.json
@@ -1,5 +1,5 @@
{
"app": "2.0.0 build 20220512_869",
"sdk": "2.0.0 build 20220518_20716",
- "sys": "2.0.0 build 20230322"
+ "sys": "2.1.0 build 20230426"
}
diff --git a/rootfs/link/fac/EX2/config/config.json b/rootfs/link/fac/EX2/config/config.json
index c4332b6..c84331a 100644
--- a/rootfs/link/fac/EX2/config/config.json
+++ b/rootfs/link/fac/EX2/config/config.json
@@ -4,107 +4,13 @@
"name": "HDMI",
"type": "vi",
"enable": true,
- "enable2": true,
- "interface": "HDMI",
- "cap": {
- "deinterlace": false,
- "rotate": 0,
- "crop": {
- "L": 0,
- "R": 0,
- "T": 0,
- "B": 0
- },
- "ntsc": false
- },
+ "enable2": false,
"encv": {
- "roi": [
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- }
- ],
"width": 1920,
"height": 1080,
"framerate": 30,
"bitrate": 4000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 2,
"codec": "h264",
@@ -120,7 +26,7 @@
"height": 360,
"framerate": 30,
"bitrate": 1000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 1,
"codec": "h264",
@@ -132,7 +38,7 @@
"Pqp": 25
},
"enca": {
- "audioSrc": "hdmi",
+ "audioSrc": 0,
"gain": 0,
"codec": "aac",
"samplerate": 48000,
@@ -143,15 +49,19 @@
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9001,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -167,21 +77,26 @@
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_main0"
- }
+ },
+ "suffix": "stream0"
},
"stream2": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9101,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -197,7 +112,8 @@
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_sub0"
- }
+ },
+ "suffix": "sub0"
},
"hls": {
"hls_time": 5,
@@ -218,52 +134,18 @@
"mpegts_pmt_start_pid": 4096,
"mpegts_start_pid": 100
},
- "overlay": [
- {
- "type": "text",
- "enable": false,
- "font": "/link/res/font.ttf",
- "content": "Overlay Text",
- "x": 0.1,
- "y": 0.136,
- "scale": 2.2,
- "color": "#669900",
- "alpha": 1,
- "move": -1,
- "w": 0.515
- },
- {
- "type": "pic",
- "enable": false,
- "content": "/link/res/logo.png",
- "x": 0.1,
- "y": 0.1,
- "scale": 1,
- "alpha": 1
- },
- {
- "type": "mask",
- "enable": false,
- "content": "16",
- "x": 0.4,
- "y": 0.4,
- "w": 0.2,
- "h": 0.2
- },
- {
- "type": "time",
- "x": "0.581",
- "y": "0.077",
- "h": 0,
- "w": 0,
- "scale": "3.02",
- "content": "yyyy-MM-dd hh:mm:ss",
- "enable": false,
- "color": "#ffffff",
- "alpha": 1,
- "font": "/link/res/font.ttf"
+ "interface": "HDMI",
+ "cap": {
+ "deinterlace": false,
+ "rotate": 0,
+ "ntsc": false,
+ "crop": {
+ "L": 0,
+ "T": 0,
+ "R": 0,
+ "B": 0
}
- ]
+ }
},
{
"id": 1,
@@ -271,102 +153,12 @@
"type": "usb",
"enable": false,
"enable2": false,
- "alsa": "hw:0,0",
- "lnk": "1-1",
- "channels":-1,
- "alarm": {
- "enable": false,
- "thresh": 800,
- "cache": 20
- },
"encv": {
- "roi": [
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- }
- ],
"width": 1920,
"height": 1080,
"framerate": 30,
"bitrate": 4000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 2,
"codec": "close",
@@ -382,7 +174,7 @@
"height": 360,
"framerate": 30,
"bitrate": 1000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 1,
"codec": "close",
@@ -394,26 +186,30 @@
"Pqp": 25
},
"enca": {
- "audioSrc": "hdmi",
+ "audioSrc": 1,
"gain": 0,
"codec": "close",
"samplerate": 48000,
- "bitrate": 32,
+ "bitrate": 128,
"channels": 2
},
"stream": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9002,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -422,28 +218,33 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.2.1",
- "port": 3005
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_main1"
- }
+ },
+ "suffix": "stream1"
},
"stream2": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9102,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -452,14 +253,15 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.3.1",
- "port": 3005
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_sub1"
- }
+ },
+ "suffix": "sub1"
},
"hls": {
"hls_time": 5,
@@ -478,9 +280,11 @@
"mpegts_original_network_id": 1,
"mpegts_transport_stream_id": 1,
"mpegts_pmt_start_pid": 4096,
- "mpegts_start_pid": 110
+ "mpegts_start_pid": 100
},
- "overlay": []
+ "alsa": "hw:0,0",
+ "lnk": "1-1",
+ "channels": -1
},
{
"id": 2,
@@ -488,103 +292,12 @@
"type": "net",
"enable": false,
"enable2": false,
- "net": {
- "bufferMode": 0,
- "protocol": "tcp",
- "framerate": -1,
- "path": "rtsp://admin:admin@192.168.1.23/cam/realmonitor?channel=1&subtype=0",
- "decodeV": false,
- "decodeA": false,
- "minDelay": 500
- },
"encv": {
- "roi": [
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- }
- ],
"width": 1920,
"height": 1080,
"framerate": 30,
"bitrate": 4000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 2,
"codec": "close",
@@ -600,7 +313,7 @@
"height": 360,
"framerate": 30,
"bitrate": 1000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 1,
"codec": "close",
@@ -612,7 +325,7 @@
"Pqp": 25
},
"enca": {
- "audioSrc": "hdmi",
+ "audioSrc": 2,
"gain": 0,
"codec": "close",
"samplerate": 48000,
@@ -623,15 +336,19 @@
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9003,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -640,28 +357,33 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.2.1",
- "port": 3001
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_main2"
- }
+ },
+ "suffix": "stream2"
},
"stream2": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9103,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -670,14 +392,15 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.3.1",
- "port": 3001
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_sub2"
- }
+ },
+ "suffix": "sub2"
},
"hls": {
"hls_time": 5,
@@ -696,9 +419,17 @@
"mpegts_original_network_id": 1,
"mpegts_transport_stream_id": 1,
"mpegts_pmt_start_pid": 4096,
- "mpegts_start_pid": 112
+ "mpegts_start_pid": 100
},
- "overlay": []
+ "net": {
+ "bufferMode": 1,
+ "protocol": "tcp",
+ "framerate": -1,
+ "path": "rtsp://admin:admin@192.168.1.64",
+ "decodeV": false,
+ "decode": false,
+ "minDelay": 500
+ }
},
{
"id": 3,
@@ -706,103 +437,12 @@
"type": "net",
"enable": false,
"enable2": false,
- "net": {
- "bufferMode": 0,
- "protocol": "tcp",
- "framerate": -1,
- "path": "rtsp://admin:admin@192.168.1.23/cam/realmonitor?channel=1&subtype=0",
- "decodeV": false,
- "decodeA": false,
- "minDelay": 500
- },
"encv": {
- "roi": [
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- }
- ],
"width": 1920,
"height": 1080,
"framerate": 30,
"bitrate": 4000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 2,
"codec": "close",
@@ -818,7 +458,7 @@
"height": 360,
"framerate": 30,
"bitrate": 1000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 1,
"codec": "close",
@@ -830,7 +470,7 @@
"Pqp": 25
},
"enca": {
- "audioSrc": "hdmi",
+ "audioSrc": 3,
"gain": 0,
"codec": "close",
"samplerate": 48000,
@@ -841,15 +481,19 @@
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9004,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -858,28 +502,33 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.2.1",
- "port": 3002
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_main3"
- }
+ },
+ "suffix": "stream3"
},
"stream2": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9104,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -888,14 +537,15 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.3.1",
- "port": 3002
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_sub3"
- }
+ },
+ "suffix": "sub3"
},
"hls": {
"hls_time": 5,
@@ -914,9 +564,17 @@
"mpegts_original_network_id": 1,
"mpegts_transport_stream_id": 1,
"mpegts_pmt_start_pid": 4096,
- "mpegts_start_pid": 114
+ "mpegts_start_pid": 100
},
- "overlay": []
+ "net": {
+ "bufferMode": 1,
+ "protocol": "tcp",
+ "framerate": -1,
+ "path": "rtsp://admin:admin@192.168.1.64",
+ "decodeV": false,
+ "decode": false,
+ "minDelay": 500
+ }
},
{
"id": 4,
@@ -924,22 +582,23 @@
"type": "ndi",
"enable": false,
"enable2": false,
- "ndirecv": {
- "name": ""
- },
"stream": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9005,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -955,21 +614,26 @@
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_main4"
- }
+ },
+ "suffix": "stream4"
},
"stream2": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9105,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -985,7 +649,8 @@
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_sub4"
- }
+ },
+ "suffix": "sub4"
},
"hls": {
"hls_time": 5,
@@ -1006,7 +671,9 @@
"mpegts_pmt_start_pid": 4096,
"mpegts_start_pid": 100
},
- "overlay": []
+ "ndirecv": {
+ "name": ""
+ }
},
{
"id": 5,
@@ -1014,20 +681,63 @@
"type": "file",
"enable": false,
"enable2": false,
- "file": [],
+ "encv": {
+ "width": 1920,
+ "height": 1080,
+ "framerate": 30,
+ "bitrate": 4000,
+ "rcmode": "cbr",
+ "lowLatency": false,
+ "gop": 2,
+ "codec": "close",
+ "profile": "base",
+ "gopmode": 0,
+ "minqp": 22,
+ "maxqp": 36,
+ "Iqp": 25,
+ "Pqp": 25
+ },
+ "encv2": {
+ "width": 640,
+ "height": 360,
+ "framerate": 30,
+ "bitrate": 1000,
+ "rcmode": "cbr",
+ "lowLatency": false,
+ "gop": 1,
+ "codec": "close",
+ "profile": "base",
+ "gopmode": 0,
+ "minqp": 22,
+ "maxqp": 36,
+ "Iqp": 25,
+ "Pqp": 25
+ },
+ "enca": {
+ "audioSrc": 5,
+ "gain": 0,
+ "codec": "close",
+ "samplerate": 48000,
+ "bitrate": 128,
+ "channels": 2
+ },
"stream": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9006,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -1036,28 +746,33 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.2.1",
- "port": 3003
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_main5"
- }
+ },
+ "suffix": "stream5"
},
"stream2": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9106,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -1066,14 +781,15 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.3.1",
- "port": 3003
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_sub5"
- }
+ },
+ "suffix": "sub5"
},
"hls": {
"hls_time": 5,
@@ -1092,108 +808,28 @@
"mpegts_original_network_id": 1,
"mpegts_transport_stream_id": 1,
"mpegts_pmt_start_pid": 4096,
- "mpegts_start_pid": 114
+ "mpegts_start_pid": 100
},
- "overlay": []
+ "decodeV": false,
+ "decodeA": false,
+ "file": []
},
{
"id": 6,
- "name": "Mix",
- "type": "mix",
+ "name": "ColorKey",
+ "type": "colorKey",
"enable": false,
"enable2": false,
"encv": {
- "roi": [
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- }
- ],
"width": 1920,
"height": 1080,
"framerate": 30,
"bitrate": 4000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 2,
- "codec": "h264",
- "profile": "high",
+ "codec": "close",
+ "profile": "base",
"gopmode": 0,
"minqp": 22,
"maxqp": 36,
@@ -1205,11 +841,11 @@
"height": 360,
"framerate": 30,
"bitrate": 1000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 1,
- "codec": "h264",
- "profile": "high",
+ "codec": "close",
+ "profile": "base",
"gopmode": 0,
"minqp": 22,
"maxqp": 36,
@@ -1217,46 +853,30 @@
"Pqp": 25
},
"enca": {
- "codec": "aac",
+ "audioSrc": 6,
+ "gain": 0,
+ "codec": "close",
"samplerate": 48000,
"bitrate": 128,
- "channels": 2,
- "audioSrc": "hdmi",
- "gain": 0
- },
- "output": {
- "enable": true,
- "src": 0,
- "ui": false,
- "lowLatency": false,
- "output": "1080P60",
- "type": "hdmi",
- "rotate": 0,
- "vid": 0
- },
- "output2": {
- "enable": false,
- "src": 0,
- "ui": false,
- "lowLatency": false,
- "output": "1080P60",
- "type": "vga",
- "rotate": 0,
- "vid": 1
+ "channels": 2
},
"stream": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9007,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -1265,28 +885,33 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.2.1",
- "port": 3004
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_main6"
- }
+ },
+ "suffix": "stream6"
},
"stream2": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9107,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -1295,14 +920,15 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.3.1",
- "port": 3004
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_sub6"
- }
+ },
+ "suffix": "sub6"
},
"hls": {
"hls_time": 5,
@@ -1321,17 +947,214 @@
"mpegts_original_network_id": 1,
"mpegts_transport_stream_id": 1,
"mpegts_pmt_start_pid": 4096,
- "mpegts_start_pid": 134
+ "mpegts_start_pid": 100
+ },
+ "colorKey": {
+ "point": [
+ {
+ "x": 0.2,
+ "y": 0.2
+ },
+ {
+ "x": 0.8,
+ "y": 0.2
+ },
+ {
+ "x": 0.2,
+ "y": 0.8
+ },
+ {
+ "x": 0.8,
+ "y": 0.8
+ }
+ ],
+ "autoUpdate": false,
+ "tolerance": 20,
+ "srcA": 0,
+ "srcB": {
+ "type": "img",
+ "path": "/link/res/background.jpg",
+ "id": 2
+ }
+ }
+ },
+ {
+ "id": 7,
+ "name": "Mix",
+ "type": "mix",
+ "enable": false,
+ "enable2": false,
+ "encv": {
+ "width": 1920,
+ "height": 1080,
+ "framerate": 30,
+ "bitrate": 4000,
+ "rcmode": "cbr",
+ "lowLatency": false,
+ "gop": 2,
+ "codec": "h264",
+ "profile": "high",
+ "gopmode": 0,
+ "minqp": 22,
+ "maxqp": 36,
+ "Iqp": 25,
+ "Pqp": 25
+ },
+ "encv2": {
+ "width": 640,
+ "height": 360,
+ "framerate": 30,
+ "bitrate": 1000,
+ "rcmode": "cbr",
+ "lowLatency": false,
+ "gop": 1,
+ "codec": "h264",
+ "profile": "high",
+ "gopmode": 0,
+ "minqp": 22,
+ "maxqp": 36,
+ "Iqp": 25,
+ "Pqp": 25
+ },
+ "enca": {
+ "audioSrc": 7,
+ "gain": 0,
+ "codec": "aac",
+ "samplerate": 48000,
+ "bitrate": 128,
+ "channels": 2
+ },
+ "stream": {
+ "http": false,
+ "hls": false,
+ "rtmp": false,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
+ "srt": {
+ "enable": false,
+ "mode": "listener",
+ "ip": "127.0.0.1",
+ "port": 9008,
+ "latency": 50,
+ "passwd": ""
+ },
+ "udp": {
+ "rtp": false,
+ "ttl": 5,
+ "flowCtrl": true,
+ "bandwidth": 100,
+ "enable": false,
+ "ip": "233.233.2.1",
+ "port": 3000
+ },
+ "push": {
+ "format": "auto",
+ "enable": false,
+ "hevc_id": 12,
+ "path": "rtmp://127.0.0.1/live/test_main7"
+ },
+ "suffix": "stream7"
+ },
+ "stream2": {
+ "http": false,
+ "hls": false,
+ "rtmp": false,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
+ "srt": {
+ "enable": false,
+ "mode": "listener",
+ "ip": "127.0.0.1",
+ "port": 9108,
+ "latency": 50,
+ "passwd": ""
+ },
+ "udp": {
+ "rtp": false,
+ "ttl": 5,
+ "flowCtrl": true,
+ "bandwidth": 100,
+ "enable": false,
+ "ip": "233.233.3.1",
+ "port": 3000
+ },
+ "push": {
+ "format": "auto",
+ "enable": false,
+ "hevc_id": 12,
+ "path": "rtmp://127.0.0.1/live/test_sub7"
+ },
+ "suffix": "sub7"
+ },
+ "hls": {
+ "hls_time": 5,
+ "hls_list_size": 5,
+ "hls_base_url": "/hls/",
+ "hls_filename": "-%06d.ts"
+ },
+ "ndi": {
+ "name": "stream7",
+ "group": "",
+ "enable": false
+ },
+ "ts": {
+ "tsSize": 1316,
+ "mpegts_service_id": 1,
+ "mpegts_original_network_id": 1,
+ "mpegts_transport_stream_id": 1,
+ "mpegts_pmt_start_pid": 4096,
+ "mpegts_start_pid": 100
+ },
+ "output": {
+ "enable": true,
+ "vid": 0,
+ "ui": false,
+ "lowLatency": false,
+ "output": "1080P60",
+ "type": "hdmi",
+ "rotate": 0,
+ "src": 0,
+ "csc": {
+ "matrix": "identity",
+ "contrast": "50",
+ "hue": "50",
+ "luma": "50",
+ "saturation": "50"
+ }
+ },
+ "output2": {
+ "enable": false,
+ "vid": 1,
+ "ui": false,
+ "lowLatency": false,
+ "output": "1080P60",
+ "type": "vga",
+ "rotate": 0,
+ "src": 7,
+ "csc": {
+ "matrix": "identity",
+ "contrast": "50",
+ "hue": "50",
+ "luma": "50",
+ "saturation": "50"
+ }
},
- "overlay": [],
"srcV": [
- "0",
- "-1",
- "-1",
- "-1"
+ 0,
+ 1,
+ 2,
+ 3
],
"srcA": [
- "0"
+ 0
],
"layout": [
{
@@ -1368,4 +1191,4 @@
}
]
}
-]
+]
\ No newline at end of file
diff --git a/rootfs/link/fac/EX2/config/default/config.json b/rootfs/link/fac/EX2/config/default/config.json
index c4332b6..c84331a 100644
--- a/rootfs/link/fac/EX2/config/default/config.json
+++ b/rootfs/link/fac/EX2/config/default/config.json
@@ -4,107 +4,13 @@
"name": "HDMI",
"type": "vi",
"enable": true,
- "enable2": true,
- "interface": "HDMI",
- "cap": {
- "deinterlace": false,
- "rotate": 0,
- "crop": {
- "L": 0,
- "R": 0,
- "T": 0,
- "B": 0
- },
- "ntsc": false
- },
+ "enable2": false,
"encv": {
- "roi": [
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- }
- ],
"width": 1920,
"height": 1080,
"framerate": 30,
"bitrate": 4000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 2,
"codec": "h264",
@@ -120,7 +26,7 @@
"height": 360,
"framerate": 30,
"bitrate": 1000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 1,
"codec": "h264",
@@ -132,7 +38,7 @@
"Pqp": 25
},
"enca": {
- "audioSrc": "hdmi",
+ "audioSrc": 0,
"gain": 0,
"codec": "aac",
"samplerate": 48000,
@@ -143,15 +49,19 @@
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9001,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -167,21 +77,26 @@
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_main0"
- }
+ },
+ "suffix": "stream0"
},
"stream2": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9101,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -197,7 +112,8 @@
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_sub0"
- }
+ },
+ "suffix": "sub0"
},
"hls": {
"hls_time": 5,
@@ -218,52 +134,18 @@
"mpegts_pmt_start_pid": 4096,
"mpegts_start_pid": 100
},
- "overlay": [
- {
- "type": "text",
- "enable": false,
- "font": "/link/res/font.ttf",
- "content": "Overlay Text",
- "x": 0.1,
- "y": 0.136,
- "scale": 2.2,
- "color": "#669900",
- "alpha": 1,
- "move": -1,
- "w": 0.515
- },
- {
- "type": "pic",
- "enable": false,
- "content": "/link/res/logo.png",
- "x": 0.1,
- "y": 0.1,
- "scale": 1,
- "alpha": 1
- },
- {
- "type": "mask",
- "enable": false,
- "content": "16",
- "x": 0.4,
- "y": 0.4,
- "w": 0.2,
- "h": 0.2
- },
- {
- "type": "time",
- "x": "0.581",
- "y": "0.077",
- "h": 0,
- "w": 0,
- "scale": "3.02",
- "content": "yyyy-MM-dd hh:mm:ss",
- "enable": false,
- "color": "#ffffff",
- "alpha": 1,
- "font": "/link/res/font.ttf"
+ "interface": "HDMI",
+ "cap": {
+ "deinterlace": false,
+ "rotate": 0,
+ "ntsc": false,
+ "crop": {
+ "L": 0,
+ "T": 0,
+ "R": 0,
+ "B": 0
}
- ]
+ }
},
{
"id": 1,
@@ -271,102 +153,12 @@
"type": "usb",
"enable": false,
"enable2": false,
- "alsa": "hw:0,0",
- "lnk": "1-1",
- "channels":-1,
- "alarm": {
- "enable": false,
- "thresh": 800,
- "cache": 20
- },
"encv": {
- "roi": [
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- }
- ],
"width": 1920,
"height": 1080,
"framerate": 30,
"bitrate": 4000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 2,
"codec": "close",
@@ -382,7 +174,7 @@
"height": 360,
"framerate": 30,
"bitrate": 1000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 1,
"codec": "close",
@@ -394,26 +186,30 @@
"Pqp": 25
},
"enca": {
- "audioSrc": "hdmi",
+ "audioSrc": 1,
"gain": 0,
"codec": "close",
"samplerate": 48000,
- "bitrate": 32,
+ "bitrate": 128,
"channels": 2
},
"stream": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9002,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -422,28 +218,33 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.2.1",
- "port": 3005
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_main1"
- }
+ },
+ "suffix": "stream1"
},
"stream2": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9102,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -452,14 +253,15 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.3.1",
- "port": 3005
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_sub1"
- }
+ },
+ "suffix": "sub1"
},
"hls": {
"hls_time": 5,
@@ -478,9 +280,11 @@
"mpegts_original_network_id": 1,
"mpegts_transport_stream_id": 1,
"mpegts_pmt_start_pid": 4096,
- "mpegts_start_pid": 110
+ "mpegts_start_pid": 100
},
- "overlay": []
+ "alsa": "hw:0,0",
+ "lnk": "1-1",
+ "channels": -1
},
{
"id": 2,
@@ -488,103 +292,12 @@
"type": "net",
"enable": false,
"enable2": false,
- "net": {
- "bufferMode": 0,
- "protocol": "tcp",
- "framerate": -1,
- "path": "rtsp://admin:admin@192.168.1.23/cam/realmonitor?channel=1&subtype=0",
- "decodeV": false,
- "decodeA": false,
- "minDelay": 500
- },
"encv": {
- "roi": [
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- }
- ],
"width": 1920,
"height": 1080,
"framerate": 30,
"bitrate": 4000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 2,
"codec": "close",
@@ -600,7 +313,7 @@
"height": 360,
"framerate": 30,
"bitrate": 1000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 1,
"codec": "close",
@@ -612,7 +325,7 @@
"Pqp": 25
},
"enca": {
- "audioSrc": "hdmi",
+ "audioSrc": 2,
"gain": 0,
"codec": "close",
"samplerate": 48000,
@@ -623,15 +336,19 @@
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9003,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -640,28 +357,33 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.2.1",
- "port": 3001
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_main2"
- }
+ },
+ "suffix": "stream2"
},
"stream2": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9103,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -670,14 +392,15 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.3.1",
- "port": 3001
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_sub2"
- }
+ },
+ "suffix": "sub2"
},
"hls": {
"hls_time": 5,
@@ -696,9 +419,17 @@
"mpegts_original_network_id": 1,
"mpegts_transport_stream_id": 1,
"mpegts_pmt_start_pid": 4096,
- "mpegts_start_pid": 112
+ "mpegts_start_pid": 100
},
- "overlay": []
+ "net": {
+ "bufferMode": 1,
+ "protocol": "tcp",
+ "framerate": -1,
+ "path": "rtsp://admin:admin@192.168.1.64",
+ "decodeV": false,
+ "decode": false,
+ "minDelay": 500
+ }
},
{
"id": 3,
@@ -706,103 +437,12 @@
"type": "net",
"enable": false,
"enable2": false,
- "net": {
- "bufferMode": 0,
- "protocol": "tcp",
- "framerate": -1,
- "path": "rtsp://admin:admin@192.168.1.23/cam/realmonitor?channel=1&subtype=0",
- "decodeV": false,
- "decodeA": false,
- "minDelay": 500
- },
"encv": {
- "roi": [
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- }
- ],
"width": 1920,
"height": 1080,
"framerate": 30,
"bitrate": 4000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 2,
"codec": "close",
@@ -818,7 +458,7 @@
"height": 360,
"framerate": 30,
"bitrate": 1000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 1,
"codec": "close",
@@ -830,7 +470,7 @@
"Pqp": 25
},
"enca": {
- "audioSrc": "hdmi",
+ "audioSrc": 3,
"gain": 0,
"codec": "close",
"samplerate": 48000,
@@ -841,15 +481,19 @@
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9004,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -858,28 +502,33 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.2.1",
- "port": 3002
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_main3"
- }
+ },
+ "suffix": "stream3"
},
"stream2": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9104,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -888,14 +537,15 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.3.1",
- "port": 3002
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_sub3"
- }
+ },
+ "suffix": "sub3"
},
"hls": {
"hls_time": 5,
@@ -914,9 +564,17 @@
"mpegts_original_network_id": 1,
"mpegts_transport_stream_id": 1,
"mpegts_pmt_start_pid": 4096,
- "mpegts_start_pid": 114
+ "mpegts_start_pid": 100
},
- "overlay": []
+ "net": {
+ "bufferMode": 1,
+ "protocol": "tcp",
+ "framerate": -1,
+ "path": "rtsp://admin:admin@192.168.1.64",
+ "decodeV": false,
+ "decode": false,
+ "minDelay": 500
+ }
},
{
"id": 4,
@@ -924,22 +582,23 @@
"type": "ndi",
"enable": false,
"enable2": false,
- "ndirecv": {
- "name": ""
- },
"stream": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9005,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -955,21 +614,26 @@
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_main4"
- }
+ },
+ "suffix": "stream4"
},
"stream2": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9105,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -985,7 +649,8 @@
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_sub4"
- }
+ },
+ "suffix": "sub4"
},
"hls": {
"hls_time": 5,
@@ -1006,7 +671,9 @@
"mpegts_pmt_start_pid": 4096,
"mpegts_start_pid": 100
},
- "overlay": []
+ "ndirecv": {
+ "name": ""
+ }
},
{
"id": 5,
@@ -1014,20 +681,63 @@
"type": "file",
"enable": false,
"enable2": false,
- "file": [],
+ "encv": {
+ "width": 1920,
+ "height": 1080,
+ "framerate": 30,
+ "bitrate": 4000,
+ "rcmode": "cbr",
+ "lowLatency": false,
+ "gop": 2,
+ "codec": "close",
+ "profile": "base",
+ "gopmode": 0,
+ "minqp": 22,
+ "maxqp": 36,
+ "Iqp": 25,
+ "Pqp": 25
+ },
+ "encv2": {
+ "width": 640,
+ "height": 360,
+ "framerate": 30,
+ "bitrate": 1000,
+ "rcmode": "cbr",
+ "lowLatency": false,
+ "gop": 1,
+ "codec": "close",
+ "profile": "base",
+ "gopmode": 0,
+ "minqp": 22,
+ "maxqp": 36,
+ "Iqp": 25,
+ "Pqp": 25
+ },
+ "enca": {
+ "audioSrc": 5,
+ "gain": 0,
+ "codec": "close",
+ "samplerate": 48000,
+ "bitrate": 128,
+ "channels": 2
+ },
"stream": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9006,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -1036,28 +746,33 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.2.1",
- "port": 3003
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_main5"
- }
+ },
+ "suffix": "stream5"
},
"stream2": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9106,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -1066,14 +781,15 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.3.1",
- "port": 3003
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_sub5"
- }
+ },
+ "suffix": "sub5"
},
"hls": {
"hls_time": 5,
@@ -1092,108 +808,28 @@
"mpegts_original_network_id": 1,
"mpegts_transport_stream_id": 1,
"mpegts_pmt_start_pid": 4096,
- "mpegts_start_pid": 114
+ "mpegts_start_pid": 100
},
- "overlay": []
+ "decodeV": false,
+ "decodeA": false,
+ "file": []
},
{
"id": 6,
- "name": "Mix",
- "type": "mix",
+ "name": "ColorKey",
+ "type": "colorKey",
"enable": false,
"enable2": false,
"encv": {
- "roi": [
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- }
- ],
"width": 1920,
"height": 1080,
"framerate": 30,
"bitrate": 4000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 2,
- "codec": "h264",
- "profile": "high",
+ "codec": "close",
+ "profile": "base",
"gopmode": 0,
"minqp": 22,
"maxqp": 36,
@@ -1205,11 +841,11 @@
"height": 360,
"framerate": 30,
"bitrate": 1000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 1,
- "codec": "h264",
- "profile": "high",
+ "codec": "close",
+ "profile": "base",
"gopmode": 0,
"minqp": 22,
"maxqp": 36,
@@ -1217,46 +853,30 @@
"Pqp": 25
},
"enca": {
- "codec": "aac",
+ "audioSrc": 6,
+ "gain": 0,
+ "codec": "close",
"samplerate": 48000,
"bitrate": 128,
- "channels": 2,
- "audioSrc": "hdmi",
- "gain": 0
- },
- "output": {
- "enable": true,
- "src": 0,
- "ui": false,
- "lowLatency": false,
- "output": "1080P60",
- "type": "hdmi",
- "rotate": 0,
- "vid": 0
- },
- "output2": {
- "enable": false,
- "src": 0,
- "ui": false,
- "lowLatency": false,
- "output": "1080P60",
- "type": "vga",
- "rotate": 0,
- "vid": 1
+ "channels": 2
},
"stream": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9007,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -1265,28 +885,33 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.2.1",
- "port": 3004
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_main6"
- }
+ },
+ "suffix": "stream6"
},
"stream2": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9107,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -1295,14 +920,15 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.3.1",
- "port": 3004
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_sub6"
- }
+ },
+ "suffix": "sub6"
},
"hls": {
"hls_time": 5,
@@ -1321,17 +947,214 @@
"mpegts_original_network_id": 1,
"mpegts_transport_stream_id": 1,
"mpegts_pmt_start_pid": 4096,
- "mpegts_start_pid": 134
+ "mpegts_start_pid": 100
+ },
+ "colorKey": {
+ "point": [
+ {
+ "x": 0.2,
+ "y": 0.2
+ },
+ {
+ "x": 0.8,
+ "y": 0.2
+ },
+ {
+ "x": 0.2,
+ "y": 0.8
+ },
+ {
+ "x": 0.8,
+ "y": 0.8
+ }
+ ],
+ "autoUpdate": false,
+ "tolerance": 20,
+ "srcA": 0,
+ "srcB": {
+ "type": "img",
+ "path": "/link/res/background.jpg",
+ "id": 2
+ }
+ }
+ },
+ {
+ "id": 7,
+ "name": "Mix",
+ "type": "mix",
+ "enable": false,
+ "enable2": false,
+ "encv": {
+ "width": 1920,
+ "height": 1080,
+ "framerate": 30,
+ "bitrate": 4000,
+ "rcmode": "cbr",
+ "lowLatency": false,
+ "gop": 2,
+ "codec": "h264",
+ "profile": "high",
+ "gopmode": 0,
+ "minqp": 22,
+ "maxqp": 36,
+ "Iqp": 25,
+ "Pqp": 25
+ },
+ "encv2": {
+ "width": 640,
+ "height": 360,
+ "framerate": 30,
+ "bitrate": 1000,
+ "rcmode": "cbr",
+ "lowLatency": false,
+ "gop": 1,
+ "codec": "h264",
+ "profile": "high",
+ "gopmode": 0,
+ "minqp": 22,
+ "maxqp": 36,
+ "Iqp": 25,
+ "Pqp": 25
+ },
+ "enca": {
+ "audioSrc": 7,
+ "gain": 0,
+ "codec": "aac",
+ "samplerate": 48000,
+ "bitrate": 128,
+ "channels": 2
+ },
+ "stream": {
+ "http": false,
+ "hls": false,
+ "rtmp": false,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
+ "srt": {
+ "enable": false,
+ "mode": "listener",
+ "ip": "127.0.0.1",
+ "port": 9008,
+ "latency": 50,
+ "passwd": ""
+ },
+ "udp": {
+ "rtp": false,
+ "ttl": 5,
+ "flowCtrl": true,
+ "bandwidth": 100,
+ "enable": false,
+ "ip": "233.233.2.1",
+ "port": 3000
+ },
+ "push": {
+ "format": "auto",
+ "enable": false,
+ "hevc_id": 12,
+ "path": "rtmp://127.0.0.1/live/test_main7"
+ },
+ "suffix": "stream7"
+ },
+ "stream2": {
+ "http": false,
+ "hls": false,
+ "rtmp": false,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
+ "srt": {
+ "enable": false,
+ "mode": "listener",
+ "ip": "127.0.0.1",
+ "port": 9108,
+ "latency": 50,
+ "passwd": ""
+ },
+ "udp": {
+ "rtp": false,
+ "ttl": 5,
+ "flowCtrl": true,
+ "bandwidth": 100,
+ "enable": false,
+ "ip": "233.233.3.1",
+ "port": 3000
+ },
+ "push": {
+ "format": "auto",
+ "enable": false,
+ "hevc_id": 12,
+ "path": "rtmp://127.0.0.1/live/test_sub7"
+ },
+ "suffix": "sub7"
+ },
+ "hls": {
+ "hls_time": 5,
+ "hls_list_size": 5,
+ "hls_base_url": "/hls/",
+ "hls_filename": "-%06d.ts"
+ },
+ "ndi": {
+ "name": "stream7",
+ "group": "",
+ "enable": false
+ },
+ "ts": {
+ "tsSize": 1316,
+ "mpegts_service_id": 1,
+ "mpegts_original_network_id": 1,
+ "mpegts_transport_stream_id": 1,
+ "mpegts_pmt_start_pid": 4096,
+ "mpegts_start_pid": 100
+ },
+ "output": {
+ "enable": true,
+ "vid": 0,
+ "ui": false,
+ "lowLatency": false,
+ "output": "1080P60",
+ "type": "hdmi",
+ "rotate": 0,
+ "src": 0,
+ "csc": {
+ "matrix": "identity",
+ "contrast": "50",
+ "hue": "50",
+ "luma": "50",
+ "saturation": "50"
+ }
+ },
+ "output2": {
+ "enable": false,
+ "vid": 1,
+ "ui": false,
+ "lowLatency": false,
+ "output": "1080P60",
+ "type": "vga",
+ "rotate": 0,
+ "src": 7,
+ "csc": {
+ "matrix": "identity",
+ "contrast": "50",
+ "hue": "50",
+ "luma": "50",
+ "saturation": "50"
+ }
},
- "overlay": [],
"srcV": [
- "0",
- "-1",
- "-1",
- "-1"
+ 0,
+ 1,
+ 2,
+ 3
],
"srcA": [
- "0"
+ 0
],
"layout": [
{
@@ -1368,4 +1191,4 @@
}
]
}
-]
+]
\ No newline at end of file
diff --git a/rootfs/link/fac/EX2/config/default/group.json b/rootfs/link/fac/EX2/config/default/group.json
new file mode 100644
index 0000000..6092abc
--- /dev/null
+++ b/rootfs/link/fac/EX2/config/default/group.json
@@ -0,0 +1,5 @@
+{
+ "type":"ENC1",
+ "groupId":0,
+ "order":[]
+}
diff --git a/rootfs/link/fac/EX2/config/group.json b/rootfs/link/fac/EX2/config/group.json
new file mode 100644
index 0000000..6092abc
--- /dev/null
+++ b/rootfs/link/fac/EX2/config/group.json
@@ -0,0 +1,5 @@
+{
+ "type":"ENC1",
+ "groupId":0,
+ "order":[]
+}
diff --git a/rootfs/link/fac/EX2/config/hardware.json b/rootfs/link/fac/EX2/config/hardware.json
new file mode 100644
index 0000000..844ad1a
--- /dev/null
+++ b/rootfs/link/fac/EX2/config/hardware.json
@@ -0,0 +1,55 @@
+{
+ "fac":"EX2",
+ "model":"ENC1",
+ "chip":"HI3520DV400",
+ "interfaceV":[
+ {"name":"HDMI","type":"HDMI"}
+ ],
+ "capability":{
+ "decode":{
+ "channels":2
+ },
+ "encode":{
+ "maxSize":"1080P",
+ "maxPixel":165888000,
+ "BFrame":false
+ },
+ "maxInput":"1080P60",
+ "maxOutput":"1080P60",
+ "extraVo":"VGA",
+ "eth1":false
+ },
+ "function":{
+ "record":true,
+ "carousel":true,
+ "overlay":true,
+ "dhcp":true,
+ "wifi":true,
+ "videoOut":true,
+ "line":true,
+ "mix":true,
+ "portCtrl":true,
+ "ndi":true,
+ "srt":true,
+ "hls":true,
+ "serialport":true,
+ "button":true,
+ "intercom":true,
+ "remote":false,
+ "rtspAuth":true,
+ "netPic":true
+ },
+ "other":{
+ "help":"120.78.2.184"
+ },
+ "gpio":{
+ "type":"himm",
+ "name":"gpio11_5",
+ "mux":"himm 0x120F0104 0x0",
+ "dir":"himm 0x12200400 0x0",
+ "addr":"0x12200080"
+ },
+ "usb":{
+ "lnk":"1-1"
+ }
+}
diff --git a/rootfs/link/fac/SH/config/config.json b/rootfs/link/fac/SH/config/config.json
index 0443880..aecf3c3 100644
--- a/rootfs/link/fac/SH/config/config.json
+++ b/rootfs/link/fac/SH/config/config.json
@@ -4,107 +4,13 @@
"name": "SDI",
"type": "vi",
"enable": true,
- "enable2": true,
- "interface": "SDI",
- "cap": {
- "deinterlace": false,
- "rotate": 0,
- "crop": {
- "L": 0,
- "R": 0,
- "T": 0,
- "B": 0
- },
- "ntsc": false
- },
+ "enable2": false,
"encv": {
- "roi": [
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- }
- ],
"width": 1920,
"height": 1080,
"framerate": 30,
"bitrate": 4000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 2,
"codec": "h264",
@@ -120,7 +26,7 @@
"height": 360,
"framerate": 30,
"bitrate": 1000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 1,
"codec": "h264",
@@ -132,7 +38,7 @@
"Pqp": 25
},
"enca": {
- "audioSrc": "sdi",
+ "audioSrc": 0,
"gain": 0,
"codec": "aac",
"samplerate": 48000,
@@ -143,15 +49,19 @@
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9001,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -167,21 +77,26 @@
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_main0"
- }
+ },
+ "suffix": "stream0"
},
"stream2": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9101,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -197,7 +112,8 @@
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_sub0"
- }
+ },
+ "suffix": "sub0"
},
"hls": {
"hls_time": 5,
@@ -218,159 +134,31 @@
"mpegts_pmt_start_pid": 4096,
"mpegts_start_pid": 100
},
- "overlay": [
- {
- "type": "text",
- "enable": false,
- "font": "/link/res/font.ttf",
- "content": "Overlay Text",
- "x": 0.1,
- "y": 0.136,
- "scale": 2.2,
- "color": "#669900",
- "alpha": 1,
- "move": -1,
- "w": 0.515
- },
- {
- "type": "pic",
- "enable": false,
- "content": "/link/res/logo.png",
- "x": 0.1,
- "y": 0.1,
- "scale": 1,
- "alpha": 1
- },
- {
- "type": "mask",
- "enable": false,
- "content": "16",
- "x": 0.4,
- "y": 0.4,
- "w": 0.2,
- "h": 0.2
- },
- {
- "type": "time",
- "x": "0.581",
- "y": "0.077",
- "h": 0,
- "w": 0,
- "scale": "3.02",
- "content": "yyyy-MM-dd hh:mm:ss",
- "enable": false,
- "color": "#ffffff",
- "alpha": 1,
- "font": "/link/res/font.ttf"
+ "interface": "SDI",
+ "cap": {
+ "deinterlace": false,
+ "rotate": 0,
+ "ntsc": false,
+ "crop": {
+ "L": 0,
+ "T": 0,
+ "R": 0,
+ "B": 0
}
- ]
+ }
},
{
"id": 1,
"name": "HDMI",
"type": "vi",
"enable": true,
- "enable2": true,
- "interface": "HDMI",
- "cap": {
- "deinterlace": false,
- "rotate": 0,
- "crop": {
- "L": 0,
- "R": 0,
- "T": 0,
- "B": 0
- },
- "ntsc": false
- },
+ "enable2": false,
"encv": {
- "roi": [
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- }
- ],
"width": 1920,
"height": 1080,
"framerate": 30,
"bitrate": 4000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 2,
"codec": "h264",
@@ -386,7 +174,7 @@
"height": 360,
"framerate": 30,
"bitrate": 1000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 1,
"codec": "h264",
@@ -398,7 +186,7 @@
"Pqp": 25
},
"enca": {
- "audioSrc": "hdmi",
+ "audioSrc": 1,
"gain": 0,
"codec": "aac",
"samplerate": 48000,
@@ -409,15 +197,19 @@
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9002,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -433,21 +225,26 @@
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_main1"
- }
+ },
+ "suffix": "stream1"
},
"stream2": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9102,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -463,7 +260,8 @@
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_sub1"
- }
+ },
+ "suffix": "sub1"
},
"hls": {
"hls_time": 5,
@@ -484,52 +282,18 @@
"mpegts_pmt_start_pid": 4096,
"mpegts_start_pid": 100
},
- "overlay": [
- {
- "type": "text",
- "enable": false,
- "font": "/link/res/font.ttf",
- "content": "Overlay Text",
- "x": 0.1,
- "y": 0.136,
- "scale": 2.2,
- "color": "#669900",
- "alpha": 1,
- "move": -1,
- "w": 0.515
- },
- {
- "type": "pic",
- "enable": false,
- "content": "/link/res/logo.png",
- "x": 0.1,
- "y": 0.1,
- "scale": 1,
- "alpha": 1
- },
- {
- "type": "mask",
- "enable": false,
- "content": "16",
- "x": 0.4,
- "y": 0.4,
- "w": 0.2,
- "h": 0.2
- },
- {
- "type": "time",
- "x": "0.581",
- "y": "0.077",
- "h": 0,
- "w": 0,
- "scale": "3.02",
- "content": "yyyy-MM-dd hh:mm:ss",
- "enable": false,
- "color": "#ffffff",
- "alpha": 1,
- "font": "/link/res/font.ttf"
+ "interface": "HDMI",
+ "cap": {
+ "deinterlace": false,
+ "rotate": 0,
+ "ntsc": false,
+ "crop": {
+ "L": 0,
+ "T": 0,
+ "R": 0,
+ "B": 0
}
- ]
+ }
},
{
"id": 2,
@@ -537,102 +301,12 @@
"type": "usb",
"enable": false,
"enable2": false,
- "alsa":"hw:1,0",
- "lnk": "1-2",
- "channels":-1,
- "alarm": {
- "enable": false,
- "thresh": 800,
- "cache": 20
- },
"encv": {
- "roi": [
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- }
- ],
"width": 1920,
"height": 1080,
"framerate": 30,
"bitrate": 4000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 2,
"codec": "close",
@@ -648,7 +322,7 @@
"height": 360,
"framerate": 30,
"bitrate": 1000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 1,
"codec": "close",
@@ -660,26 +334,30 @@
"Pqp": 25
},
"enca": {
- "audioSrc": "hdmi",
+ "audioSrc": 2,
"gain": 0,
"codec": "close",
"samplerate": 48000,
- "bitrate": 32,
+ "bitrate": 128,
"channels": 2
},
"stream": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9003,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -688,28 +366,33 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.2.1",
- "port": 3005
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_main2"
- }
+ },
+ "suffix": "stream2"
},
"stream2": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9103,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -718,14 +401,15 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.3.1",
- "port": 3005
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_sub2"
- }
+ },
+ "suffix": "sub2"
},
"hls": {
"hls_time": 5,
@@ -744,9 +428,11 @@
"mpegts_original_network_id": 1,
"mpegts_transport_stream_id": 1,
"mpegts_pmt_start_pid": 4096,
- "mpegts_start_pid": 110
+ "mpegts_start_pid": 100
},
- "overlay": []
+ "alsa": "hw:0,0",
+ "lnk": "1-2",
+ "channels": -1
},
{
"id": 3,
@@ -754,103 +440,12 @@
"type": "net",
"enable": false,
"enable2": false,
- "net": {
- "bufferMode": 0,
- "protocol": "tcp",
- "framerate": -1,
- "path": "rtsp://admin:admin@192.168.1.23/cam/realmonitor?channel=1&subtype=0",
- "decodeV": false,
- "decodeA": false,
- "minDelay": 500
- },
"encv": {
- "roi": [
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- }
- ],
"width": 1920,
"height": 1080,
"framerate": 30,
"bitrate": 4000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 2,
"codec": "close",
@@ -866,7 +461,7 @@
"height": 360,
"framerate": 30,
"bitrate": 1000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 1,
"codec": "close",
@@ -878,7 +473,7 @@
"Pqp": 25
},
"enca": {
- "audioSrc": "hdmi",
+ "audioSrc": 3,
"gain": 0,
"codec": "close",
"samplerate": 48000,
@@ -889,15 +484,19 @@
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9004,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -906,28 +505,33 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.2.1",
- "port": 3001
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_main3"
- }
+ },
+ "suffix": "stream3"
},
"stream2": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9104,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -936,14 +540,15 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.3.1",
- "port": 3001
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_sub3"
- }
+ },
+ "suffix": "sub3"
},
"hls": {
"hls_time": 5,
@@ -962,9 +567,17 @@
"mpegts_original_network_id": 1,
"mpegts_transport_stream_id": 1,
"mpegts_pmt_start_pid": 4096,
- "mpegts_start_pid": 112
+ "mpegts_start_pid": 100
},
- "overlay": []
+ "net": {
+ "bufferMode": 1,
+ "protocol": "tcp",
+ "framerate": -1,
+ "path": "rtsp://admin:admin@192.168.1.64",
+ "decodeV": false,
+ "decode": false,
+ "minDelay": 500
+ }
},
{
"id": 4,
@@ -972,103 +585,12 @@
"type": "net",
"enable": false,
"enable2": false,
- "net": {
- "bufferMode": 0,
- "protocol": "tcp",
- "framerate": -1,
- "path": "rtsp://admin:admin@192.168.1.23/cam/realmonitor?channel=1&subtype=0",
- "decodeV": false,
- "decodeA": false,
- "minDelay": 500
- },
"encv": {
- "roi": [
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- }
- ],
"width": 1920,
"height": 1080,
"framerate": 30,
"bitrate": 4000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 2,
"codec": "close",
@@ -1084,7 +606,7 @@
"height": 360,
"framerate": 30,
"bitrate": 1000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 1,
"codec": "close",
@@ -1096,7 +618,7 @@
"Pqp": 25
},
"enca": {
- "audioSrc": "hdmi",
+ "audioSrc": 4,
"gain": 0,
"codec": "close",
"samplerate": 48000,
@@ -1107,15 +629,19 @@
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9005,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -1124,28 +650,33 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.2.1",
- "port": 3002
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_main4"
- }
+ },
+ "suffix": "stream4"
},
"stream2": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9105,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -1154,14 +685,15 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.3.1",
- "port": 3002
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_sub4"
- }
+ },
+ "suffix": "sub4"
},
"hls": {
"hls_time": 5,
@@ -1180,9 +712,17 @@
"mpegts_original_network_id": 1,
"mpegts_transport_stream_id": 1,
"mpegts_pmt_start_pid": 4096,
- "mpegts_start_pid": 114
+ "mpegts_start_pid": 100
},
- "overlay": []
+ "net": {
+ "bufferMode": 1,
+ "protocol": "tcp",
+ "framerate": -1,
+ "path": "rtsp://admin:admin@192.168.1.64",
+ "decodeV": false,
+ "decode": false,
+ "minDelay": 500
+ }
},
{
"id": 5,
@@ -1190,103 +730,12 @@
"type": "net",
"enable": false,
"enable2": false,
- "net": {
- "bufferMode": 0,
- "protocol": "tcp",
- "framerate": -1,
- "path": "rtsp://admin:admin@192.168.1.23/cam/realmonitor?channel=1&subtype=0",
- "decodeV": false,
- "decodeA": false,
- "minDelay": 500
- },
"encv": {
- "roi": [
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- }
- ],
"width": 1920,
"height": 1080,
"framerate": 30,
"bitrate": 4000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 2,
"codec": "close",
@@ -1302,11 +751,11 @@
"height": 360,
"framerate": 30,
"bitrate": 1000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 1,
- "codec": "h264",
- "profile": "high",
+ "codec": "close",
+ "profile": "base",
"gopmode": 0,
"minqp": 22,
"maxqp": 36,
@@ -1314,7 +763,7 @@
"Pqp": 25
},
"enca": {
- "audioSrc": "hdmi",
+ "audioSrc": 5,
"gain": 0,
"codec": "close",
"samplerate": 48000,
@@ -1325,15 +774,19 @@
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9006,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -1342,28 +795,33 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.2.1",
- "port": 3001
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_main5"
- }
+ },
+ "suffix": "stream5"
},
"stream2": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9106,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -1372,14 +830,15 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.3.1",
- "port": 3001
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_sub5"
- }
+ },
+ "suffix": "sub5"
},
"hls": {
"hls_time": 5,
@@ -1398,9 +857,17 @@
"mpegts_original_network_id": 1,
"mpegts_transport_stream_id": 1,
"mpegts_pmt_start_pid": 4096,
- "mpegts_start_pid": 112
+ "mpegts_start_pid": 100
},
- "overlay": []
+ "net": {
+ "bufferMode": 1,
+ "protocol": "tcp",
+ "framerate": -1,
+ "path": "rtsp://admin:admin@192.168.1.64",
+ "decodeV": false,
+ "decode": false,
+ "minDelay": 500
+ }
},
{
"id": 6,
@@ -1408,103 +875,12 @@
"type": "net",
"enable": false,
"enable2": false,
- "net": {
- "bufferMode": 0,
- "protocol": "tcp",
- "framerate": -1,
- "path": "rtsp://admin:admin@192.168.1.23/cam/realmonitor?channel=1&subtype=0",
- "decodeV": false,
- "decodeA": false,
- "minDelay": 500
- },
"encv": {
- "roi": [
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- }
- ],
"width": 1920,
"height": 1080,
"framerate": 30,
"bitrate": 4000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 2,
"codec": "close",
@@ -1520,11 +896,11 @@
"height": 360,
"framerate": 30,
"bitrate": 1000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 1,
- "codec": "h264",
- "profile": "high",
+ "codec": "close",
+ "profile": "base",
"gopmode": 0,
"minqp": 22,
"maxqp": 36,
@@ -1532,7 +908,7 @@
"Pqp": 25
},
"enca": {
- "audioSrc": "hdmi",
+ "audioSrc": 6,
"gain": 0,
"codec": "close",
"samplerate": 48000,
@@ -1543,15 +919,19 @@
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9007,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -1560,28 +940,33 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.2.1",
- "port": 3001
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_main6"
- }
+ },
+ "suffix": "stream6"
},
"stream2": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9107,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -1590,14 +975,15 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.3.1",
- "port": 3001
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_sub6"
- }
+ },
+ "suffix": "sub6"
},
"hls": {
"hls_time": 5,
@@ -1616,9 +1002,17 @@
"mpegts_original_network_id": 1,
"mpegts_transport_stream_id": 1,
"mpegts_pmt_start_pid": 4096,
- "mpegts_start_pid": 112
+ "mpegts_start_pid": 100
},
- "overlay": []
+ "net": {
+ "bufferMode": 1,
+ "protocol": "tcp",
+ "framerate": -1,
+ "path": "rtsp://admin:admin@192.168.1.64",
+ "decodeV": false,
+ "decode": false,
+ "minDelay": 500
+ }
},
{
"id": 7,
@@ -1626,22 +1020,23 @@
"type": "ndi",
"enable": false,
"enable2": false,
- "ndirecv": {
- "name": ""
- },
"stream": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9008,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -1657,21 +1052,26 @@
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_main7"
- }
+ },
+ "suffix": "stream7"
},
"stream2": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9108,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -1687,7 +1087,8 @@
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_sub7"
- }
+ },
+ "suffix": "sub7"
},
"hls": {
"hls_time": 5,
@@ -1708,7 +1109,9 @@
"mpegts_pmt_start_pid": 4096,
"mpegts_start_pid": 100
},
- "overlay": []
+ "ndirecv": {
+ "name": ""
+ }
},
{
"id": 8,
@@ -1716,20 +1119,63 @@
"type": "file",
"enable": false,
"enable2": false,
- "file": [],
+ "encv": {
+ "width": 1920,
+ "height": 1080,
+ "framerate": 30,
+ "bitrate": 4000,
+ "rcmode": "cbr",
+ "lowLatency": false,
+ "gop": 2,
+ "codec": "close",
+ "profile": "base",
+ "gopmode": 0,
+ "minqp": 22,
+ "maxqp": 36,
+ "Iqp": 25,
+ "Pqp": 25
+ },
+ "encv2": {
+ "width": 640,
+ "height": 360,
+ "framerate": 30,
+ "bitrate": 1000,
+ "rcmode": "cbr",
+ "lowLatency": false,
+ "gop": 1,
+ "codec": "close",
+ "profile": "base",
+ "gopmode": 0,
+ "minqp": 22,
+ "maxqp": 36,
+ "Iqp": 25,
+ "Pqp": 25
+ },
+ "enca": {
+ "audioSrc": 8,
+ "gain": 0,
+ "codec": "close",
+ "samplerate": 48000,
+ "bitrate": 128,
+ "channels": 2
+ },
"stream": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9009,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -1738,28 +1184,33 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.2.1",
- "port": 3003
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_main8"
- }
+ },
+ "suffix": "stream8"
},
"stream2": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9109,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -1768,14 +1219,15 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.3.1",
- "port": 3003
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_sub8"
- }
+ },
+ "suffix": "sub8"
},
"hls": {
"hls_time": 5,
@@ -1794,108 +1246,28 @@
"mpegts_original_network_id": 1,
"mpegts_transport_stream_id": 1,
"mpegts_pmt_start_pid": 4096,
- "mpegts_start_pid": 114
+ "mpegts_start_pid": 100
},
- "overlay": []
+ "decodeV": false,
+ "decodeA": false,
+ "file": []
},
{
"id": 9,
- "name": "Mix",
- "type": "mix",
- "enable": true,
- "enable2": true,
+ "name": "ColorKey",
+ "type": "colorKey",
+ "enable": false,
+ "enable2": false,
"encv": {
- "roi": [
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- }
- ],
"width": 1920,
"height": 1080,
"framerate": 30,
"bitrate": 4000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 2,
- "codec": "h264",
- "profile": "high",
+ "codec": "close",
+ "profile": "base",
"gopmode": 0,
"minqp": 22,
"maxqp": 36,
@@ -1907,11 +1279,11 @@
"height": 360,
"framerate": 30,
"bitrate": 1000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 1,
- "codec": "h264",
- "profile": "high",
+ "codec": "close",
+ "profile": "base",
"gopmode": 0,
"minqp": 22,
"maxqp": 36,
@@ -1919,46 +1291,30 @@
"Pqp": 25
},
"enca": {
- "codec": "aac",
+ "audioSrc": 9,
+ "gain": 0,
+ "codec": "close",
"samplerate": 48000,
"bitrate": 128,
- "channels": 2,
- "audioSrc": "hdmi",
- "gain": 0
- },
- "output": {
- "enable": true,
- "src": 9,
- "ui": false,
- "lowLatency": false,
- "output": "1080P60",
- "type": "hdmi",
- "rotate": 0,
- "vid": 0
- },
- "output2": {
- "enable": false,
- "src": 0,
- "ui": false,
- "lowLatency": false,
- "output": "1080P60",
- "type": "vga",
- "rotate": 0,
- "vid": 1
+ "channels": 2
},
"stream": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9010,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -1967,28 +1323,33 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.2.1",
- "port": 3004
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_main9"
- }
+ },
+ "suffix": "stream9"
},
"stream2": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9110,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -1997,14 +1358,15 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.3.1",
- "port": 3004
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_sub9"
- }
+ },
+ "suffix": "sub9"
},
"hls": {
"hls_time": 5,
@@ -2023,18 +1385,214 @@
"mpegts_original_network_id": 1,
"mpegts_transport_stream_id": 1,
"mpegts_pmt_start_pid": 4096,
- "mpegts_start_pid": 134
+ "mpegts_start_pid": 100
+ },
+ "colorKey": {
+ "point": [
+ {
+ "x": 0.2,
+ "y": 0.2
+ },
+ {
+ "x": 0.8,
+ "y": 0.2
+ },
+ {
+ "x": 0.2,
+ "y": 0.8
+ },
+ {
+ "x": 0.8,
+ "y": 0.8
+ }
+ ],
+ "autoUpdate": false,
+ "tolerance": 20,
+ "srcA": 0,
+ "srcB": {
+ "type": "img",
+ "path": "/link/res/background.jpg",
+ "id": 2
+ }
+ }
+ },
+ {
+ "id": 10,
+ "name": "Mix",
+ "type": "mix",
+ "enable": true,
+ "enable2": false,
+ "encv": {
+ "width": 1920,
+ "height": 1080,
+ "framerate": 30,
+ "bitrate": 4000,
+ "rcmode": "cbr",
+ "lowLatency": false,
+ "gop": 2,
+ "codec": "h264",
+ "profile": "high",
+ "gopmode": 0,
+ "minqp": 22,
+ "maxqp": 36,
+ "Iqp": 25,
+ "Pqp": 25
+ },
+ "encv2": {
+ "width": 640,
+ "height": 360,
+ "framerate": 30,
+ "bitrate": 1000,
+ "rcmode": "cbr",
+ "lowLatency": false,
+ "gop": 1,
+ "codec": "h264",
+ "profile": "high",
+ "gopmode": 0,
+ "minqp": 22,
+ "maxqp": 36,
+ "Iqp": 25,
+ "Pqp": 25
+ },
+ "enca": {
+ "audioSrc": 10,
+ "gain": 0,
+ "codec": "aac",
+ "samplerate": 48000,
+ "bitrate": 128,
+ "channels": 2
+ },
+ "stream": {
+ "http": false,
+ "hls": false,
+ "rtmp": false,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
+ "srt": {
+ "enable": false,
+ "mode": "listener",
+ "ip": "127.0.0.1",
+ "port": 9011,
+ "latency": 50,
+ "passwd": ""
+ },
+ "udp": {
+ "rtp": false,
+ "ttl": 5,
+ "flowCtrl": true,
+ "bandwidth": 100,
+ "enable": false,
+ "ip": "233.233.2.1",
+ "port": 3000
+ },
+ "push": {
+ "format": "auto",
+ "enable": false,
+ "hevc_id": 12,
+ "path": "rtmp://127.0.0.1/live/test_main10"
+ },
+ "suffix": "stream10"
+ },
+ "stream2": {
+ "http": false,
+ "hls": false,
+ "rtmp": false,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
+ "srt": {
+ "enable": false,
+ "mode": "listener",
+ "ip": "127.0.0.1",
+ "port": 9111,
+ "latency": 50,
+ "passwd": ""
+ },
+ "udp": {
+ "rtp": false,
+ "ttl": 5,
+ "flowCtrl": true,
+ "bandwidth": 100,
+ "enable": false,
+ "ip": "233.233.3.1",
+ "port": 3000
+ },
+ "push": {
+ "format": "auto",
+ "enable": false,
+ "hevc_id": 12,
+ "path": "rtmp://127.0.0.1/live/test_sub10"
+ },
+ "suffix": "sub10"
+ },
+ "hls": {
+ "hls_time": 5,
+ "hls_list_size": 5,
+ "hls_base_url": "/hls/",
+ "hls_filename": "-%06d.ts"
+ },
+ "ndi": {
+ "name": "stream10",
+ "group": "",
+ "enable": false
+ },
+ "ts": {
+ "tsSize": 1316,
+ "mpegts_service_id": 1,
+ "mpegts_original_network_id": 1,
+ "mpegts_transport_stream_id": 1,
+ "mpegts_pmt_start_pid": 4096,
+ "mpegts_start_pid": 100
+ },
+ "output": {
+ "enable": true,
+ "vid": 0,
+ "ui": false,
+ "lowLatency": false,
+ "output": "1080P60",
+ "type": "hdmi",
+ "rotate": 0,
+ "src": 0,
+ "csc": {
+ "matrix": "identity",
+ "contrast": "50",
+ "hue": "50",
+ "luma": "50",
+ "saturation": "50"
+ }
+ },
+ "output2": {
+ "enable": false,
+ "vid": 1,
+ "ui": false,
+ "lowLatency": false,
+ "output": "1080P60",
+ "type": "vga",
+ "rotate": 0,
+ "src": 10,
+ "csc": {
+ "matrix": "identity",
+ "contrast": "50",
+ "hue": "50",
+ "luma": "50",
+ "saturation": "50"
+ }
},
- "overlay": [],
"srcV": [
- "0",
- "1",
- "-1",
- "-1"
+ 0,
+ 1,
+ 2,
+ 3
],
"srcA": [
- "0",
- "1"
+ 0
],
"layout": [
{
@@ -2071,4 +1629,4 @@
}
]
}
-]
+]
\ No newline at end of file
diff --git a/rootfs/link/fac/SH/config/default/config.json b/rootfs/link/fac/SH/config/default/config.json
index 0443880..aecf3c3 100644
--- a/rootfs/link/fac/SH/config/default/config.json
+++ b/rootfs/link/fac/SH/config/default/config.json
@@ -4,107 +4,13 @@
"name": "SDI",
"type": "vi",
"enable": true,
- "enable2": true,
- "interface": "SDI",
- "cap": {
- "deinterlace": false,
- "rotate": 0,
- "crop": {
- "L": 0,
- "R": 0,
- "T": 0,
- "B": 0
- },
- "ntsc": false
- },
+ "enable2": false,
"encv": {
- "roi": [
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- }
- ],
"width": 1920,
"height": 1080,
"framerate": 30,
"bitrate": 4000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 2,
"codec": "h264",
@@ -120,7 +26,7 @@
"height": 360,
"framerate": 30,
"bitrate": 1000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 1,
"codec": "h264",
@@ -132,7 +38,7 @@
"Pqp": 25
},
"enca": {
- "audioSrc": "sdi",
+ "audioSrc": 0,
"gain": 0,
"codec": "aac",
"samplerate": 48000,
@@ -143,15 +49,19 @@
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9001,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -167,21 +77,26 @@
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_main0"
- }
+ },
+ "suffix": "stream0"
},
"stream2": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9101,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -197,7 +112,8 @@
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_sub0"
- }
+ },
+ "suffix": "sub0"
},
"hls": {
"hls_time": 5,
@@ -218,159 +134,31 @@
"mpegts_pmt_start_pid": 4096,
"mpegts_start_pid": 100
},
- "overlay": [
- {
- "type": "text",
- "enable": false,
- "font": "/link/res/font.ttf",
- "content": "Overlay Text",
- "x": 0.1,
- "y": 0.136,
- "scale": 2.2,
- "color": "#669900",
- "alpha": 1,
- "move": -1,
- "w": 0.515
- },
- {
- "type": "pic",
- "enable": false,
- "content": "/link/res/logo.png",
- "x": 0.1,
- "y": 0.1,
- "scale": 1,
- "alpha": 1
- },
- {
- "type": "mask",
- "enable": false,
- "content": "16",
- "x": 0.4,
- "y": 0.4,
- "w": 0.2,
- "h": 0.2
- },
- {
- "type": "time",
- "x": "0.581",
- "y": "0.077",
- "h": 0,
- "w": 0,
- "scale": "3.02",
- "content": "yyyy-MM-dd hh:mm:ss",
- "enable": false,
- "color": "#ffffff",
- "alpha": 1,
- "font": "/link/res/font.ttf"
+ "interface": "SDI",
+ "cap": {
+ "deinterlace": false,
+ "rotate": 0,
+ "ntsc": false,
+ "crop": {
+ "L": 0,
+ "T": 0,
+ "R": 0,
+ "B": 0
}
- ]
+ }
},
{
"id": 1,
"name": "HDMI",
"type": "vi",
"enable": true,
- "enable2": true,
- "interface": "HDMI",
- "cap": {
- "deinterlace": false,
- "rotate": 0,
- "crop": {
- "L": 0,
- "R": 0,
- "T": 0,
- "B": 0
- },
- "ntsc": false
- },
+ "enable2": false,
"encv": {
- "roi": [
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- }
- ],
"width": 1920,
"height": 1080,
"framerate": 30,
"bitrate": 4000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 2,
"codec": "h264",
@@ -386,7 +174,7 @@
"height": 360,
"framerate": 30,
"bitrate": 1000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 1,
"codec": "h264",
@@ -398,7 +186,7 @@
"Pqp": 25
},
"enca": {
- "audioSrc": "hdmi",
+ "audioSrc": 1,
"gain": 0,
"codec": "aac",
"samplerate": 48000,
@@ -409,15 +197,19 @@
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9002,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -433,21 +225,26 @@
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_main1"
- }
+ },
+ "suffix": "stream1"
},
"stream2": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9102,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -463,7 +260,8 @@
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_sub1"
- }
+ },
+ "suffix": "sub1"
},
"hls": {
"hls_time": 5,
@@ -484,52 +282,18 @@
"mpegts_pmt_start_pid": 4096,
"mpegts_start_pid": 100
},
- "overlay": [
- {
- "type": "text",
- "enable": false,
- "font": "/link/res/font.ttf",
- "content": "Overlay Text",
- "x": 0.1,
- "y": 0.136,
- "scale": 2.2,
- "color": "#669900",
- "alpha": 1,
- "move": -1,
- "w": 0.515
- },
- {
- "type": "pic",
- "enable": false,
- "content": "/link/res/logo.png",
- "x": 0.1,
- "y": 0.1,
- "scale": 1,
- "alpha": 1
- },
- {
- "type": "mask",
- "enable": false,
- "content": "16",
- "x": 0.4,
- "y": 0.4,
- "w": 0.2,
- "h": 0.2
- },
- {
- "type": "time",
- "x": "0.581",
- "y": "0.077",
- "h": 0,
- "w": 0,
- "scale": "3.02",
- "content": "yyyy-MM-dd hh:mm:ss",
- "enable": false,
- "color": "#ffffff",
- "alpha": 1,
- "font": "/link/res/font.ttf"
+ "interface": "HDMI",
+ "cap": {
+ "deinterlace": false,
+ "rotate": 0,
+ "ntsc": false,
+ "crop": {
+ "L": 0,
+ "T": 0,
+ "R": 0,
+ "B": 0
}
- ]
+ }
},
{
"id": 2,
@@ -537,102 +301,12 @@
"type": "usb",
"enable": false,
"enable2": false,
- "alsa":"hw:1,0",
- "lnk": "1-2",
- "channels":-1,
- "alarm": {
- "enable": false,
- "thresh": 800,
- "cache": 20
- },
"encv": {
- "roi": [
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- }
- ],
"width": 1920,
"height": 1080,
"framerate": 30,
"bitrate": 4000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 2,
"codec": "close",
@@ -648,7 +322,7 @@
"height": 360,
"framerate": 30,
"bitrate": 1000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 1,
"codec": "close",
@@ -660,26 +334,30 @@
"Pqp": 25
},
"enca": {
- "audioSrc": "hdmi",
+ "audioSrc": 2,
"gain": 0,
"codec": "close",
"samplerate": 48000,
- "bitrate": 32,
+ "bitrate": 128,
"channels": 2
},
"stream": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9003,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -688,28 +366,33 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.2.1",
- "port": 3005
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_main2"
- }
+ },
+ "suffix": "stream2"
},
"stream2": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9103,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -718,14 +401,15 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.3.1",
- "port": 3005
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_sub2"
- }
+ },
+ "suffix": "sub2"
},
"hls": {
"hls_time": 5,
@@ -744,9 +428,11 @@
"mpegts_original_network_id": 1,
"mpegts_transport_stream_id": 1,
"mpegts_pmt_start_pid": 4096,
- "mpegts_start_pid": 110
+ "mpegts_start_pid": 100
},
- "overlay": []
+ "alsa": "hw:0,0",
+ "lnk": "1-2",
+ "channels": -1
},
{
"id": 3,
@@ -754,103 +440,12 @@
"type": "net",
"enable": false,
"enable2": false,
- "net": {
- "bufferMode": 0,
- "protocol": "tcp",
- "framerate": -1,
- "path": "rtsp://admin:admin@192.168.1.23/cam/realmonitor?channel=1&subtype=0",
- "decodeV": false,
- "decodeA": false,
- "minDelay": 500
- },
"encv": {
- "roi": [
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- }
- ],
"width": 1920,
"height": 1080,
"framerate": 30,
"bitrate": 4000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 2,
"codec": "close",
@@ -866,7 +461,7 @@
"height": 360,
"framerate": 30,
"bitrate": 1000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 1,
"codec": "close",
@@ -878,7 +473,7 @@
"Pqp": 25
},
"enca": {
- "audioSrc": "hdmi",
+ "audioSrc": 3,
"gain": 0,
"codec": "close",
"samplerate": 48000,
@@ -889,15 +484,19 @@
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9004,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -906,28 +505,33 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.2.1",
- "port": 3001
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_main3"
- }
+ },
+ "suffix": "stream3"
},
"stream2": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9104,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -936,14 +540,15 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.3.1",
- "port": 3001
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_sub3"
- }
+ },
+ "suffix": "sub3"
},
"hls": {
"hls_time": 5,
@@ -962,9 +567,17 @@
"mpegts_original_network_id": 1,
"mpegts_transport_stream_id": 1,
"mpegts_pmt_start_pid": 4096,
- "mpegts_start_pid": 112
+ "mpegts_start_pid": 100
},
- "overlay": []
+ "net": {
+ "bufferMode": 1,
+ "protocol": "tcp",
+ "framerate": -1,
+ "path": "rtsp://admin:admin@192.168.1.64",
+ "decodeV": false,
+ "decode": false,
+ "minDelay": 500
+ }
},
{
"id": 4,
@@ -972,103 +585,12 @@
"type": "net",
"enable": false,
"enable2": false,
- "net": {
- "bufferMode": 0,
- "protocol": "tcp",
- "framerate": -1,
- "path": "rtsp://admin:admin@192.168.1.23/cam/realmonitor?channel=1&subtype=0",
- "decodeV": false,
- "decodeA": false,
- "minDelay": 500
- },
"encv": {
- "roi": [
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- }
- ],
"width": 1920,
"height": 1080,
"framerate": 30,
"bitrate": 4000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 2,
"codec": "close",
@@ -1084,7 +606,7 @@
"height": 360,
"framerate": 30,
"bitrate": 1000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 1,
"codec": "close",
@@ -1096,7 +618,7 @@
"Pqp": 25
},
"enca": {
- "audioSrc": "hdmi",
+ "audioSrc": 4,
"gain": 0,
"codec": "close",
"samplerate": 48000,
@@ -1107,15 +629,19 @@
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9005,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -1124,28 +650,33 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.2.1",
- "port": 3002
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_main4"
- }
+ },
+ "suffix": "stream4"
},
"stream2": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9105,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -1154,14 +685,15 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.3.1",
- "port": 3002
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_sub4"
- }
+ },
+ "suffix": "sub4"
},
"hls": {
"hls_time": 5,
@@ -1180,9 +712,17 @@
"mpegts_original_network_id": 1,
"mpegts_transport_stream_id": 1,
"mpegts_pmt_start_pid": 4096,
- "mpegts_start_pid": 114
+ "mpegts_start_pid": 100
},
- "overlay": []
+ "net": {
+ "bufferMode": 1,
+ "protocol": "tcp",
+ "framerate": -1,
+ "path": "rtsp://admin:admin@192.168.1.64",
+ "decodeV": false,
+ "decode": false,
+ "minDelay": 500
+ }
},
{
"id": 5,
@@ -1190,103 +730,12 @@
"type": "net",
"enable": false,
"enable2": false,
- "net": {
- "bufferMode": 0,
- "protocol": "tcp",
- "framerate": -1,
- "path": "rtsp://admin:admin@192.168.1.23/cam/realmonitor?channel=1&subtype=0",
- "decodeV": false,
- "decodeA": false,
- "minDelay": 500
- },
"encv": {
- "roi": [
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- }
- ],
"width": 1920,
"height": 1080,
"framerate": 30,
"bitrate": 4000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 2,
"codec": "close",
@@ -1302,11 +751,11 @@
"height": 360,
"framerate": 30,
"bitrate": 1000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 1,
- "codec": "h264",
- "profile": "high",
+ "codec": "close",
+ "profile": "base",
"gopmode": 0,
"minqp": 22,
"maxqp": 36,
@@ -1314,7 +763,7 @@
"Pqp": 25
},
"enca": {
- "audioSrc": "hdmi",
+ "audioSrc": 5,
"gain": 0,
"codec": "close",
"samplerate": 48000,
@@ -1325,15 +774,19 @@
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9006,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -1342,28 +795,33 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.2.1",
- "port": 3001
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_main5"
- }
+ },
+ "suffix": "stream5"
},
"stream2": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9106,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -1372,14 +830,15 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.3.1",
- "port": 3001
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_sub5"
- }
+ },
+ "suffix": "sub5"
},
"hls": {
"hls_time": 5,
@@ -1398,9 +857,17 @@
"mpegts_original_network_id": 1,
"mpegts_transport_stream_id": 1,
"mpegts_pmt_start_pid": 4096,
- "mpegts_start_pid": 112
+ "mpegts_start_pid": 100
},
- "overlay": []
+ "net": {
+ "bufferMode": 1,
+ "protocol": "tcp",
+ "framerate": -1,
+ "path": "rtsp://admin:admin@192.168.1.64",
+ "decodeV": false,
+ "decode": false,
+ "minDelay": 500
+ }
},
{
"id": 6,
@@ -1408,103 +875,12 @@
"type": "net",
"enable": false,
"enable2": false,
- "net": {
- "bufferMode": 0,
- "protocol": "tcp",
- "framerate": -1,
- "path": "rtsp://admin:admin@192.168.1.23/cam/realmonitor?channel=1&subtype=0",
- "decodeV": false,
- "decodeA": false,
- "minDelay": 500
- },
"encv": {
- "roi": [
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- }
- ],
"width": 1920,
"height": 1080,
"framerate": 30,
"bitrate": 4000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 2,
"codec": "close",
@@ -1520,11 +896,11 @@
"height": 360,
"framerate": 30,
"bitrate": 1000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 1,
- "codec": "h264",
- "profile": "high",
+ "codec": "close",
+ "profile": "base",
"gopmode": 0,
"minqp": 22,
"maxqp": 36,
@@ -1532,7 +908,7 @@
"Pqp": 25
},
"enca": {
- "audioSrc": "hdmi",
+ "audioSrc": 6,
"gain": 0,
"codec": "close",
"samplerate": 48000,
@@ -1543,15 +919,19 @@
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9007,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -1560,28 +940,33 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.2.1",
- "port": 3001
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_main6"
- }
+ },
+ "suffix": "stream6"
},
"stream2": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9107,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -1590,14 +975,15 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.3.1",
- "port": 3001
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_sub6"
- }
+ },
+ "suffix": "sub6"
},
"hls": {
"hls_time": 5,
@@ -1616,9 +1002,17 @@
"mpegts_original_network_id": 1,
"mpegts_transport_stream_id": 1,
"mpegts_pmt_start_pid": 4096,
- "mpegts_start_pid": 112
+ "mpegts_start_pid": 100
},
- "overlay": []
+ "net": {
+ "bufferMode": 1,
+ "protocol": "tcp",
+ "framerate": -1,
+ "path": "rtsp://admin:admin@192.168.1.64",
+ "decodeV": false,
+ "decode": false,
+ "minDelay": 500
+ }
},
{
"id": 7,
@@ -1626,22 +1020,23 @@
"type": "ndi",
"enable": false,
"enable2": false,
- "ndirecv": {
- "name": ""
- },
"stream": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9008,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -1657,21 +1052,26 @@
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_main7"
- }
+ },
+ "suffix": "stream7"
},
"stream2": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9108,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -1687,7 +1087,8 @@
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_sub7"
- }
+ },
+ "suffix": "sub7"
},
"hls": {
"hls_time": 5,
@@ -1708,7 +1109,9 @@
"mpegts_pmt_start_pid": 4096,
"mpegts_start_pid": 100
},
- "overlay": []
+ "ndirecv": {
+ "name": ""
+ }
},
{
"id": 8,
@@ -1716,20 +1119,63 @@
"type": "file",
"enable": false,
"enable2": false,
- "file": [],
+ "encv": {
+ "width": 1920,
+ "height": 1080,
+ "framerate": 30,
+ "bitrate": 4000,
+ "rcmode": "cbr",
+ "lowLatency": false,
+ "gop": 2,
+ "codec": "close",
+ "profile": "base",
+ "gopmode": 0,
+ "minqp": 22,
+ "maxqp": 36,
+ "Iqp": 25,
+ "Pqp": 25
+ },
+ "encv2": {
+ "width": 640,
+ "height": 360,
+ "framerate": 30,
+ "bitrate": 1000,
+ "rcmode": "cbr",
+ "lowLatency": false,
+ "gop": 1,
+ "codec": "close",
+ "profile": "base",
+ "gopmode": 0,
+ "minqp": 22,
+ "maxqp": 36,
+ "Iqp": 25,
+ "Pqp": 25
+ },
+ "enca": {
+ "audioSrc": 8,
+ "gain": 0,
+ "codec": "close",
+ "samplerate": 48000,
+ "bitrate": 128,
+ "channels": 2
+ },
"stream": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9009,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -1738,28 +1184,33 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.2.1",
- "port": 3003
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_main8"
- }
+ },
+ "suffix": "stream8"
},
"stream2": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9109,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -1768,14 +1219,15 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.3.1",
- "port": 3003
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_sub8"
- }
+ },
+ "suffix": "sub8"
},
"hls": {
"hls_time": 5,
@@ -1794,108 +1246,28 @@
"mpegts_original_network_id": 1,
"mpegts_transport_stream_id": 1,
"mpegts_pmt_start_pid": 4096,
- "mpegts_start_pid": 114
+ "mpegts_start_pid": 100
},
- "overlay": []
+ "decodeV": false,
+ "decodeA": false,
+ "file": []
},
{
"id": 9,
- "name": "Mix",
- "type": "mix",
- "enable": true,
- "enable2": true,
+ "name": "ColorKey",
+ "type": "colorKey",
+ "enable": false,
+ "enable2": false,
"encv": {
- "roi": [
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- }
- ],
"width": 1920,
"height": 1080,
"framerate": 30,
"bitrate": 4000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 2,
- "codec": "h264",
- "profile": "high",
+ "codec": "close",
+ "profile": "base",
"gopmode": 0,
"minqp": 22,
"maxqp": 36,
@@ -1907,11 +1279,11 @@
"height": 360,
"framerate": 30,
"bitrate": 1000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 1,
- "codec": "h264",
- "profile": "high",
+ "codec": "close",
+ "profile": "base",
"gopmode": 0,
"minqp": 22,
"maxqp": 36,
@@ -1919,46 +1291,30 @@
"Pqp": 25
},
"enca": {
- "codec": "aac",
+ "audioSrc": 9,
+ "gain": 0,
+ "codec": "close",
"samplerate": 48000,
"bitrate": 128,
- "channels": 2,
- "audioSrc": "hdmi",
- "gain": 0
- },
- "output": {
- "enable": true,
- "src": 9,
- "ui": false,
- "lowLatency": false,
- "output": "1080P60",
- "type": "hdmi",
- "rotate": 0,
- "vid": 0
- },
- "output2": {
- "enable": false,
- "src": 0,
- "ui": false,
- "lowLatency": false,
- "output": "1080P60",
- "type": "vga",
- "rotate": 0,
- "vid": 1
+ "channels": 2
},
"stream": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9010,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -1967,28 +1323,33 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.2.1",
- "port": 3004
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_main9"
- }
+ },
+ "suffix": "stream9"
},
"stream2": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9110,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -1997,14 +1358,15 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.3.1",
- "port": 3004
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_sub9"
- }
+ },
+ "suffix": "sub9"
},
"hls": {
"hls_time": 5,
@@ -2023,18 +1385,214 @@
"mpegts_original_network_id": 1,
"mpegts_transport_stream_id": 1,
"mpegts_pmt_start_pid": 4096,
- "mpegts_start_pid": 134
+ "mpegts_start_pid": 100
+ },
+ "colorKey": {
+ "point": [
+ {
+ "x": 0.2,
+ "y": 0.2
+ },
+ {
+ "x": 0.8,
+ "y": 0.2
+ },
+ {
+ "x": 0.2,
+ "y": 0.8
+ },
+ {
+ "x": 0.8,
+ "y": 0.8
+ }
+ ],
+ "autoUpdate": false,
+ "tolerance": 20,
+ "srcA": 0,
+ "srcB": {
+ "type": "img",
+ "path": "/link/res/background.jpg",
+ "id": 2
+ }
+ }
+ },
+ {
+ "id": 10,
+ "name": "Mix",
+ "type": "mix",
+ "enable": true,
+ "enable2": false,
+ "encv": {
+ "width": 1920,
+ "height": 1080,
+ "framerate": 30,
+ "bitrate": 4000,
+ "rcmode": "cbr",
+ "lowLatency": false,
+ "gop": 2,
+ "codec": "h264",
+ "profile": "high",
+ "gopmode": 0,
+ "minqp": 22,
+ "maxqp": 36,
+ "Iqp": 25,
+ "Pqp": 25
+ },
+ "encv2": {
+ "width": 640,
+ "height": 360,
+ "framerate": 30,
+ "bitrate": 1000,
+ "rcmode": "cbr",
+ "lowLatency": false,
+ "gop": 1,
+ "codec": "h264",
+ "profile": "high",
+ "gopmode": 0,
+ "minqp": 22,
+ "maxqp": 36,
+ "Iqp": 25,
+ "Pqp": 25
+ },
+ "enca": {
+ "audioSrc": 10,
+ "gain": 0,
+ "codec": "aac",
+ "samplerate": 48000,
+ "bitrate": 128,
+ "channels": 2
+ },
+ "stream": {
+ "http": false,
+ "hls": false,
+ "rtmp": false,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
+ "srt": {
+ "enable": false,
+ "mode": "listener",
+ "ip": "127.0.0.1",
+ "port": 9011,
+ "latency": 50,
+ "passwd": ""
+ },
+ "udp": {
+ "rtp": false,
+ "ttl": 5,
+ "flowCtrl": true,
+ "bandwidth": 100,
+ "enable": false,
+ "ip": "233.233.2.1",
+ "port": 3000
+ },
+ "push": {
+ "format": "auto",
+ "enable": false,
+ "hevc_id": 12,
+ "path": "rtmp://127.0.0.1/live/test_main10"
+ },
+ "suffix": "stream10"
+ },
+ "stream2": {
+ "http": false,
+ "hls": false,
+ "rtmp": false,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
+ "srt": {
+ "enable": false,
+ "mode": "listener",
+ "ip": "127.0.0.1",
+ "port": 9111,
+ "latency": 50,
+ "passwd": ""
+ },
+ "udp": {
+ "rtp": false,
+ "ttl": 5,
+ "flowCtrl": true,
+ "bandwidth": 100,
+ "enable": false,
+ "ip": "233.233.3.1",
+ "port": 3000
+ },
+ "push": {
+ "format": "auto",
+ "enable": false,
+ "hevc_id": 12,
+ "path": "rtmp://127.0.0.1/live/test_sub10"
+ },
+ "suffix": "sub10"
+ },
+ "hls": {
+ "hls_time": 5,
+ "hls_list_size": 5,
+ "hls_base_url": "/hls/",
+ "hls_filename": "-%06d.ts"
+ },
+ "ndi": {
+ "name": "stream10",
+ "group": "",
+ "enable": false
+ },
+ "ts": {
+ "tsSize": 1316,
+ "mpegts_service_id": 1,
+ "mpegts_original_network_id": 1,
+ "mpegts_transport_stream_id": 1,
+ "mpegts_pmt_start_pid": 4096,
+ "mpegts_start_pid": 100
+ },
+ "output": {
+ "enable": true,
+ "vid": 0,
+ "ui": false,
+ "lowLatency": false,
+ "output": "1080P60",
+ "type": "hdmi",
+ "rotate": 0,
+ "src": 0,
+ "csc": {
+ "matrix": "identity",
+ "contrast": "50",
+ "hue": "50",
+ "luma": "50",
+ "saturation": "50"
+ }
+ },
+ "output2": {
+ "enable": false,
+ "vid": 1,
+ "ui": false,
+ "lowLatency": false,
+ "output": "1080P60",
+ "type": "vga",
+ "rotate": 0,
+ "src": 10,
+ "csc": {
+ "matrix": "identity",
+ "contrast": "50",
+ "hue": "50",
+ "luma": "50",
+ "saturation": "50"
+ }
},
- "overlay": [],
"srcV": [
- "0",
- "1",
- "-1",
- "-1"
+ 0,
+ 1,
+ 2,
+ 3
],
"srcA": [
- "0",
- "1"
+ 0
],
"layout": [
{
@@ -2071,4 +1629,4 @@
}
]
}
-]
+]
\ No newline at end of file
diff --git a/rootfs/link/fac/SH/config/default/group.json b/rootfs/link/fac/SH/config/default/group.json
new file mode 100644
index 0000000..37eab9c
--- /dev/null
+++ b/rootfs/link/fac/SH/config/default/group.json
@@ -0,0 +1,5 @@
+{
+ "type":"ENCSH",
+ "groupId":0,
+ "order":[]
+}
diff --git a/rootfs/link/fac/SH/config/group.json b/rootfs/link/fac/SH/config/group.json
new file mode 100644
index 0000000..37eab9c
--- /dev/null
+++ b/rootfs/link/fac/SH/config/group.json
@@ -0,0 +1,5 @@
+{
+ "type":"ENCSH",
+ "groupId":0,
+ "order":[]
+}
diff --git a/rootfs/link/fac/SH/config/hardware.json b/rootfs/link/fac/SH/config/hardware.json
new file mode 100644
index 0000000..6a958f9
--- /dev/null
+++ b/rootfs/link/fac/SH/config/hardware.json
@@ -0,0 +1,56 @@
+{
+ "fac":"SH",
+ "model":"ENCSH",
+ "chip":"HI3521DV100",
+ "interfaceV":[
+ {"name":"SDI","type":"SDI"},
+ {"name":"HDMI","type":"HDMI"}
+ ],
+ "capability":{
+ "decode":{
+ "channels":4
+ },
+ "encode":{
+ "maxSize":"4K",
+ "maxPixel":373248000,
+ "BFrame":false
+ },
+ "maxInput":"4K30",
+ "maxOutput":"4K30",
+ "extraVo":"VGA",
+ "eth1":false
+ },
+ "function":{
+ "record":true,
+ "carousel":true,
+ "overlay":true,
+ "dhcp":true,
+ "wifi":true,
+ "videoOut":true,
+ "line":true,
+ "mix":true,
+ "portCtrl":true,
+ "ndi":true,
+ "srt":true,
+ "hls":true,
+ "serialport":true,
+ "button":false,
+ "intercom":true,
+ "remote":false,
+ "rtspAuth":true,
+ "netPic":true
+ },
+ "other":{
+ "help":"120.78.2.184"
+ },
+ "gpio":{
+ "type":"himm",
+ "name":"gpio0_6",
+ "mux":"himm",
+ "dir":"himm 0x12150400 0x89",
+ "addr":"0x12150100"
+ },
+ "usb":{
+ "lnk":"1-2"
+ }
+}
diff --git a/rootfs/link/fac/SH/config/videoBuffer.json b/rootfs/link/fac/SH/config/videoBuffer.json
index 3810091..2c13deb 100644
--- a/rootfs/link/fac/SH/config/videoBuffer.json
+++ b/rootfs/link/fac/SH/config/videoBuffer.json
@@ -3,21 +3,21 @@
"default":{
"sys":[
{"size":12441600,"cnt":8},
- {"size":3110400,"cnt":55},
+ {"size":3133440,"cnt":55},
{"size":345600,"cnt":30}
]
},
"4K_DEC":{
"sys":[
{"size":12441600,"cnt":8},
- {"size":3110400,"cnt":55},
+ {"size":3133440,"cnt":55},
{"size":345600,"cnt":30}
]
},
"4K_ENC":{
"sys":[
{"size":12441600,"cnt":20},
- {"size":3110400,"cnt":40},
+ {"size":3133440,"cnt":40},
{"size":345600,"cnt":20}
]
}
diff --git a/rootfs/link/fac/V2/config/config.json b/rootfs/link/fac/V2/config/config.json
index c4332b6..c84331a 100644
--- a/rootfs/link/fac/V2/config/config.json
+++ b/rootfs/link/fac/V2/config/config.json
@@ -4,107 +4,13 @@
"name": "HDMI",
"type": "vi",
"enable": true,
- "enable2": true,
- "interface": "HDMI",
- "cap": {
- "deinterlace": false,
- "rotate": 0,
- "crop": {
- "L": 0,
- "R": 0,
- "T": 0,
- "B": 0
- },
- "ntsc": false
- },
+ "enable2": false,
"encv": {
- "roi": [
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- }
- ],
"width": 1920,
"height": 1080,
"framerate": 30,
"bitrate": 4000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 2,
"codec": "h264",
@@ -120,7 +26,7 @@
"height": 360,
"framerate": 30,
"bitrate": 1000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 1,
"codec": "h264",
@@ -132,7 +38,7 @@
"Pqp": 25
},
"enca": {
- "audioSrc": "hdmi",
+ "audioSrc": 0,
"gain": 0,
"codec": "aac",
"samplerate": 48000,
@@ -143,15 +49,19 @@
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9001,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -167,21 +77,26 @@
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_main0"
- }
+ },
+ "suffix": "stream0"
},
"stream2": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9101,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -197,7 +112,8 @@
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_sub0"
- }
+ },
+ "suffix": "sub0"
},
"hls": {
"hls_time": 5,
@@ -218,52 +134,18 @@
"mpegts_pmt_start_pid": 4096,
"mpegts_start_pid": 100
},
- "overlay": [
- {
- "type": "text",
- "enable": false,
- "font": "/link/res/font.ttf",
- "content": "Overlay Text",
- "x": 0.1,
- "y": 0.136,
- "scale": 2.2,
- "color": "#669900",
- "alpha": 1,
- "move": -1,
- "w": 0.515
- },
- {
- "type": "pic",
- "enable": false,
- "content": "/link/res/logo.png",
- "x": 0.1,
- "y": 0.1,
- "scale": 1,
- "alpha": 1
- },
- {
- "type": "mask",
- "enable": false,
- "content": "16",
- "x": 0.4,
- "y": 0.4,
- "w": 0.2,
- "h": 0.2
- },
- {
- "type": "time",
- "x": "0.581",
- "y": "0.077",
- "h": 0,
- "w": 0,
- "scale": "3.02",
- "content": "yyyy-MM-dd hh:mm:ss",
- "enable": false,
- "color": "#ffffff",
- "alpha": 1,
- "font": "/link/res/font.ttf"
+ "interface": "HDMI",
+ "cap": {
+ "deinterlace": false,
+ "rotate": 0,
+ "ntsc": false,
+ "crop": {
+ "L": 0,
+ "T": 0,
+ "R": 0,
+ "B": 0
}
- ]
+ }
},
{
"id": 1,
@@ -271,102 +153,12 @@
"type": "usb",
"enable": false,
"enable2": false,
- "alsa": "hw:0,0",
- "lnk": "1-1",
- "channels":-1,
- "alarm": {
- "enable": false,
- "thresh": 800,
- "cache": 20
- },
"encv": {
- "roi": [
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- }
- ],
"width": 1920,
"height": 1080,
"framerate": 30,
"bitrate": 4000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 2,
"codec": "close",
@@ -382,7 +174,7 @@
"height": 360,
"framerate": 30,
"bitrate": 1000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 1,
"codec": "close",
@@ -394,26 +186,30 @@
"Pqp": 25
},
"enca": {
- "audioSrc": "hdmi",
+ "audioSrc": 1,
"gain": 0,
"codec": "close",
"samplerate": 48000,
- "bitrate": 32,
+ "bitrate": 128,
"channels": 2
},
"stream": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9002,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -422,28 +218,33 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.2.1",
- "port": 3005
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_main1"
- }
+ },
+ "suffix": "stream1"
},
"stream2": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9102,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -452,14 +253,15 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.3.1",
- "port": 3005
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_sub1"
- }
+ },
+ "suffix": "sub1"
},
"hls": {
"hls_time": 5,
@@ -478,9 +280,11 @@
"mpegts_original_network_id": 1,
"mpegts_transport_stream_id": 1,
"mpegts_pmt_start_pid": 4096,
- "mpegts_start_pid": 110
+ "mpegts_start_pid": 100
},
- "overlay": []
+ "alsa": "hw:0,0",
+ "lnk": "1-1",
+ "channels": -1
},
{
"id": 2,
@@ -488,103 +292,12 @@
"type": "net",
"enable": false,
"enable2": false,
- "net": {
- "bufferMode": 0,
- "protocol": "tcp",
- "framerate": -1,
- "path": "rtsp://admin:admin@192.168.1.23/cam/realmonitor?channel=1&subtype=0",
- "decodeV": false,
- "decodeA": false,
- "minDelay": 500
- },
"encv": {
- "roi": [
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- }
- ],
"width": 1920,
"height": 1080,
"framerate": 30,
"bitrate": 4000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 2,
"codec": "close",
@@ -600,7 +313,7 @@
"height": 360,
"framerate": 30,
"bitrate": 1000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 1,
"codec": "close",
@@ -612,7 +325,7 @@
"Pqp": 25
},
"enca": {
- "audioSrc": "hdmi",
+ "audioSrc": 2,
"gain": 0,
"codec": "close",
"samplerate": 48000,
@@ -623,15 +336,19 @@
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9003,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -640,28 +357,33 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.2.1",
- "port": 3001
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_main2"
- }
+ },
+ "suffix": "stream2"
},
"stream2": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9103,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -670,14 +392,15 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.3.1",
- "port": 3001
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_sub2"
- }
+ },
+ "suffix": "sub2"
},
"hls": {
"hls_time": 5,
@@ -696,9 +419,17 @@
"mpegts_original_network_id": 1,
"mpegts_transport_stream_id": 1,
"mpegts_pmt_start_pid": 4096,
- "mpegts_start_pid": 112
+ "mpegts_start_pid": 100
},
- "overlay": []
+ "net": {
+ "bufferMode": 1,
+ "protocol": "tcp",
+ "framerate": -1,
+ "path": "rtsp://admin:admin@192.168.1.64",
+ "decodeV": false,
+ "decode": false,
+ "minDelay": 500
+ }
},
{
"id": 3,
@@ -706,103 +437,12 @@
"type": "net",
"enable": false,
"enable2": false,
- "net": {
- "bufferMode": 0,
- "protocol": "tcp",
- "framerate": -1,
- "path": "rtsp://admin:admin@192.168.1.23/cam/realmonitor?channel=1&subtype=0",
- "decodeV": false,
- "decodeA": false,
- "minDelay": 500
- },
"encv": {
- "roi": [
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- }
- ],
"width": 1920,
"height": 1080,
"framerate": 30,
"bitrate": 4000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 2,
"codec": "close",
@@ -818,7 +458,7 @@
"height": 360,
"framerate": 30,
"bitrate": 1000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 1,
"codec": "close",
@@ -830,7 +470,7 @@
"Pqp": 25
},
"enca": {
- "audioSrc": "hdmi",
+ "audioSrc": 3,
"gain": 0,
"codec": "close",
"samplerate": 48000,
@@ -841,15 +481,19 @@
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9004,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -858,28 +502,33 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.2.1",
- "port": 3002
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_main3"
- }
+ },
+ "suffix": "stream3"
},
"stream2": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9104,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -888,14 +537,15 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.3.1",
- "port": 3002
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_sub3"
- }
+ },
+ "suffix": "sub3"
},
"hls": {
"hls_time": 5,
@@ -914,9 +564,17 @@
"mpegts_original_network_id": 1,
"mpegts_transport_stream_id": 1,
"mpegts_pmt_start_pid": 4096,
- "mpegts_start_pid": 114
+ "mpegts_start_pid": 100
},
- "overlay": []
+ "net": {
+ "bufferMode": 1,
+ "protocol": "tcp",
+ "framerate": -1,
+ "path": "rtsp://admin:admin@192.168.1.64",
+ "decodeV": false,
+ "decode": false,
+ "minDelay": 500
+ }
},
{
"id": 4,
@@ -924,22 +582,23 @@
"type": "ndi",
"enable": false,
"enable2": false,
- "ndirecv": {
- "name": ""
- },
"stream": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9005,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -955,21 +614,26 @@
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_main4"
- }
+ },
+ "suffix": "stream4"
},
"stream2": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9105,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -985,7 +649,8 @@
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_sub4"
- }
+ },
+ "suffix": "sub4"
},
"hls": {
"hls_time": 5,
@@ -1006,7 +671,9 @@
"mpegts_pmt_start_pid": 4096,
"mpegts_start_pid": 100
},
- "overlay": []
+ "ndirecv": {
+ "name": ""
+ }
},
{
"id": 5,
@@ -1014,20 +681,63 @@
"type": "file",
"enable": false,
"enable2": false,
- "file": [],
+ "encv": {
+ "width": 1920,
+ "height": 1080,
+ "framerate": 30,
+ "bitrate": 4000,
+ "rcmode": "cbr",
+ "lowLatency": false,
+ "gop": 2,
+ "codec": "close",
+ "profile": "base",
+ "gopmode": 0,
+ "minqp": 22,
+ "maxqp": 36,
+ "Iqp": 25,
+ "Pqp": 25
+ },
+ "encv2": {
+ "width": 640,
+ "height": 360,
+ "framerate": 30,
+ "bitrate": 1000,
+ "rcmode": "cbr",
+ "lowLatency": false,
+ "gop": 1,
+ "codec": "close",
+ "profile": "base",
+ "gopmode": 0,
+ "minqp": 22,
+ "maxqp": 36,
+ "Iqp": 25,
+ "Pqp": 25
+ },
+ "enca": {
+ "audioSrc": 5,
+ "gain": 0,
+ "codec": "close",
+ "samplerate": 48000,
+ "bitrate": 128,
+ "channels": 2
+ },
"stream": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9006,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -1036,28 +746,33 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.2.1",
- "port": 3003
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_main5"
- }
+ },
+ "suffix": "stream5"
},
"stream2": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9106,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -1066,14 +781,15 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.3.1",
- "port": 3003
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_sub5"
- }
+ },
+ "suffix": "sub5"
},
"hls": {
"hls_time": 5,
@@ -1092,108 +808,28 @@
"mpegts_original_network_id": 1,
"mpegts_transport_stream_id": 1,
"mpegts_pmt_start_pid": 4096,
- "mpegts_start_pid": 114
+ "mpegts_start_pid": 100
},
- "overlay": []
+ "decodeV": false,
+ "decodeA": false,
+ "file": []
},
{
"id": 6,
- "name": "Mix",
- "type": "mix",
+ "name": "ColorKey",
+ "type": "colorKey",
"enable": false,
"enable2": false,
"encv": {
- "roi": [
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- }
- ],
"width": 1920,
"height": 1080,
"framerate": 30,
"bitrate": 4000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 2,
- "codec": "h264",
- "profile": "high",
+ "codec": "close",
+ "profile": "base",
"gopmode": 0,
"minqp": 22,
"maxqp": 36,
@@ -1205,11 +841,11 @@
"height": 360,
"framerate": 30,
"bitrate": 1000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 1,
- "codec": "h264",
- "profile": "high",
+ "codec": "close",
+ "profile": "base",
"gopmode": 0,
"minqp": 22,
"maxqp": 36,
@@ -1217,46 +853,30 @@
"Pqp": 25
},
"enca": {
- "codec": "aac",
+ "audioSrc": 6,
+ "gain": 0,
+ "codec": "close",
"samplerate": 48000,
"bitrate": 128,
- "channels": 2,
- "audioSrc": "hdmi",
- "gain": 0
- },
- "output": {
- "enable": true,
- "src": 0,
- "ui": false,
- "lowLatency": false,
- "output": "1080P60",
- "type": "hdmi",
- "rotate": 0,
- "vid": 0
- },
- "output2": {
- "enable": false,
- "src": 0,
- "ui": false,
- "lowLatency": false,
- "output": "1080P60",
- "type": "vga",
- "rotate": 0,
- "vid": 1
+ "channels": 2
},
"stream": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9007,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -1265,28 +885,33 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.2.1",
- "port": 3004
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_main6"
- }
+ },
+ "suffix": "stream6"
},
"stream2": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9107,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -1295,14 +920,15 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.3.1",
- "port": 3004
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_sub6"
- }
+ },
+ "suffix": "sub6"
},
"hls": {
"hls_time": 5,
@@ -1321,17 +947,214 @@
"mpegts_original_network_id": 1,
"mpegts_transport_stream_id": 1,
"mpegts_pmt_start_pid": 4096,
- "mpegts_start_pid": 134
+ "mpegts_start_pid": 100
+ },
+ "colorKey": {
+ "point": [
+ {
+ "x": 0.2,
+ "y": 0.2
+ },
+ {
+ "x": 0.8,
+ "y": 0.2
+ },
+ {
+ "x": 0.2,
+ "y": 0.8
+ },
+ {
+ "x": 0.8,
+ "y": 0.8
+ }
+ ],
+ "autoUpdate": false,
+ "tolerance": 20,
+ "srcA": 0,
+ "srcB": {
+ "type": "img",
+ "path": "/link/res/background.jpg",
+ "id": 2
+ }
+ }
+ },
+ {
+ "id": 7,
+ "name": "Mix",
+ "type": "mix",
+ "enable": false,
+ "enable2": false,
+ "encv": {
+ "width": 1920,
+ "height": 1080,
+ "framerate": 30,
+ "bitrate": 4000,
+ "rcmode": "cbr",
+ "lowLatency": false,
+ "gop": 2,
+ "codec": "h264",
+ "profile": "high",
+ "gopmode": 0,
+ "minqp": 22,
+ "maxqp": 36,
+ "Iqp": 25,
+ "Pqp": 25
+ },
+ "encv2": {
+ "width": 640,
+ "height": 360,
+ "framerate": 30,
+ "bitrate": 1000,
+ "rcmode": "cbr",
+ "lowLatency": false,
+ "gop": 1,
+ "codec": "h264",
+ "profile": "high",
+ "gopmode": 0,
+ "minqp": 22,
+ "maxqp": 36,
+ "Iqp": 25,
+ "Pqp": 25
+ },
+ "enca": {
+ "audioSrc": 7,
+ "gain": 0,
+ "codec": "aac",
+ "samplerate": 48000,
+ "bitrate": 128,
+ "channels": 2
+ },
+ "stream": {
+ "http": false,
+ "hls": false,
+ "rtmp": false,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
+ "srt": {
+ "enable": false,
+ "mode": "listener",
+ "ip": "127.0.0.1",
+ "port": 9008,
+ "latency": 50,
+ "passwd": ""
+ },
+ "udp": {
+ "rtp": false,
+ "ttl": 5,
+ "flowCtrl": true,
+ "bandwidth": 100,
+ "enable": false,
+ "ip": "233.233.2.1",
+ "port": 3000
+ },
+ "push": {
+ "format": "auto",
+ "enable": false,
+ "hevc_id": 12,
+ "path": "rtmp://127.0.0.1/live/test_main7"
+ },
+ "suffix": "stream7"
+ },
+ "stream2": {
+ "http": false,
+ "hls": false,
+ "rtmp": false,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
+ "srt": {
+ "enable": false,
+ "mode": "listener",
+ "ip": "127.0.0.1",
+ "port": 9108,
+ "latency": 50,
+ "passwd": ""
+ },
+ "udp": {
+ "rtp": false,
+ "ttl": 5,
+ "flowCtrl": true,
+ "bandwidth": 100,
+ "enable": false,
+ "ip": "233.233.3.1",
+ "port": 3000
+ },
+ "push": {
+ "format": "auto",
+ "enable": false,
+ "hevc_id": 12,
+ "path": "rtmp://127.0.0.1/live/test_sub7"
+ },
+ "suffix": "sub7"
+ },
+ "hls": {
+ "hls_time": 5,
+ "hls_list_size": 5,
+ "hls_base_url": "/hls/",
+ "hls_filename": "-%06d.ts"
+ },
+ "ndi": {
+ "name": "stream7",
+ "group": "",
+ "enable": false
+ },
+ "ts": {
+ "tsSize": 1316,
+ "mpegts_service_id": 1,
+ "mpegts_original_network_id": 1,
+ "mpegts_transport_stream_id": 1,
+ "mpegts_pmt_start_pid": 4096,
+ "mpegts_start_pid": 100
+ },
+ "output": {
+ "enable": true,
+ "vid": 0,
+ "ui": false,
+ "lowLatency": false,
+ "output": "1080P60",
+ "type": "hdmi",
+ "rotate": 0,
+ "src": 0,
+ "csc": {
+ "matrix": "identity",
+ "contrast": "50",
+ "hue": "50",
+ "luma": "50",
+ "saturation": "50"
+ }
+ },
+ "output2": {
+ "enable": false,
+ "vid": 1,
+ "ui": false,
+ "lowLatency": false,
+ "output": "1080P60",
+ "type": "vga",
+ "rotate": 0,
+ "src": 7,
+ "csc": {
+ "matrix": "identity",
+ "contrast": "50",
+ "hue": "50",
+ "luma": "50",
+ "saturation": "50"
+ }
},
- "overlay": [],
"srcV": [
- "0",
- "-1",
- "-1",
- "-1"
+ 0,
+ 1,
+ 2,
+ 3
],
"srcA": [
- "0"
+ 0
],
"layout": [
{
@@ -1368,4 +1191,4 @@
}
]
}
-]
+]
\ No newline at end of file
diff --git a/rootfs/link/fac/V2/config/default/config.json b/rootfs/link/fac/V2/config/default/config.json
index c4332b6..c84331a 100644
--- a/rootfs/link/fac/V2/config/default/config.json
+++ b/rootfs/link/fac/V2/config/default/config.json
@@ -4,107 +4,13 @@
"name": "HDMI",
"type": "vi",
"enable": true,
- "enable2": true,
- "interface": "HDMI",
- "cap": {
- "deinterlace": false,
- "rotate": 0,
- "crop": {
- "L": 0,
- "R": 0,
- "T": 0,
- "B": 0
- },
- "ntsc": false
- },
+ "enable2": false,
"encv": {
- "roi": [
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- }
- ],
"width": 1920,
"height": 1080,
"framerate": 30,
"bitrate": 4000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 2,
"codec": "h264",
@@ -120,7 +26,7 @@
"height": 360,
"framerate": 30,
"bitrate": 1000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 1,
"codec": "h264",
@@ -132,7 +38,7 @@
"Pqp": 25
},
"enca": {
- "audioSrc": "hdmi",
+ "audioSrc": 0,
"gain": 0,
"codec": "aac",
"samplerate": 48000,
@@ -143,15 +49,19 @@
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9001,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -167,21 +77,26 @@
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_main0"
- }
+ },
+ "suffix": "stream0"
},
"stream2": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9101,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -197,7 +112,8 @@
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_sub0"
- }
+ },
+ "suffix": "sub0"
},
"hls": {
"hls_time": 5,
@@ -218,52 +134,18 @@
"mpegts_pmt_start_pid": 4096,
"mpegts_start_pid": 100
},
- "overlay": [
- {
- "type": "text",
- "enable": false,
- "font": "/link/res/font.ttf",
- "content": "Overlay Text",
- "x": 0.1,
- "y": 0.136,
- "scale": 2.2,
- "color": "#669900",
- "alpha": 1,
- "move": -1,
- "w": 0.515
- },
- {
- "type": "pic",
- "enable": false,
- "content": "/link/res/logo.png",
- "x": 0.1,
- "y": 0.1,
- "scale": 1,
- "alpha": 1
- },
- {
- "type": "mask",
- "enable": false,
- "content": "16",
- "x": 0.4,
- "y": 0.4,
- "w": 0.2,
- "h": 0.2
- },
- {
- "type": "time",
- "x": "0.581",
- "y": "0.077",
- "h": 0,
- "w": 0,
- "scale": "3.02",
- "content": "yyyy-MM-dd hh:mm:ss",
- "enable": false,
- "color": "#ffffff",
- "alpha": 1,
- "font": "/link/res/font.ttf"
+ "interface": "HDMI",
+ "cap": {
+ "deinterlace": false,
+ "rotate": 0,
+ "ntsc": false,
+ "crop": {
+ "L": 0,
+ "T": 0,
+ "R": 0,
+ "B": 0
}
- ]
+ }
},
{
"id": 1,
@@ -271,102 +153,12 @@
"type": "usb",
"enable": false,
"enable2": false,
- "alsa": "hw:0,0",
- "lnk": "1-1",
- "channels":-1,
- "alarm": {
- "enable": false,
- "thresh": 800,
- "cache": 20
- },
"encv": {
- "roi": [
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- }
- ],
"width": 1920,
"height": 1080,
"framerate": 30,
"bitrate": 4000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 2,
"codec": "close",
@@ -382,7 +174,7 @@
"height": 360,
"framerate": 30,
"bitrate": 1000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 1,
"codec": "close",
@@ -394,26 +186,30 @@
"Pqp": 25
},
"enca": {
- "audioSrc": "hdmi",
+ "audioSrc": 1,
"gain": 0,
"codec": "close",
"samplerate": 48000,
- "bitrate": 32,
+ "bitrate": 128,
"channels": 2
},
"stream": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9002,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -422,28 +218,33 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.2.1",
- "port": 3005
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_main1"
- }
+ },
+ "suffix": "stream1"
},
"stream2": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9102,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -452,14 +253,15 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.3.1",
- "port": 3005
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_sub1"
- }
+ },
+ "suffix": "sub1"
},
"hls": {
"hls_time": 5,
@@ -478,9 +280,11 @@
"mpegts_original_network_id": 1,
"mpegts_transport_stream_id": 1,
"mpegts_pmt_start_pid": 4096,
- "mpegts_start_pid": 110
+ "mpegts_start_pid": 100
},
- "overlay": []
+ "alsa": "hw:0,0",
+ "lnk": "1-1",
+ "channels": -1
},
{
"id": 2,
@@ -488,103 +292,12 @@
"type": "net",
"enable": false,
"enable2": false,
- "net": {
- "bufferMode": 0,
- "protocol": "tcp",
- "framerate": -1,
- "path": "rtsp://admin:admin@192.168.1.23/cam/realmonitor?channel=1&subtype=0",
- "decodeV": false,
- "decodeA": false,
- "minDelay": 500
- },
"encv": {
- "roi": [
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- }
- ],
"width": 1920,
"height": 1080,
"framerate": 30,
"bitrate": 4000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 2,
"codec": "close",
@@ -600,7 +313,7 @@
"height": 360,
"framerate": 30,
"bitrate": 1000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 1,
"codec": "close",
@@ -612,7 +325,7 @@
"Pqp": 25
},
"enca": {
- "audioSrc": "hdmi",
+ "audioSrc": 2,
"gain": 0,
"codec": "close",
"samplerate": 48000,
@@ -623,15 +336,19 @@
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9003,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -640,28 +357,33 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.2.1",
- "port": 3001
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_main2"
- }
+ },
+ "suffix": "stream2"
},
"stream2": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9103,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -670,14 +392,15 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.3.1",
- "port": 3001
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_sub2"
- }
+ },
+ "suffix": "sub2"
},
"hls": {
"hls_time": 5,
@@ -696,9 +419,17 @@
"mpegts_original_network_id": 1,
"mpegts_transport_stream_id": 1,
"mpegts_pmt_start_pid": 4096,
- "mpegts_start_pid": 112
+ "mpegts_start_pid": 100
},
- "overlay": []
+ "net": {
+ "bufferMode": 1,
+ "protocol": "tcp",
+ "framerate": -1,
+ "path": "rtsp://admin:admin@192.168.1.64",
+ "decodeV": false,
+ "decode": false,
+ "minDelay": 500
+ }
},
{
"id": 3,
@@ -706,103 +437,12 @@
"type": "net",
"enable": false,
"enable2": false,
- "net": {
- "bufferMode": 0,
- "protocol": "tcp",
- "framerate": -1,
- "path": "rtsp://admin:admin@192.168.1.23/cam/realmonitor?channel=1&subtype=0",
- "decodeV": false,
- "decodeA": false,
- "minDelay": 500
- },
"encv": {
- "roi": [
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- }
- ],
"width": 1920,
"height": 1080,
"framerate": 30,
"bitrate": 4000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 2,
"codec": "close",
@@ -818,7 +458,7 @@
"height": 360,
"framerate": 30,
"bitrate": 1000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 1,
"codec": "close",
@@ -830,7 +470,7 @@
"Pqp": 25
},
"enca": {
- "audioSrc": "hdmi",
+ "audioSrc": 3,
"gain": 0,
"codec": "close",
"samplerate": 48000,
@@ -841,15 +481,19 @@
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9004,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -858,28 +502,33 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.2.1",
- "port": 3002
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_main3"
- }
+ },
+ "suffix": "stream3"
},
"stream2": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9104,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -888,14 +537,15 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.3.1",
- "port": 3002
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_sub3"
- }
+ },
+ "suffix": "sub3"
},
"hls": {
"hls_time": 5,
@@ -914,9 +564,17 @@
"mpegts_original_network_id": 1,
"mpegts_transport_stream_id": 1,
"mpegts_pmt_start_pid": 4096,
- "mpegts_start_pid": 114
+ "mpegts_start_pid": 100
},
- "overlay": []
+ "net": {
+ "bufferMode": 1,
+ "protocol": "tcp",
+ "framerate": -1,
+ "path": "rtsp://admin:admin@192.168.1.64",
+ "decodeV": false,
+ "decode": false,
+ "minDelay": 500
+ }
},
{
"id": 4,
@@ -924,22 +582,23 @@
"type": "ndi",
"enable": false,
"enable2": false,
- "ndirecv": {
- "name": ""
- },
"stream": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9005,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -955,21 +614,26 @@
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_main4"
- }
+ },
+ "suffix": "stream4"
},
"stream2": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9105,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -985,7 +649,8 @@
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_sub4"
- }
+ },
+ "suffix": "sub4"
},
"hls": {
"hls_time": 5,
@@ -1006,7 +671,9 @@
"mpegts_pmt_start_pid": 4096,
"mpegts_start_pid": 100
},
- "overlay": []
+ "ndirecv": {
+ "name": ""
+ }
},
{
"id": 5,
@@ -1014,20 +681,63 @@
"type": "file",
"enable": false,
"enable2": false,
- "file": [],
+ "encv": {
+ "width": 1920,
+ "height": 1080,
+ "framerate": 30,
+ "bitrate": 4000,
+ "rcmode": "cbr",
+ "lowLatency": false,
+ "gop": 2,
+ "codec": "close",
+ "profile": "base",
+ "gopmode": 0,
+ "minqp": 22,
+ "maxqp": 36,
+ "Iqp": 25,
+ "Pqp": 25
+ },
+ "encv2": {
+ "width": 640,
+ "height": 360,
+ "framerate": 30,
+ "bitrate": 1000,
+ "rcmode": "cbr",
+ "lowLatency": false,
+ "gop": 1,
+ "codec": "close",
+ "profile": "base",
+ "gopmode": 0,
+ "minqp": 22,
+ "maxqp": 36,
+ "Iqp": 25,
+ "Pqp": 25
+ },
+ "enca": {
+ "audioSrc": 5,
+ "gain": 0,
+ "codec": "close",
+ "samplerate": 48000,
+ "bitrate": 128,
+ "channels": 2
+ },
"stream": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9006,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -1036,28 +746,33 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.2.1",
- "port": 3003
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_main5"
- }
+ },
+ "suffix": "stream5"
},
"stream2": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9106,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -1066,14 +781,15 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.3.1",
- "port": 3003
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_sub5"
- }
+ },
+ "suffix": "sub5"
},
"hls": {
"hls_time": 5,
@@ -1092,108 +808,28 @@
"mpegts_original_network_id": 1,
"mpegts_transport_stream_id": 1,
"mpegts_pmt_start_pid": 4096,
- "mpegts_start_pid": 114
+ "mpegts_start_pid": 100
},
- "overlay": []
+ "decodeV": false,
+ "decodeA": false,
+ "file": []
},
{
"id": 6,
- "name": "Mix",
- "type": "mix",
+ "name": "ColorKey",
+ "type": "colorKey",
"enable": false,
"enable2": false,
"encv": {
- "roi": [
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- },
- {
- "enable": false,
- "abs": false,
- "qp": -15,
- "framerate": -1,
- "x": 0.3,
- "y": 0.3,
- "w": 0.3,
- "h": 0.3
- }
- ],
"width": 1920,
"height": 1080,
"framerate": 30,
"bitrate": 4000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 2,
- "codec": "h264",
- "profile": "high",
+ "codec": "close",
+ "profile": "base",
"gopmode": 0,
"minqp": 22,
"maxqp": 36,
@@ -1205,11 +841,11 @@
"height": 360,
"framerate": 30,
"bitrate": 1000,
- "rcmode": "avbr",
+ "rcmode": "cbr",
"lowLatency": false,
"gop": 1,
- "codec": "h264",
- "profile": "high",
+ "codec": "close",
+ "profile": "base",
"gopmode": 0,
"minqp": 22,
"maxqp": 36,
@@ -1217,46 +853,30 @@
"Pqp": 25
},
"enca": {
- "codec": "aac",
+ "audioSrc": 6,
+ "gain": 0,
+ "codec": "close",
"samplerate": 48000,
"bitrate": 128,
- "channels": 2,
- "audioSrc": "hdmi",
- "gain": 0
- },
- "output": {
- "enable": true,
- "src": 0,
- "ui": false,
- "lowLatency": false,
- "output": "1080P60",
- "type": "hdmi",
- "rotate": 0,
- "vid": 0
- },
- "output2": {
- "enable": false,
- "src": 0,
- "ui": false,
- "lowLatency": false,
- "output": "1080P60",
- "type": "vga",
- "rotate": 0,
- "vid": 1
+ "channels": 2
},
"stream": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9007,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -1265,28 +885,33 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.2.1",
- "port": 3004
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_main6"
- }
+ },
+ "suffix": "stream6"
},
"stream2": {
"http": false,
"hls": false,
"rtmp": false,
- "rtsp": true,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
"srt": {
"enable": false,
"mode": "listener",
"ip": "127.0.0.1",
"port": 9107,
"latency": 50,
- "passwd": "",
- "streamid": ""
+ "passwd": ""
},
"udp": {
"rtp": false,
@@ -1295,14 +920,15 @@
"bandwidth": 100,
"enable": false,
"ip": "233.233.3.1",
- "port": 3004
+ "port": 3000
},
"push": {
"format": "auto",
"enable": false,
"hevc_id": 12,
"path": "rtmp://127.0.0.1/live/test_sub6"
- }
+ },
+ "suffix": "sub6"
},
"hls": {
"hls_time": 5,
@@ -1321,17 +947,214 @@
"mpegts_original_network_id": 1,
"mpegts_transport_stream_id": 1,
"mpegts_pmt_start_pid": 4096,
- "mpegts_start_pid": 134
+ "mpegts_start_pid": 100
+ },
+ "colorKey": {
+ "point": [
+ {
+ "x": 0.2,
+ "y": 0.2
+ },
+ {
+ "x": 0.8,
+ "y": 0.2
+ },
+ {
+ "x": 0.2,
+ "y": 0.8
+ },
+ {
+ "x": 0.8,
+ "y": 0.8
+ }
+ ],
+ "autoUpdate": false,
+ "tolerance": 20,
+ "srcA": 0,
+ "srcB": {
+ "type": "img",
+ "path": "/link/res/background.jpg",
+ "id": 2
+ }
+ }
+ },
+ {
+ "id": 7,
+ "name": "Mix",
+ "type": "mix",
+ "enable": false,
+ "enable2": false,
+ "encv": {
+ "width": 1920,
+ "height": 1080,
+ "framerate": 30,
+ "bitrate": 4000,
+ "rcmode": "cbr",
+ "lowLatency": false,
+ "gop": 2,
+ "codec": "h264",
+ "profile": "high",
+ "gopmode": 0,
+ "minqp": 22,
+ "maxqp": 36,
+ "Iqp": 25,
+ "Pqp": 25
+ },
+ "encv2": {
+ "width": 640,
+ "height": 360,
+ "framerate": 30,
+ "bitrate": 1000,
+ "rcmode": "cbr",
+ "lowLatency": false,
+ "gop": 1,
+ "codec": "h264",
+ "profile": "high",
+ "gopmode": 0,
+ "minqp": 22,
+ "maxqp": 36,
+ "Iqp": 25,
+ "Pqp": 25
+ },
+ "enca": {
+ "audioSrc": 7,
+ "gain": 0,
+ "codec": "aac",
+ "samplerate": 48000,
+ "bitrate": 128,
+ "channels": 2
+ },
+ "stream": {
+ "http": false,
+ "hls": false,
+ "rtmp": false,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
+ "srt": {
+ "enable": false,
+ "mode": "listener",
+ "ip": "127.0.0.1",
+ "port": 9008,
+ "latency": 50,
+ "passwd": ""
+ },
+ "udp": {
+ "rtp": false,
+ "ttl": 5,
+ "flowCtrl": true,
+ "bandwidth": 100,
+ "enable": false,
+ "ip": "233.233.2.1",
+ "port": 3000
+ },
+ "push": {
+ "format": "auto",
+ "enable": false,
+ "hevc_id": 12,
+ "path": "rtmp://127.0.0.1/live/test_main7"
+ },
+ "suffix": "stream7"
+ },
+ "stream2": {
+ "http": false,
+ "hls": false,
+ "rtmp": false,
+ "rtsp": {
+ "enable": true,
+ "name": "admin",
+ "passwd": "admin",
+ "auth": false
+ },
+ "srt": {
+ "enable": false,
+ "mode": "listener",
+ "ip": "127.0.0.1",
+ "port": 9108,
+ "latency": 50,
+ "passwd": ""
+ },
+ "udp": {
+ "rtp": false,
+ "ttl": 5,
+ "flowCtrl": true,
+ "bandwidth": 100,
+ "enable": false,
+ "ip": "233.233.3.1",
+ "port": 3000
+ },
+ "push": {
+ "format": "auto",
+ "enable": false,
+ "hevc_id": 12,
+ "path": "rtmp://127.0.0.1/live/test_sub7"
+ },
+ "suffix": "sub7"
+ },
+ "hls": {
+ "hls_time": 5,
+ "hls_list_size": 5,
+ "hls_base_url": "/hls/",
+ "hls_filename": "-%06d.ts"
+ },
+ "ndi": {
+ "name": "stream7",
+ "group": "",
+ "enable": false
+ },
+ "ts": {
+ "tsSize": 1316,
+ "mpegts_service_id": 1,
+ "mpegts_original_network_id": 1,
+ "mpegts_transport_stream_id": 1,
+ "mpegts_pmt_start_pid": 4096,
+ "mpegts_start_pid": 100
+ },
+ "output": {
+ "enable": true,
+ "vid": 0,
+ "ui": false,
+ "lowLatency": false,
+ "output": "1080P60",
+ "type": "hdmi",
+ "rotate": 0,
+ "src": 0,
+ "csc": {
+ "matrix": "identity",
+ "contrast": "50",
+ "hue": "50",
+ "luma": "50",
+ "saturation": "50"
+ }
+ },
+ "output2": {
+ "enable": false,
+ "vid": 1,
+ "ui": false,
+ "lowLatency": false,
+ "output": "1080P60",
+ "type": "vga",
+ "rotate": 0,
+ "src": 7,
+ "csc": {
+ "matrix": "identity",
+ "contrast": "50",
+ "hue": "50",
+ "luma": "50",
+ "saturation": "50"
+ }
},
- "overlay": [],
"srcV": [
- "0",
- "-1",
- "-1",
- "-1"
+ 0,
+ 1,
+ 2,
+ 3
],
"srcA": [
- "0"
+ 0
],
"layout": [
{
@@ -1368,4 +1191,4 @@
}
]
}
-]
+]
\ No newline at end of file
diff --git a/rootfs/link/fac/V2/config/default/group.json b/rootfs/link/fac/V2/config/default/group.json
new file mode 100644
index 0000000..911beaa
--- /dev/null
+++ b/rootfs/link/fac/V2/config/default/group.json
@@ -0,0 +1,5 @@
+{
+ "type":"ENC1V2",
+ "groupId":0,
+ "order":[]
+}
diff --git a/rootfs/link/fac/V2/config/group.json b/rootfs/link/fac/V2/config/group.json
new file mode 100644
index 0000000..911beaa
--- /dev/null
+++ b/rootfs/link/fac/V2/config/group.json
@@ -0,0 +1,5 @@
+{
+ "type":"ENC1V2",
+ "groupId":0,
+ "order":[]
+}
diff --git a/rootfs/link/fac/V2/config/hardware.json b/rootfs/link/fac/V2/config/hardware.json
new file mode 100644
index 0000000..fdcff27
--- /dev/null
+++ b/rootfs/link/fac/V2/config/hardware.json
@@ -0,0 +1,55 @@
+{
+ "fac":"V2",
+ "model":"ENC1V2",
+ "chip":"HI3520DV400",
+ "interfaceV":[
+ {"name":"HDMI","type":"HDMI"}
+ ],
+ "capability":{
+ "decode":{
+ "channels":2
+ },
+ "encode":{
+ "maxSize":"1080P",
+ "maxPixel":165888000,
+ "BFrame":false
+ },
+ "maxInput":"1080P60",
+ "maxOutput":"1080P60",
+ "extraVo":"VGA",
+ "eth1":false
+ },
+ "function":{
+ "record":true,
+ "carousel":true,
+ "overlay":true,
+ "dhcp":true,
+ "wifi":true,
+ "videoOut":true,
+ "line":true,
+ "mix":true,
+ "portCtrl":true,
+ "ndi":true,
+ "srt":true,
+ "hls":true,
+ "serialport":true,
+ "button":false,
+ "intercom":true,
+ "remote":true,
+ "rtspAuth":true,
+ "netPic":true
+ },
+ "other":{
+ "help":"120.78.2.184"
+ },
+ "gpio":{
+ "type":"himm",
+ "name":"gpio11_5",
+ "mux":"himm 0x120F0104 0x0",
+ "dir":"himm 0x12200400 0x0",
+ "addr":"0x12200080"
+ },
+ "usb":{
+ "lnk":"1-1"
+ }
+}
diff --git a/rootfs/link/res/background.jpg b/rootfs/link/res/background.jpg
new file mode 100644
index 0000000..13318c9
Binary files /dev/null and b/rootfs/link/res/background.jpg differ
diff --git a/rootfs/link/res/banner.png b/rootfs/link/res/banner.png
new file mode 100644
index 0000000..4c87b0b
Binary files /dev/null and b/rootfs/link/res/banner.png differ
diff --git a/rootfs/link/shell/app.sh b/rootfs/link/shell/app.sh
new file mode 100644
index 0000000..981d6bd
--- /dev/null
+++ b/rootfs/link/shell/app.sh
@@ -0,0 +1,11 @@
+/link/shell/enc.sh &
+/link/shell/gpio.sh &
+
+if [ -f /link/bin/PortCtrl ] ;then
+/link/bin/PortCtrl &
+fi
+
+if [ -f /link/shell/ptz.sh ] ;then
+/link/shell/ptz.sh &
+fi
+
diff --git a/rootfs/link/shell/dhcp.sh b/rootfs/link/shell/dhcp.sh
index d52cd40..2a21cbd 100644
--- a/rootfs/link/shell/dhcp.sh
+++ b/rootfs/link/shell/dhcp.sh
@@ -21,4 +21,6 @@ if [ "$interface" = "eth0" ]; then
echo '{"dhcp":true,"ip":"'$ip'","mask":"'$subnet'","gateway":"'$router'","dns":"'$dns'"}' > /link/config/net.json
echo $ip > /etc/hostname
hostname -F /etc/hostname
+else
+echo '{"dhcp":true,"ip":"'$ip'","mask":"'$subnet'","gateway":"'$router'","dns":"'$dns'"}' > /link/config/net2.json
fi
diff --git a/rootfs/link/shell/fusb.sh b/rootfs/link/shell/fusb.sh
index 4ec952e..b8d7747 100644
--- a/rootfs/link/shell/fusb.sh
+++ b/rootfs/link/shell/fusb.sh
@@ -14,11 +14,6 @@ umount_usb(){
done
}
-umount_usb
-echo -e "d\n1\nd\n2\nd\n3\nd\n4\n\nw" | fdisk /dev/sda
-sleep 1
-echo -e "n\np\n1\n1\n\nw" | fdisk /dev/sda
-sleep 1
umount_usb
if [ $1 == "ext4" ];then
echo -e "\ny" | mkfs.ext4 -T largefile /dev/sda1
diff --git a/rootfs/link/shell/gpio.sh b/rootfs/link/shell/gpio.sh
new file mode 100644
index 0000000..b238c0a
--- /dev/null
+++ b/rootfs/link/shell/gpio.sh
@@ -0,0 +1,63 @@
+. /link/shell/util/hardware.sh
+count=0
+type=`jget gpio.type`
+himmGPIO()
+{
+ gpioName=`jget gpio.name`
+ gpioAddr=`jget gpio.addr`
+ eval "`jget gpio.mux` > /dev/null"
+ eval "`jget gpio.dir` > /dev/null"
+
+ echo "Init $gpioName($gpioAddr) done."
+
+ while [ true ]
+ do
+ ret=`himd.l $gpioAddr 1 | awk 'NR==4{print $2}'`
+ if [ "$ret" == "00000000" ]; then
+ count=$(($count+1))
+ echo "keyDown $count"
+ if [ "$count" == "5" ]; then
+ echo "reset default config"
+ /link/shell/reset.sh
+ fi
+ else
+ count=0
+ fi
+ sleep 1
+ done
+}
+
+sysfsGPIO()
+{
+ gpioName=`jget gpio.name`
+ gpioIndex=`jget gpio.index`
+ eval "`jget gpio.mux` > /dev/null"
+ if [ ! -d "/sys/class/gpio/gpio$gpioIndex" ];then
+ echo $gpioIndex > /sys/class/gpio/export
+ fi
+ echo "in" > /sys/class/gpio/gpio$gpioIndex/direction
+
+ echo "Init $gpioName($gpioIndex) done."
+
+ while [ true ]
+ do
+ ret=`cat /sys/class/gpio/gpio$gpioIndex/value`
+ if [ "$ret" == "0" ]; then
+ count=$(($count+1))
+ echo "keyDown $count"
+ if [ "$count" == "5" ]; then
+ echo "reset default config"
+ /link/shell/reset.sh
+ fi
+ else
+ count=0
+ fi
+ sleep 1
+ done
+}
+
+if [ "$type" == "himm" ]; then
+ himmGPIO
+elif [ "$type" == "sysfs" ]; then
+ sysfsGPIO
+fi
diff --git a/rootfs/link/shell/init.sh b/rootfs/link/shell/init.sh
index d47bb16..beb03d4 100644
--- a/rootfs/link/shell/init.sh
+++ b/rootfs/link/shell/init.sh
@@ -1,39 +1,23 @@
. /etc/profile
-/link/bin/rtc -g time
+. /link/shell/util/func.sh
+. /link/shell/util/hardware.sh
/link/shell/update.sh
-mkdir /tmp/snap
-mkdir /tmp/hls
-mkdir /tmp/log
-mkdir /root/usb
-
ifconfig lo 127.0.0.1
-/usr/php/sbin/php-fpm -R -p /usr/php -c /usr/php/etc/php.ini
-/usr/nginx/sbin/nginx -p /usr/nginx
+/sbin/sysctl -p /etc/sysctl.conf
+/link/shell/init/filesystem.sh
+/link/shell/init/chip.sh
-ip=`ifconfig -a|grep inet|grep -v 127.0.0.1|grep -v inet6|awk '{print $2}'|tr -d "addr:"`
-if [ -z "$ip" ]; then
-/link/shell/setMac.sh
-sleep 1
-/link/shell/mountUsb.sh
-/link/shell/setNetwork.sh
-/link/shell/cron.sh &
-/link/shell/ndi.sh &
-sls_enable=$(cat /link/config/sls_enable |awk '{printf "%s",$1}')
-if [ "$sls_enable" == "true" ]; then
-/link/bin/sls -c /link/config/sls.conf &
-fi
-sleep 2
-/link/shell/enc.sh &
-/link/shell/onvif.sh
-/link/bin/Gpio &
-/link/shell/oled.sh &
-/link/shell/ptz.sh &
-sleep 2
-/link/bin/PortCtrl &
-/link/bin/WifiCtrl &
+if nfsBoot ;then
+/link/shell/init/service.sh
+else
+/link/shell/netManager.sh
+/link/shell/init/service.sh
+/link/shell/app.sh
fi
-#mount -t nfs -o nolock 192.168.1.28:/home/zc/nfs /root/nfs
+
+
+
diff --git a/rootfs/link/shell/init/chip.sh b/rootfs/link/shell/init/chip.sh
new file mode 100644
index 0000000..7740c25
--- /dev/null
+++ b/rootfs/link/shell/init/chip.sh
@@ -0,0 +1,28 @@
+cd /ko
+./load3521d -i
+
+#UART3
+#himm 0x120F0100 1
+#himm 0x120F0100 1
+
+#UART1
+himm 0x120F00F8 1
+himm 0x120F00FC 1
+
+#I2S
+himm 0x120F00A0 1
+himm 0x120F00A4 1
+himm 0x120F00A8 1
+himm 0x120F00AC 1
+himm 0x120F00B0 1
+himm 0x120F00B4 1
+himm 0x120F00B8 1
+himm 0x120F00BC 1
+
+#QOS
+himm 0x12120084 0x66663666
+
+#i2c
+himm 0x120F00E0 1
+himm 0x120F00E4 1
+
diff --git a/rootfs/link/shell/init/filesystem.sh b/rootfs/link/shell/init/filesystem.sh
new file mode 100644
index 0000000..2b0733a
--- /dev/null
+++ b/rootfs/link/shell/init/filesystem.sh
@@ -0,0 +1,16 @@
+mkdir /tmp/snap
+mkdir /tmp/hls
+mkdir /tmp/log
+if [ ! -d /root/usb ]; then
+mkdir /root/usb
+fi
+/link/shell/mountUsb.sh
+
+if [ -b /dev/mmcblk0p5 ]; then
+/bin/mount -o remount,rw,sync,barrier=0 /dev/mmcblk0p5 /
+fi
+
+if [ -b /dev/mmcblk0p6 ]; then
+/bin/mount -o rw,sync,barrier=0 /dev/mmcblk0p6 /root/usb
+fi
+
diff --git a/rootfs/link/shell/init/service.sh b/rootfs/link/shell/init/service.sh
new file mode 100644
index 0000000..ffd8014
--- /dev/null
+++ b/rootfs/link/shell/init/service.sh
@@ -0,0 +1,40 @@
+. /link/shell/util/func.sh
+jopen /link/config/service.json
+
+if [ `jget telnet` == "true" ]; then
+/usr/sbin/telnetd
+fi
+
+if [ `jget ssh` == "true" ] && ! procExists sshd; then
+if [ ! -d /var/empty ];then
+ mkdir -p /var/empty
+fi
+chown root:root /var/empty
+/usr/local/sbin/sshd
+fi
+
+if [ `jget php` == "true" ]; then
+/usr/php/sbin/php-fpm -R -p /usr/php -c /usr/php/etc/php.ini
+fi
+
+if [ `jget nginx` == "true" ]; then
+/usr/nginx/sbin/nginx -p /usr/nginx
+fi
+
+if [ `jget crond` == "true" ]; then
+/usr/sbin/crond -d 8
+fi
+
+if [ `jget onvif` == "true" ]; then
+/link/shell/onvif.sh
+fi
+
+if [ `jget ndi` == "true" ]; then
+/link/shell/ndi.sh
+fi
+
+if [ `jget sls` == "true" ]; then
+/link/bin/sls -c /link/config/sls.conf &
+fi
+
+/link/shell/ntp.sh &
diff --git a/rootfs/link/shell/mountUsb.sh b/rootfs/link/shell/mountUsb.sh
index 3affac6..d88b56a 100644
--- a/rootfs/link/shell/mountUsb.sh
+++ b/rootfs/link/shell/mountUsb.sh
@@ -1,11 +1,13 @@
#!/bin/sh
-umount /root/usb
if [ -e "/dev/sda" ]; then
+umount /root/usb
if [ -e "/dev/sda1" ]; then
-/bin/mount -t vfat /dev/sda1 /root/usb
+/bin/mount -t vfat -o rw,relatime,codepage=936,utf8 /dev/sda1 /root/usb
/bin/mount -t ext4 /dev/sda1 /root/usb
+/usr/bin/ntfs-3g /dev/sda1 /root/usb
else
-/bin/mount -t vfat /dev/sda /root/usb
+/bin/mount -t vfat -o rw,relatime,codepage=936,utf8 /dev/sda /root/usb
/bin/mount -t ext4 /dev/sda /root/usb
+/usr/bin/ntfs-3g /dev/sda /root/usb
fi
fi
diff --git a/rootfs/link/shell/ndi.sh b/rootfs/link/shell/ndi.sh
index f88679a..20ead8b 100644
--- a/rootfs/link/shell/ndi.sh
+++ b/rootfs/link/shell/ndi.sh
@@ -6,7 +6,14 @@ sed -i "s/host-name=.*/host-name=`cat /link/config/mac`/g" /etc/avahi/avahi-daem
else
sed -i "s/host-name=.*/host-name=test/g" /etc/avahi/avahi-daemon.conf
fi
+
+if [ -f /usr/local/var/run/dbus/pid ] ;then
rm /usr/local/var/run/dbus/pid
+fi
+
+if [ -f /run/avahi-daemon/pid ] ;then
rm /run/avahi-daemon/pid
+fi
+
/link/bin/dbus-daemon --config-file=/etc/dbus-1/system.conf
/link/bin/avahi-daemon -f /etc/avahi/avahi-daemon.conf -D
diff --git a/rootfs/link/shell/netManager.sh b/rootfs/link/shell/netManager.sh
new file mode 100644
index 0000000..96172bf
--- /dev/null
+++ b/rootfs/link/shell/netManager.sh
@@ -0,0 +1,15 @@
+. /link/shell/util/hardware.sh
+/link/shell/setMac.sh
+sleep 1
+/link/shell/setNetwork.sh
+sleep 2
+/link/bin/WifiCtrl &
+
+if [ -d /sys/class/net/eth1 ]; then
+ /link/shell/setMac2.sh
+if [ "$fac"=="ENC2" ] && [ -d /sys/class/net/eth2 ]; then
+ /link/shell/setNetwork2.sh eth2
+else
+ /link/shell/setNetwork2.sh eth1
+fi
+fi
diff --git a/rootfs/link/shell/ntp.sh b/rootfs/link/shell/ntp.sh
new file mode 100644
index 0000000..0f1bde7
--- /dev/null
+++ b/rootfs/link/shell/ntp.sh
@@ -0,0 +1,14 @@
+. /link/shell/util/func.sh
+
+while [ true ]
+do
+jopen /link/config/ntp.json
+if [ `jget enable` == "true" ]; then
+ if ! procExists ntpd ;then
+ ntpd -p `jget server` -N
+ fi
+else
+ pkill ntpd
+fi
+sleep 1
+done
diff --git a/rootfs/link/shell/reset.sh b/rootfs/link/shell/reset.sh
index 4fbe91c..80d6b6c 100644
--- a/rootfs/link/shell/reset.sh
+++ b/rootfs/link/shell/reset.sh
@@ -1,2 +1,3 @@
cp /link/config/default/* /link/config/
+rm -rf /link/config/auto/*
reboot
diff --git a/rootfs/link/shell/setMac2.sh b/rootfs/link/shell/setMac2.sh
new file mode 100644
index 0000000..e8f4398
--- /dev/null
+++ b/rootfs/link/shell/setMac2.sh
@@ -0,0 +1,8 @@
+if [ ! -f "/link/config/mac2" ]; then
+/link/shell/makeMac.sh > /dev/null
+/link/shell/makeMac.sh > /link/config/mac2
+fi
+
+/sbin/ifconfig $1 down
+/sbin/ifconfig $1 hw ether `cat /link/config/mac2`
+/sbin/ifconfig $1 up
diff --git a/rootfs/link/shell/setNetwork.sh b/rootfs/link/shell/setNetwork.sh
index e62fc24..62389d3 100644
--- a/rootfs/link/shell/setNetwork.sh
+++ b/rootfs/link/shell/setNetwork.sh
@@ -1,3 +1,4 @@
+. /link/shell/util/func.sh
if [ -f /root/usb/local ];then
cp /root/usb/local /link/config/net.json
@@ -31,6 +32,10 @@ echo $ip > /etc/hostname
hostname -F /etc/hostname
if [ ! -f /root/usb/local -a "$dhcp" == "true" ]; then
-ifconfig eth0 up
-udhcpc -i eth0 -q -s /link/shell/dhcp.sh &
+ ifconfig eth0 up
+ if ! procExists udhcpc ;then
+ udhcpc -i eth0 -b -s /link/shell/dhcp.sh > /dev/null &
+ fi
+else
+ pkill udhcpc
fi
diff --git a/rootfs/link/shell/setNetwork2.sh b/rootfs/link/shell/setNetwork2.sh
new file mode 100644
index 0000000..5d9d9c1
--- /dev/null
+++ b/rootfs/link/shell/setNetwork2.sh
@@ -0,0 +1,15 @@
+cfg=/link/config/net2.json
+
+ip=`cat $cfg | grep -o '"ip":[0-9|.|"| ]*' | awk -F\" '{print $4}'`
+mask=`cat $cfg | grep -o '"mask":[0-9|.|"| ]*' | awk -F\" '{print $4}'`
+gw=`cat $cfg | grep -o '"gateway":[0-9|.|"| ]*' | awk -F\" '{print $4}'`
+dns=`cat $cfg | grep -o '"dns":[0-9|.|"| ]*' | awk -F\" '{print $4}'`
+dhcp=`cat $cfg | grep -o '"dhcp":[^(,|})]*' | awk -F: '{print $2}'`
+
+
+
+ifconfig $1 $ip netmask $mask up
+if [ "$dhcp" == "true" ]; then
+ifconfig $1 up
+udhcpc -i $1 -b -s /link/shell/dhcp.sh > /dev/null &
+fi
diff --git a/rootfs/link/shell/update.sh b/rootfs/link/shell/update.sh
index 74151cd..9f28ffa 100644
--- a/rootfs/link/shell/update.sh
+++ b/rootfs/link/shell/update.sh
@@ -1,15 +1,46 @@
-mv /link/update/* /link/update/update.tar
-tar -xf /link/update/update.tar -C /
-if [ -f "/link/update/kernel" ]; then
-flash_erase /dev/mtd1 0 0
-nandwrite -p /dev/mtd1 /link/update/kernel
+if [ ! -z "$(ls -A /link/update)" ]; then
+ mv /link/update/* /link/update/update.tar
+ tar -xf /link/update/update.tar -C /
+
+ sleep 1
+ if [ -c "/dev/mtd1" ]; then
+ if [ -f "/link/update/kernel" ]; then
+ flash_erase /dev/mtd1 0 0
+ nandwrite -p /dev/mtd1 /link/update/kernel
+ fi
+ if [ -f "/link/update/logo.bin" ]; then
+ flash_erase /dev/mtd2 0 0
+ nandwrite -p /dev/mtd2 /link/update/logo.bin
+ fi
+ if [ -f "/link/update/logo.jpg" ]; then
+ flash_erase /dev/mtd3 0 0
+ nandwrite -p /dev/mtd3 /link/update/logo.jpg
+ fi
+ else
+ if [ -f "/link/update/kernel" ]; then
+ dd if=/link/update/kernel of=/dev/mmcblk0p2
+ fi
+ if [ -f "/link/update/logo.bin" ]; then
+ dd if=/link/update/logo.bin of=/dev/mmcblk0p3
+ fi
+ if [ -f "/link/update/logo.jpg" ]; then
+ dd if=/link/update/logo.jpg of=/dev/mmcblk0p4
+ fi
+ fi
+
+ rm /link/update/*
+
+ if [ -f "/link/config/reboot" ]; then
+ rm /link/config/reboot
+ reboot
+ fi
fi
-if [ -f "/link/update/logo.bin" ]; then
-flash_erase /dev/mtd2 0 0
-nandwrite -p /dev/mtd2 /link/update/logo.bin
+
+if [ -f "/link/shell/runOnce.sh" ]; then
+ chmod 777 /link/shell/runOnce.sh
+ /link/shell/runOnce.sh
+ rm /link/shell/runOnce.sh
fi
-if [ -f "/link/update/logo.jpg" ]; then
-flash_erase /dev/mtd3 0 0
-nandwrite -p /dev/mtd3 /link/update/logo.jpg
-fi
-rm /link/update/*
+
+
+
diff --git a/rootfs/link/shell/util/func.sh b/rootfs/link/shell/util/func.sh
new file mode 100644
index 0000000..7025ee0
--- /dev/null
+++ b/rootfs/link/shell/util/func.sh
@@ -0,0 +1,29 @@
+m_jsonpath=""
+jopen()
+{
+ m_jsonpath=$1
+}
+
+jget()
+{
+ if [ "$2" ] ;then
+ jq -r .$1 $2
+ else
+ jq -r .$1 $m_jsonpath
+ fi
+}
+
+nfsBoot()
+{
+ if [ -z "`mount -t nfs`" ]; then
+ return 1
+ else
+ return 0
+ fi
+}
+
+procExists()
+{
+ps -ef | grep $1 | grep -v grep > /dev/null
+return $?
+}
diff --git a/rootfs/link/shell/util/hardware.sh b/rootfs/link/shell/util/hardware.sh
new file mode 100644
index 0000000..e464b79
--- /dev/null
+++ b/rootfs/link/shell/util/hardware.sh
@@ -0,0 +1,6 @@
+. /link/shell/util/func.sh
+jopen /link/config/hardware.json
+
+fac=`jget fac`
+chip=`jget chip`
+model=`jget model`
diff --git a/rootfs/link/web/carousel.php b/rootfs/link/web/carousel.php
index 853df45..7fe119a 100644
--- a/rootfs/link/web/carousel.php
+++ b/rootfs/link/web/carousel.php
@@ -41,6 +41,18 @@ include( "head.php" );
' + ( i + 1 ) + ' | '; - html += '' + playList[ i ].name + ' | '; + html += '' + formatName(playList[ i ].name) + ' | '; html += '' + timeFormat( playList[ i ].duration ) + ' | '; html += ' ';
html += ' ';
@@ -252,7 +284,7 @@ include( "head.php" );
for ( var i = 0; i < list.length; i++ ) {
if ( list[ i ].type != "file" )
continue;
- $( "#fileSelect" ).append( '' );
+ $( "#fileSelect" ).append( '' );
}
diff --git a/rootfs/link/web/colorKey.php b/rootfs/link/web/colorKey.php
new file mode 100644
index 0000000..7fc9874
--- /dev/null
+++ b/rootfs/link/web/colorKey.php
@@ -0,0 +1,358 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ |