Code Monkey home page Code Monkey logo

Comments (1)

vk342 avatar vk342 commented on July 18, 2024

courtesy of @nto:

  1. should use rtp insted of udp
  2. should use @ to indicate listener
  3. the generic syntax for network i/o is [<connect addr>[:<connect port>]][@[<bind addr][:<bind port>]][/<options>]

so the example above works as following:

Container1 (172.20.0.50) - starts stream:
#note: only single stream
ffmpeg -re -stream_loop -1 -i /data/a2.mp4 -pix_fmt yuv420p -c:v libx264 -b:v 1000k -r 24 -x264opts keyint=24:no-scenecut -g 24 -keyint_min 24 -profile:v baseline -preset veryfast -an -f rtp rtp://172.20.0.60:5006

Container2 (172.20.0.60) - RIST sender
./rist_tx -d @172.20.0.60:5006 172.20.0.70:5008 1000

Container3 (172.20.0.70) - RIST receiver
./rist_rx -d @172.20.0.70:5008 172.20.0.80:5010 1000

Container4 (172.20.0.80) - listens to the stream
#note: .sdp file contens are printed out by ffmpeg in Container1
ffprobe -protocol_whitelist "file,http,https,tcp,tls,rtp,udp" -i /data/sdp1.sdp

from upipe.

Related Issues (18)

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.