Giter Site home page Giter Site logo

ping-rtmp's Introduction

ping-rtmp

RTMP layer PingPong test.

Install and Run

go get -u github.com/gnolizuh/ping-rtmp
cd ping-rtmp
go build -i -o ping-rtmp .
./ping-rtmp --push rtmp://yourip/live/ --pull rtmp://yourip/live/

Usage

$ ./ping-rtmp -h
NAME:
   ping-rtmp - RTMP layer PingPong test.

USAGE:
   config [global options] command [command options] [arguments...]

VERSION:
   1.0

COMMANDS:
     help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --push value   specify a push url for publisher (default: "rtmp://127.0.0.1/live/")
   --pull value   specify a pull url for player (default: "rtmp://127.0.0.1/live/")
   --help, -h     show help
   --version, -v  print the version

Result

PING rtmp://127.0.0.1/live/ <-> rtmp://127.0.0.1/live/: 32 data bytes
32 bytes from: sid=1 csid=7 time=8.875 ms
32 bytes from: sid=1 csid=7 time=9.109 ms
32 bytes from: sid=1 csid=7 time=9.003 ms
32 bytes from: sid=1 csid=7 time=8.195 ms
32 bytes from: sid=1 csid=7 time=10.355 ms
32 bytes from: sid=1 csid=7 time=10.197 ms
32 bytes from: sid=1 csid=7 time=8.220 ms
32 bytes from: sid=1 csid=7 time=8.327 ms
32 bytes from: sid=1 csid=7 time=8.663 ms

ping-rtmp's People

Contributors

gnolizuh avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

ping-rtmp's Issues

cant install in golang version 13.4

this is the output

go build

_/root/project/go/src/rtmping

./main.go:155:17: cannot use cli.StringFlag literal (type cli.StringFlag) as type cli.Flag in array or slice literal:
cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
./main.go:160:17: cannot use cli.StringFlag literal (type cli.StringFlag) as type cli.Flag in array or slice literal:
cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)

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.