[FFmpeg-devel] "OPW Qualification Task: Enable daemon mode for FFserver"

Binathi Bingi binti179 at gmail.com
Tue Nov 11 20:16:09 CET 2014


Hi there,

Updated patch.
Please let me know if there are any other changes needed.

I meant FFmpeg version 2.4, by "2.4 level".
In case Daemon mode is made  default, and user launches FFserver in debug
mode, in that case, FFserver
would be prevented from forking, forcing foreground mode.

I am not sure about why daemon mode was removed.
More information on re-enabling daemon mode can be obtained from below link:
https://trac.ffmpeg.org/ticket/3731

Thanks,

Binathi

On Wed, Nov 12, 2014 at 12:45 AM, Binathi Bingi <binti179 at gmail.com> wrote:

> Hi there,
>
> Updated patch.
> Please let me know if there are any other changes needed.
>
> I meant FFmpeg version 2.4, by "2.4 level".
> In case Daemon mode is made  default, and user launches FFserver in debug
> mode, in that case, FFserver
> would be prevented from forking, forcing foreground mode.
>
> I am not sure about why daemon mode was removed.
> More information on re-enabling daemon mode can be obtained from below
> link:
> https://trac.ffmpeg.org/ticket/3731
>
> Thanks,
>
> Binathi
>
> On Tue, Nov 11, 2014 at 6:02 PM, Stefano Sabatini <stefasab at gmail.com>
> wrote:
>
>> On date Tuesday 2014-11-11 00:19:26 +0530, Binathi Bingi encoded:
>> > Hi there,
>> >
>> > Please find the attached patch with modifications.
>> [...]
>> > From 091b4a02c9325bea32b7f745d028ea72c8e1537e Mon Sep 17 00:00:00 2001
>> > From: Binathi Bingi <binti179 at gmail.com>
>> > Date: Tue, 4 Nov 2014 21:42:07 +0530
>> > Subject: [PATCH] Restore Daemon mode in FFserver
>> >
>> > Signed-off-by: Binathi Bingi <binti179 at gmail.com>
>> >
>> >  Author:    Binathi Bingi <binti179 at gmail.com>
>> > ---
>> >  doc/ffserver.conf |  4 ++++
>> >  doc/ffserver.texi | 11 +++++++----
>> >  ffserver.c        | 34 ++++++++++++++++++++++++++++++++++
>> >  ffserver_config.c |  4 ++--
>> >  ffserver_config.h |  1 +
>> >  5 files changed, 48 insertions(+), 6 deletions(-)
>> >
>> > diff --git a/doc/ffserver.conf b/doc/ffserver.conf
>> > index b756961..a017b3c 100644
>> > --- a/doc/ffserver.conf
>> > +++ b/doc/ffserver.conf
>> > @@ -25,6 +25,10 @@ MaxBandwidth 1000
>> >  # '-' is the standard output.
>> >  CustomLog -
>> >
>> > +# Enable Daemon, to launch FFserver in Daemon mode.
>> > +# For NoDaemon mode, suppress Daemon.
>> > +#Daemon
>> > +
>> >  ##################################################################
>> >  # Definition of the live feeds. Each live feed contains one video
>> >  # and/or audio sequence coming from an ffmpeg encoder or another
>> > diff --git a/doc/ffserver.texi b/doc/ffserver.texi
>> > index 77273d2..0c10c2f 100644
>> > --- a/doc/ffserver.texi
>> > +++ b/doc/ffserver.texi
>> > @@ -404,10 +404,13 @@ If not specified @command{ffserver} will produce
>> no log.
>> >  In case the commandline option @option{-d} is specified this option is
>> >  ignored, and the log is written to standard output.
>> >
>> > - at item NoDaemon
>> > -Set no-daemon mode. This option is currently ignored since now
>> > - at command{ffserver} will always work in no-daemon mode, and is
>> > -deprecated.
>> > + at item Daemon
>> > +Set Daemon mode. The default is NoDaemon.
>>
>> > +Enabling Daemon mode would allow FFserver, at 2.4 level, fork in
>> background
>> > +without "&" shell operator. It has logging capability to file, unlike
>> in
>> > +NoDaemon mode, forks in background upon starting like any daemon and in
>> > +debug mode, it is prevented from forking, forcing foreground mode.
>>
>> In daemon mode @command{ffserver} will fork in background upon
>> starting, without the need to specify the "&" shell operator in the
>> command line. In daemon mode also @command{ffserver} will continue to
>> log on stdout, unlike in NoDaemon mode.
>>
>> I'm not sure about what you mean by "2.4 level", and about the
>> interaction wih the debug mode.
>>
>> I also missed the discussion about why Daemon mode was removed and
>> then we are re-enabling it now, so I probably miss some fundamental
>> information.
>>
>> [...]
>> --
>> FFmpeg = Forgiving & Fierce MultiPurpose Exxagerate Game
>> _______________________________________________
>> ffmpeg-devel mailing list
>> ffmpeg-devel at ffmpeg.org
>> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>>
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Restore-Daemon-mode-in-FFserver.patch
Type: text/x-patch
Size: 4354 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20141112/25fc46c4/attachment.bin>


More information about the ffmpeg-devel mailing list