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

Piero Bugoni crboca32
Sat May 26 05:18:39 CEST 2007


This is one 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-lan-flv below----


# A tested-working ffserver.conf setup
# for three cameras on bttv cards across
# 100Mbit capable testbench-LAN.

# Machine was a 1100 Celeron  with 512M RAM.
# ffserver and ffmpeg run on same machine with 
# apache webserver. Machine had 4 bttv cards.   


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


# Feed Definition
#

# Feeds

<Feed feed1.ffm>
File /tmp/feed1.ffm
FileMaxSize 1000000000     # 1 Gigabyte
ACL allow 127.0.0.1
</Feed>

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

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

# Streams

# Fast framerate was used for "live" quality,
# but Image size and quality 
# Reduced for bandwidth. The client side 
# can usually expand output to screen size.

<Stream test1.flv>
Feed feed1.ffm
VideoBitRate 1640
VideoBufferSize 128
Format swf
VideoSize 160x128           # Half of 320x256
VideoFrameRate 29.97
VideoQMin 10
VideoQMax 10
NoAudio
</Stream>


<Stream test2.flv>
Feed feed2.ffm
VideoBitRate 1640           # Experiment to get rid of
rc buffer underflow error. Max is 16000
VideoBufferSize 128         # Adjust in conjunction
with q and bitrate. 128 is a safe value
Format swf
VideoSize 160x128
VideoFrameRate 29.97        # Try to use this frame
rate when using image timestamp with vhook
VideoQMin 10                # adjust bitrate with q
(see below)
VideoQMax 10
NoAudio
</Stream>


<Stream test3.flv>
Feed feed3.ffm
VideoBitRate 1640
VideoBufferSize 128
Format swf
VideoSize 160x128
VideoFrameRate 29.97
VideoQMin 10
VideoQMax 10
NoAudio
</Stream>


# Notes:
#

# ffserver was run with this file, and the following 3
ffmpeg commands
# on the same machine:
# 
# ./ffmpeg  -deinterlace -r 29.97 -s 160x128 -qmin 10
-qmax 10 \
# -f video4linux2 -i /dev/video0
http://localhost:8090/feed1.ffm 
#
# ./ffmpeg  -deinterlace -r 29.97 -s 160x128 -qmin 10
-qmax 10 \
# -f video4linux2 -i /dev/video1
http://localhost:8090/feed2.ffm 
#
# ./ffmpeg  -deinterlace -r 29.97 -s 160x128 -qmin 10
-qmax 10 \
# -f video4linux2 -i /dev/video2
http://localhost:8090/feed3.ffm 


# To test, point browser to:
http://localhost:8090/test1.flv 
# (Likewise for test2.flv, and test 3.flv).
# Works with both Firefox and IE, with FlashPlayer
installed
#


# When dealing with NTSC set frame rate to exactly
29.97 to 
# maintain sync. This can affect correctness of
"timestamp" 
#
# 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. 
#
#
# Some additional settings:
# Lower "Q" values mean 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








       
____________________________________________________________________________________Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games.
http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow  
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ffserver.conf-3cam-lan-flv
Type: application/octet-stream
Size: 3325 bytes
Desc: 2855941252-ffserver.conf-3cam-lan-flv
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070525/b6befb2e/attachment.obj>



More information about the ffmpeg-devel mailing list