Re: [FFmpeg-user] Autolaunch FFMPEG when network traffic detected

2018-07-23 Thread Anthony Griffiths
On Mon, Jul 23, 2018 at 4:34 PM, yannickb wrote: > Yes, I should have started with the setup description: > > I have several (i)Phones that send mpeg-ts/udp video stream over LTE to a > debian 9.0 computer with a Blackmagic Decklink Quad with up to 8 SDI output. > I link each phone to a SDI

Re: [FFmpeg-user] Autolaunch FFMPEG when network traffic detected

2018-07-23 Thread robertlazarski
On Mon, Jul 23, 2018 at 9:34 AM, yannickb wrote: > I wish I could monitor each of those ports and launch the corresponding > command automatically as soon as the incoming stream is detected (and stop > when the stream ends) > > > One advantage of using a Linux distro like Debian as you mention,

Re: [FFmpeg-user] Autolaunch FFMPEG when network traffic detected

2018-07-23 Thread yannickb
Yes, I should have started with the setup description: I have several (i)Phones that send mpeg-ts/udp video stream over LTE to a debian 9.0 computer with a Blackmagic Decklink Quad with up to 8 SDI output. I link each phone to a SDI Output. from the command line, I manually launch an instance

Re: [FFmpeg-user] Autolaunch FFMPEG when network traffic detected

2018-07-23 Thread Anthony Griffiths
need more info. what do you mean exactly when you say "as soon as it receives a stream".. Please give more details of your whole setup ie: the operating system yr using and more. On Fri, Jul 20, 2018 at 2:24 PM, Yannick Barbeaux wrote: > Thank you Anthony. > How do you fill the log file? With

Re: [FFmpeg-user] Autolaunch FFMPEG when network traffic detected

2018-07-22 Thread Yannick Barbeaux
Thank you Anthony. How do you fill the log file? With iptables? Could you give me an example ? (I guess you use the limit and burst options to avoid geting huge log files?) On 20 July 2018 at 14:46, Anthony Griffiths wrote: > On Fri, Jul 20, 2018 at 11:55 AM, yannickb > wrote: > > > Hi, > > >

Re: [FFmpeg-user] Autolaunch FFMPEG when network traffic detected

2018-07-20 Thread Carl Zwanzig
On 7/20/2018 3:55 AM, yannickb wrote: I am trying to build a*headless encoder* that would*autostart* streaming with*ffmpeg* as soon as it receives a stream on a given port (let's say a MPEG-TS stream on UDP/3000) and output it to a blackmagic SDI output. Why start/stop ffmpeg at all? (there

Re: [FFmpeg-user] Autolaunch FFMPEG when network traffic detected

2018-07-20 Thread Anthony Griffiths
I'm struggling to understand exactly what your setup is but what ever it is you have to do it so that a log file is generated. Maybe /var/log/messages will contain the string you need. I start ffmpeg with an init.d script called 'stream', and this script creates a pid file at /var/run/stream.pid

Re: [FFmpeg-user] Autolaunch FFMPEG when network traffic detected

2018-07-20 Thread yannickb
Thank you for the quick reply Anthony. How do you fill the log? with iptables? If yes, I guess you limit the log size with the -limit option. Could you give me an example of your process? I noticed that if the UDP stream stops for a while then resume and ffmpeg stays inactive meanwhile, I have no

Re: [FFmpeg-user] Autolaunch FFMPEG when network traffic detected

2018-07-20 Thread Anthony Griffiths
On Fri, Jul 20, 2018 at 11:55 AM, yannickb wrote: > Hi, > > I am trying to build a *headless encoder* that would *autostart* streaming > with *ffmpeg* as soon as it receives a stream on a given port (let's say a > MPEG-TS stream on UDP/3000) and output it to a blackmagic SDI output. > I don't