[FFmpeg-devel] [DOC] FFSERVER Configuration Files.

Diego Biurrun diego
Thu Aug 9 10:50:46 CEST 2007


On Mon, Aug 06, 2007 at 04:14:34PM -0700, Piero Bugoni wrote:
> 
> --- Diego Biurrun <diego at biurrun.de> wrote:
> 
> > On Sun, Aug 05, 2007 at 07:24:57PM -0700, Piero Bugoni wrote:
> > > Below are all seven ffserver.conf files that I have
> > > created in "svn diff" format.
> > 
> > The patch was mangled by your mailer, please attach it.
> 
> Below is a re-post, plus an attachment. (I changed the line width on my mail client. I think that
> does it.)

No, now your lines are awfully long.  The solution is to attach the
patch.

> --- ffserver.conf-swf	(revision 0)
> +++ ffserver.conf-swf	(revision 0)
> @@ -0,0 +1,46 @@
> +<Stream test1.swf>
> +Feed feed1.ffm
> +Format swf
> +AudioBitRate 64k         # try 64, 128, or 256
> +AudioCodec mp3           # swf uses mp3 codec

MP3 audio, same below

> --- ffserver.conf-mp3	(revision 0)
> +++ ffserver.conf-mp3	(revision 0)
> @@ -0,0 +1,60 @@
> +# A tested-working ffserver.conf setup
> +# for an audio-only mp3 stream across
> +# 100Mbit capable testbench-LAN.
> +
> +# Machine was a 1100 Celeron  with 512M RAM.
> +# ffserver and ffmpeg run on same machine with
> +# Apache webserver.

the/an Apache, same below

Why are you keeping lines so short here?  same below ..

> +MaxClients 10               # Probably safe, max = 1000
> +MaxBandwidth 16000          # 16 Mbit/s.

nits: unnecessary capitalization and period, same below

> +# Works with MPlayer, and MS MediaPlayer,and MPlayer Firefox Plugin

Leave out the commas if you use "and" and don't forget the spaces after
a comma.

> +# Stream may take 10 to 20 seconds to start in MPlayer Plugin

plugin

> --- ffserver.conf-3cam-adsl-flv	(revision 0)
> +++ ffserver.conf-3cam-adsl-flv	(revision 0)
> @@ -0,0 +1,153 @@
> +# A tested-working ffserver.conf setup
> +# for  repeating  3 streams coming from an ffmpeg machine

two spaces?

> +# over an adsl connection to dedicated server.

ADSL, to a dedicated

> +# bandwidth to server was around 320 Kb/s.

Capitalize.

> +# ffserver was run on a dedicated
> +# leased server, 2.8 P4, 512 RAM,

2.8GHz, 512MB

> +# ffmpeg was run on local server, and sent streams to
> +# ffserver machine over DSL

on the/a local, to the/a ffserver

> +# This file should work as-is, except that the
> +# IP Address of the machine sending the streams

address

> +# to ffserver needs to be entered in the Feed Definitions.

feed definitions

> +# (See Below).

see below

> +# ffserver and ffmpeg 2 separate machines.

on 2 separate

> +# With Firefox a stream can be tested directly by pointing the
> +# browser to it like: http://<ffserver-host>:8090/test1.flv

s/it like//, same below

> +#  For NTSC Try Frame Rates of 1, 3, or 9.99.

try framerates

> +# The Q	value is pretty important here. Values of around 5 to 7.5

Why the spaces?  same below

> +# in this instance values grater than 10 will probably make image indiscernable.

grEater, s/indiscernable/unrecognizable/

> +# Flash Player has a limit of 16,500 frames.
> +# When using a browser, it is necessary to refresh the viewing
> +# page periodically, or the stream will block.

refresh the viewed page / refresh the page being viewed, same below

> +# IntraOnly: This is like specifying VideoGOPSize 0, or -g 0 on the
> +# command line for ffmpeg. No inter-frame prediction. May give better
> +# Image quality, but a fatter stream.

image, produces a fatter stream

> +# VideoGOPSize: Increasing the value for this increases the amount
> +# of inter-frame prediction. Setting it very low, will give a better

s/,//

> --- ffserver.conf-3cam-lan-flv	(revision 0)
> +++ ffserver.conf-3cam-lan-flv	(revision 0)
> @@ -0,0 +1,145 @@
> +# Machine was a 1100 Celeron  with 512M RAM.

MB

> +# When dealing with NTSC set frame rate to exactly 29.97 to

framerate, same below

> --- ffserver.conf-swf-flv	(revision 0)
> +++ ffserver.conf-swf-flv	(revision 0)
> @@ -0,0 +1,98 @@
> +VideoBufferSize 128      # adsjust with bitrate, and q.

adjust

Diego




More information about the ffmpeg-devel mailing list