[FFmpeg-devel] [PATCH]: Documentation: ffserver.conf -- 3cameras, ADSL, flv format

Piero Bugoni crboca32
Sat May 26 05:29:24 CEST 2007


This is the second of seven pre-canned ffserver.conf
files I put together. I would like to include them,
and edit the ffserver.conf documentation somewhat,
around using them.

P.

----ffserver.conf-3cam-adsl-flv below----


# A tested-working ffserver.conf setup
# for  repeating  3 streams coming from an ffmpeg
machine
# over an adsl connection to dedicated server.
# bandwidth to server was around 320 Kb/s.

# ffserver was run on a dedicated 
# leased server, 2.8 P4, 512 RAM, 
# connected by at least 10Mb/s, with some hosting
company.
# ffmpeg was run on local server, and sent streams to
# ffserver machine over DSL

This file should work as-is, except that the 
# IP Address of the machine sending the streams
# to ffserver needs to be entered in the Feed
Definitions.
# (See Below).

# ffserver and ffmpeg 2 separate machines.

# Global Stuff
#
Port 8090
BindAddress 0.0.0.0
MaxClients 10               # Probably safe, max =
1000
MaxBandwidth 16000          # 16 Mbit/s. 
CustomLog -
NoDaemon


# Feed Definitions

<Feed feed1.ffm>
File /tmp/feed1.ffm
FileMaxSize 1000000000      # 1 Gigabyte
ACL allow <ip address>      # very important. Set this
to ffmpeg machine IP. 	
</Feed>

<Feed feed2.ffm>
File /tmp/feed2.ffm
FileMaxSize 1000000000 
ACL allow <ip address>
</Feed>

<Feed feed3.ffm>
File /tmp/feed3.ffm
FileMaxSize 1000000000 
ACL allow <ip address>
</Feed>

# Streams
#
# All low framerate, (1F/s), 
# small Image size low bitrate 
# minimal quality still reasonably
# viewable 


<Stream test1.flv>
Feed feed1.ffm
VideoBitRate 25
VideoBufferSize 200
Format swf
VideoSize 160x128
VideoFrameRate 1
VideoQMin 10
VideoQMax 10
NoAudio
</Stream>


<Stream test2.flv>
Feed feed2.ffm
VideoBitRate 25
VideoBufferSize 200
Format swf
VideoSize 160x128
VideoFrameRate 1
VideoQMin 10
VideoQMax 10
NoAudio
</Stream>


<Stream test3.flv>
Feed feed3.ffm
VideoBitRate 25
VideoBufferSize 200
Format swf
VideoSize 160x128
VideoFrameRate 1
VideoQMin 10
VideoQMax 10
NoAudio
</Stream>


# Experiment to get rid of rc buffer underflow error.
Max is 16000
# Adjust in conjunction with q and bitrate. 128 is a
safe value

# cif size 
# adjust bitrate with q


# Notes:
#

# ffserver was run with this file, and the following
ffmpeg command
# on the same machine:
# 
# ./ffmpeg  -deinterlace -r 1 -s cif -qmin 10 -qmax 10
\
# -f video4linux2 -i /dev/video0
http://<ffserver-ip>:8090/feed1.ffm 
# 
# ./ffmpeg  -deinterlace -r 1 -s cif -qmin 10 -qmax 10
\
# -f video4linux2 -i /dev/video1
http://<ffserver-ip>:8090/feed2.ffm 
# 
# ./ffmpeg  -deinterlace -r 1 -s cif -qmin 10 -qmax 10
\
# -f video4linux2 -i /dev/video2
http://<ffserver-ip>:8090/feed3.ffm 
#
# Works with both firefox and IE. 
#
#  For NTSC Try Frame Rates of 1, 3, or 9.99.
#  Settings:
#
#
# The Q	value is pretty important here. Values of
around 5 to 7.5
# give a reasonable compromise between stream width,
and image quality.
# make sure to match the settings in this file with
those on the command line. 
# in this instance values grater than 10 will probably
make image indiscernable.
#
# Some additional settings for higher quality, but a
fatter stream:
#

# Qmin/Qmax=1, vbr~=12000, vbuf=52(min)
# Qmin/Qmax=2, vbr~=7100,  vbuf=33(min)
# Qmin/Qmax=3, vbr~=5200,  vbuf=22(min) good
quality/stream compromise
# Qmin/Qmax=4, vbr~=4800,  vbuf=21(min)
# Qmin/Qmax=5, vbr~=4000,  vbuf=19(min)
# Qmin/Qmax=6, vbr~=3200,  vbuf=13(min)


# Flash Player has a limit of 16,500 frames
# when using a browser refresh the viewing 
# page periodically



# How does adjusting these options from defaults
affect stream/quality 
# IntraOnly
# VideoGOPSize






       
____________________________________________________________________________________Yahoo! oneSearch: Finally, mobile search 
that gives answers, not web links. 
http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC




More information about the ffmpeg-devel mailing list