Opened 11 years ago

Closed 10 years ago

#2822 closed defect (invalid)

Cannot configure ffserver.conf MaxClients to > 5

Reported by: bzbdev001 Owned by:
Priority: normal Component: ffserver
Version: git-master Keywords:
Cc: rverdejo@gmail.com Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: yes

Description

Summary of the bug:

Running on lubuntu 12.04 64bit.

$ uname -a
Linux somehost 3.2.0-49-generic #75-Ubuntu SMP Tue Jun 18 17:39:32 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

I'm using the latest snapshot of ffmpeg-2.0 as of Jul 29, 2013.
In ffserver.conf, Using any value > 5 for MaxClients causes ffserver to exit.

How to reproduce:

Get ffmpeg-2.0 snapshot

$ ./configure --prefix=/somelocation --enable-libmp3lame --enable-libx264 --enable-gpl
$ make
$ sudo make install

Modify ffserver.conf...

Port 8090
BindAddress 0.0.0.0
MaxHTTPConnections 5
MaxClients 6
MaxBandwidth 1000
CustomLog -
NoDaemon
<Feed videofeed1.ffm>
File /tmp/videofeed1.ffm
FileMaxSize 200K
Launch ffmpeg
ACL allow 127.0.0.1
ACL allow 192.168.1.0 192.168.1.255
</Feed>
<Stream videostream1.mpg>
Feed videofeed1.ffm
Format mpeg
AudioBitRate 32
AudioChannels 1
AudioSampleRate 22050
VideoBitRate 64
VideoBufferSize 40
VideoFrameRate 3
VideoSize 160x128
VideoGopSize 12
ACL allow localhost
ACL allow 192.168.1.0 192.168.1.255
</Stream>

$ ffserver -d -f /somelocation/ffserver.conf
ffserver version 2.0 Copyright (c) 2000-2013 the FFmpeg developers

built on Jul 29 2013 18:57:52 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
configuration: --prefix=/somelocation/ffmpeg-2.0-20130728 --enable-libmp3lame --enable-libx264 --enable-gpl
libavutil 52. 38.100 / 52. 38.100
libavcodec 55. 18.102 / 55. 18.102
libavformat 55. 12.100 / 55. 12.100
libavdevice 55. 3.100 / 55. 3.100
libavfilter 3. 79.101 / 3. 79.101
libswscale 2. 3.100 / 2. 3.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 3.100 / 52. 3.100

/somelocation/ffserver.conf:4: Invalid MaxClients: 6
Incorrect config file - exiting.

Change History (2)

comment:1 by Reynaldo H. Verdejo Pinochet, 10 years ago

Analyzed by developer: set
Cc: rverdejo@gmail.com added
Component: undeterminedffserver
Version: 2.0git-master

You problem is this combination of ffserver options
in your config:

MaxHTTPConnections 5
MaxClients 6

The logic in ffserver.c requires MaxClients to be
<= MaxHTTPConnections.

Try bumping MaxHTTPConnections for a quick fix.

comment:2 by Reynaldo H. Verdejo Pinochet, 10 years ago

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.