GithubHelp home page GithubHelp logo

rtp2dash's Introduction

How to Stream and How to Emulate a live encoder

One format that most encoder support is plain RTP. So this project shows how RTP streams are received and re-emitted as MPEG-DASH. It includes a stock Shaka Player to complete the showcase.

The sample server is not configurable in any way from the outside. The configuration is in the code and reflects the prepared test content. While the stream is created it is a live stream with a dynamic manifest. Once the stream source stopped emitting RTP packets the DASH stream will automatically become available as an on demand stream (even though the profile is still the live profile).

Prerequisites:

additionally you can download a prebuilt version and the demo video:

Step 1 - Start the Server

java -jar rtp2dash-1.0.jar

Step 2 - Start the stream

ffmpeg -re -i tos-mbr-in-one-file.mp4 -c:v copy -c:a copy -map 0:0  -f rtp rtp://127.0.0.1:5000/  -c:v copy -c:a copy  -map 0:1  -f rtp rtp://127.0.0.1:5001/ -c:v copy -c:a copy  -map 0:2  -f rtp rtp://127.0.0.1:5002/  -c:v copy -c:a copy  -map 0:3  -f rtp rtp://127.0.0.1:5003/  -c:v copy -c:a copy  -map 0:4  -f rtp rtp://127.0.0.1:5004/  -c:v copy -c:a copy  -map 0:5  -f rtp rtp://127.0.0.1:5005/

Step 3 - Watch Tears of Steel

  1. Wait a moment (>10s so that at least 1 full video segment is available
  2. Open your browser and go to: http://localhost:8080/index.html
  3. Select "Tears of Steel" in the selection "Test manifest:"
  4. Hit "Load Stream" and enjoy "Tears of Steel"

rtp2dash's People

Contributors

sannies 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.