How to make ffmpeg aware of streams coming and make it run as daemon

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

How to make ffmpeg aware of streams coming and make it run as daemon

Robert Clove
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.

Regards
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: How to make ffmpeg aware of streams coming and make it run as daemon

Mitja Pirih
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:
https://github.com/arut/nginx-rtmp-module
Hint: nginx + rtmp + ffmpeg


Br,
M.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: How to make ffmpeg aware of streams coming and make it run as daemon

Robert Clove
Thanks for the link Mitja.
Just wanted to know:
I wanted to use in one of mine another project, my rtp stream is encrypted
with SRTP keys, how will it handle decryption process, any clue?


On Thu, Jun 7, 2018 at 12:48 PM, Mitja Pirih <[hidden email]> wrote:

> 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:
> https://github.com/arut/nginx-rtmp-module
> Hint: nginx + rtmp + ffmpeg
>
>
> Br,
> M.
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: How to make ffmpeg aware of streams coming and make it run as daemon

Robert Clove
In reply to this post by Mitja Pirih
 nginx-rtmp-module does not support rtp

On Thu, Jun 7, 2018 at 12:48 PM, Mitja Pirih <[hidden email]> wrote:

> 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:
> https://github.com/arut/nginx-rtmp-module
> Hint: nginx + rtmp + ffmpeg
>
>
> Br,
> M.
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".