17 lines
552 B
Python
Executable file
17 lines
552 B
Python
Executable file
#!/usr/bin/python
|
|
# -*- coding: utf8 -*-
|
|
from config import *
|
|
|
|
i=0
|
|
for group in multicast.keys():
|
|
for (name,dst,port,sources) in multicast[group].values():
|
|
#name="channel%s" % i
|
|
print('new %s broadcast enabled loop' % name)
|
|
for source in sources:
|
|
print('setup %s input "%s"' % (name,source))
|
|
print('setup %s output #udp{mux=ts,dst=%s:%s}' % (name,dst,port))
|
|
print('setup %s option network-caching=50' % name)
|
|
print('setup %s option sout-all' % name)
|
|
print('setup %s option sout-keep' % name)
|
|
#print('control %s play' % name)
|
|
i+=1
|