[FFmpeg-user] How to make ffmpeg aware of streams coming and make it run as daemon

Mitja Pirih mitja at alternet.si
Thu Jun 7 10:18:16 EEST 2018

On 07. 06. 2018 08:52, Robert Clove wrote:
> Hi,
> My setup is like this:
> It contains components:
> Web Cam: which send out the RTP packets when i get a stream request
> Agent server: Which receives the stream from the Webcam and forwards the
> same to ffmpeg server.
> ffmpeg server: this where i need to run the ffmpeg as window service,
> receives the rtp stream sent by agent server and create a ts file.
> What have i done is:
> I have setup the ffmpeg in one of my dev environment using this link:
> https://video.stackexchange.com/questions/20495/how-do-i-set-up-and-use-ffmpeg-in-windows
> My problems:
> How to make ffmpeg run as daemon.?
> How can i make ffmpeg aware that new stream is coming from agent server and
> start creating a ts file.?
> Is there a way in ffmpeg that i reserve ports for ffmpeg and make it listen
> to all the ports for eg : reserve 2000 - 3000 ports and listen to them as
> soon as rtp stream arrives, convert to ts stream.

You will probably find everything you need here:
Hint: nginx + rtmp + ffmpeg


More information about the ffmpeg-user mailing list