Giter VIP home page Giter VIP logo

Comments (4)

ngraziano avatar ngraziano commented on May 25, 2024 1

Same problem than #18.

RtspMultiplexer do not handle this type of connection, you can only do something like : Video Client (ffmpeg client/vlc) => RtspMultiplexer => Video source (camera for exemple)

I try to handle the functionality for ANNOUNCE from ffmpeg (in branch https://github.com/ngraziano/SharpRTSP/tree/annoncetest) but there is a problem because ffmpeg send data as fast as it can, so it can't be forwarder to another client.

If what you want is serving a file to different client with RTSP, VLC will do the job.

from sharprtsp.

ks3dev avatar ks3dev commented on May 25, 2024

Could you write a example? I have no idea. Thank you!

from sharprtsp.

nu774 avatar nu774 commented on May 25, 2024

I try to handle the functionality for ANNOUNCE from ffmpeg (in branch https://github.com/ngraziano/SharpRTSP/tree/annoncetest) but there is a problem because ffmpeg send data as fast as it can, so it can't be forwarder to another client.

Just try "-re" option of ffmpeg.

-re (input)

Read input at native frame rate. Mainly used to simulate a grab device, or live input stream (e.g. when reading from a file). Should not be used with actual grab devices or live input streams (where it can cause packet loss). By default ffmpeg attempts to read the input(s) as fast as possible. This option will slow down the reading of the input(s) to the native frame rate of the input(s). It is useful for real-time output (e.g. live streaming).

from sharprtsp.

ngraziano avatar ngraziano commented on May 25, 2024

@nu774 thanks for the command line tip for ffmpeg.

I have made some test and can handle ffmpeg announce. The code is merged in master and is a bit ugly but it works. I can not take more time to work on this feature but it shows what can be done.

Push with ffmpeg :
ffmpeg.exe -re -i sample.mp4 -vcodec copy -rtsp_transport udp -f rtsp rtsp://127.0.0.1:8554/PUSH/toto

And connect PULL from other device in multicast:
vlc rtsp://192.168.0.11:8554/PULL/toto

from sharprtsp.

Related Issues (20)

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.