asdlei99 / udp2rtmp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

udp2rtmp

Used to receive MPTS(Multiple Program Transport Stream) from UDP , demux it , and then publish SPTS(Single Program Transport Stream) to RTMP server, providing RTMP viewing method.

this codes are based SRS (Simple-Rtmp-Server) Take a look exactly SRS v2.0.243 and I changed about 500 lines codes , fixed some bugs . If you want to use it ,just overwrite the same files in SRS and copy Makefile to SRS's objs directory make SRS the executable file is located in objs/udp2rtmp (maybe :) )

NOTICE

files outside the directory "final" is using Python wrap , it will start several Process(each program using one Process ,what a shame)

files inside the directory "final" just start one process, (all of programs using the same Process),this is recommended

first of all , you should Install jemalloc (only on Centos, there are memory leaks, if use jemalloc, the problem disappear)

About config file

#program_number rtmp_url don't care this is comment

1010 rtmp://127.0.0.1/cctv1/live
1010 is program number in PAT tble (ISO13818-1) ,the following rtmp URL is publish address

if you want to publish more than one RTMP stream using the same program in MPEG-TS: just write one more config item in config file with the same program_number

For example:

1020 rtmp://127.0.0.1/cctv2/live

1020 rtmp://127.0.0.1/cctv3/live

you can find me through Wechat.

any amount of donation is appreciated !

wx

About


Languages

Language:C++ 93.5%Language:Makefile 6.1%Language:Python 0.4%Language:Shell 0.0%