Giter Site home page Giter Site logo

librtmp-study's Introduction

rtmpdump

下载rtmp到本地文件

rtmpgw

把RTMP 拉流转成 HTTP 拉流的代理程序

rtmpsrv

简单的rtmp服务端完成了音视频发送前的握手和命令交换环节,当前版本是解析客户端请求触发一条rtmpdump命令。

可以结合wireshark查看学习如下流程

Handshake -> connect-> _result -> releaseStream -> FCPublish -> createStream -> _result -> publish

rtmpsuck

RTMP本地代理,需要结合iptables才能使用,用iptables将浏览器请求的外部服务器1935端口的TCP流 重定向

到本地的rtmpsuck代理 ,rtmpsuck解析出请求出的参数信息以供rtmpdump使用。

#添加规则
iptables -t nat -A OUTPUT -p tcp --dport 1935 -m owner \! --uid-owner root  -j REDIRECT
#移除之前添加的规则
iptables -t nat -D OUTPUT -p tcp --dport 1935 -m owner \! --uid-owner root -j REDIRECT

examples

学习的一些示例程序

librtmp-study's People

Contributors

keminar avatar

Watchers

 avatar  avatar

Forkers

zyjiang08

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.