Coder Social home page Coder Social logo

udp2rtmp's Introduction

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

udp2rtmp's People

Contributors

rainfly123 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.