-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
85 lines (71 loc) · 3.1 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="renderer" content="webkit"/>
<meta name="force-rendering" content="webkit"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>IPTVer a substitue tool of Udpxy, which is better than it</title>
</head>
<body>
<h1>IPTVer
<h2>Introduction</h2>
<p>This is a simple iptv system tool, which is designed by Golang, It supports a few of input mode.
Such as: HTTP-TS/RTSP/HLS/RTP(UDP Mulitcast or unicast) or UDP RAW-TS.
Output suport HTTP-TS/UDP(unicast or multicast) , iptver is a substitute of udpxy.</p>
<h2>Install</h2>
<ol><li>tar xvf iptver.tar.gz </li><li>edit your conf.yaml use your editor</li><li>./iptver or nohup ./iptver & (run in background)</li></ol>
<h2>About config</h2>
<p><code></code>`</p>
<h1>channels config file</h1>
<p>key: a965c8b327878f44992589877ba9f18fe25c9b7ee1b934ee167cc1228e717182
channels:</p>
<pre><code> -
type: rtsp
name: cctv1
url: rtsp://127.0.0.1:8554/abcd
sdev: lo
dst: 10.200.69.202:1234
dev: eth0
-
type: hls
name: cctv2
url: http://aliplay.17.cn/live/5ca329bd828bb609ea30ccfc.m3u8
sdev: eth0
dst: 10.200.69.202:1235
dev: eth0
-
type: httpts
name: cctv3
url: http://aliplay.ye.cn/17e/5ca329bd828bb609ea30ccf
sdev: eth0
dst: 10.8.14.177:1236
dev: eth0
-
type: rtp
name: cctv4
url: rtp://22.2.13.44:2332
sdev: eth0
dst: 10.8.14.177:1236
dev: eth0</code></pre>
<p><code>
key is authrised key, if it is wrong, iptver can't have channel recovery function, maybe return after days
run the following command:
</code>
dmidecode -t 4 | grep ID |sort -u |awk -F': ' '{print $2}'
<code></code>`
then send out to [email protected] , I will send you the key, which should be writen in the conf.yaml</p>
<p> or Wechat: Rainfly003 </p
<ol><li>type: input stream's mode, may be one of rtsp/rtp/httpts/hls</li><li>name: channel's name , must be unique.</li><li>url: channel's input url</li><li>sdev: is the netcard name , through which the live stream flow in your computer, check it by run 'ifconfig'</li><li>dst: is the output address, udp unicast or multicast</li><li>dev: is the netcard name, through which the live stream will flow out</li></ol>
<h2>API</h2>
<p><code>
Check bitrate: curl http://serverip:8080/[channel name]/status <br>
Check all channels: curl http://serverip:8080/ <br>
Open with VLC: http://serverip:8080/[channel name]/view <br>
Delete channel http://serverip:8080/[channel name]/del <br>
Add channel http://serverip:8080/chan/add POST method, Content shoud be json, <br>
curl -X POST http://localhost:8080/chan/add -d '{"type":"hls", "name":"cctv6", "url":"http://alipay.17.cn/live/62bdad33af73a6260.m3u8", "sdev":"eth0", "dev":"lo", "dst":"127.0.0.1:2344"}'
</code></p>
</body>
</html>