Commit | Line | Data |
---|---|---|
9aeeeb63 FB |
1 | # Port on which the server is listening. You must select a different |
2 | # port from your standard http web server if it is running on the same | |
3 | # computer. | |
4 | ||
5 | Port 8080 | |
6 | ||
7 | # Address on which the server is bound. Only useful if you have | |
8 | # several network interfaces. | |
9 | ||
10 | BindAddress 0.0.0.0 | |
11 | ||
12 | # Host and port of the master server if you which that this server | |
13 | # duplicates another existing server. Otherwise, the server does the | |
14 | # audio/video grab itself. See the following options for the grab parameters | |
15 | ||
16 | #MasterServer http://localhost:80/index.html | |
17 | ||
18 | # Grab parameters | |
19 | ||
20 | #AudioDevice /dev/dsp | |
21 | #VideoDevice /dev/video | |
22 | ||
23 | # Number of simultaneous requests that can be handled. Since FFServer | |
24 | # is very fast, this limit is determined mainly by your Internet | |
25 | # connection speed. | |
26 | ||
27 | MaxClients 1000 | |
28 | ||
29 | # Access Log file (uses standard Apache log file format) | |
30 | # '-' is the standard output | |
31 | ||
32 | CustomLog - | |
33 | ||
34 | ################################################################## | |
35 | # Now you can define each stream which will be generated from the | |
36 | # original audio and video stream. Each format has a filename (here | |
37 | # 'test128.mpg'). FFServer will send this stream when answering a | |
38 | # request containing this filename. | |
39 | ||
40 | <Stream test1.mpg> | |
41 | ||
42 | # Format of the stream : you can choose among: | |
43 | # mpeg1 : MPEG1 multiplexed video and audio | |
44 | # mpeg1video : only MPEG1 video | |
45 | # mp2 : MPEG audio layer 2 | |
46 | # mp3 : MPEG audio layer 3 (currently sent as layer 2) | |
47 | # rm : Real Networks compatible stream. Multiplexed audio and video. | |
48 | # ra : Real Networks compatible stream. Audio only. | |
49 | # mpjpeg : Multipart JPEG (works with Netscape without any plugin) | |
50 | # jpeg : Generate a single JPEG image. | |
51 | # asf : ASF compatible stream (Windows Media Player format) | |
52 | # swf : Macromedia flash(tm) compatible stream | |
53 | # master : special ffmpeg stream used to duplicate a server | |
54 | ||
55 | Format mpeg1 | |
56 | ||
57 | # Bitrate for the audio stream. Codecs usually support only a few different bitrates. | |
58 | ||
59 | AudioBitRate 32 | |
60 | ||
61 | # Number of audio channels : 1 = mono, 2 = stereo | |
62 | ||
63 | AudioChannels 1 | |
64 | ||
65 | # Sampling frequency for audio. When using low bitrates, you should | |
66 | # lower this frequency to 22050 or 11025. The supported frequencies | |
67 | # depend on the selected audio codec. | |
68 | ||
69 | AudioSampleRate 44100 | |
70 | ||
71 | # Bitrate for the video stream. | |
72 | VideoBitRate 64 | |
73 | ||
74 | # Number of frames per second | |
75 | VideoFrameRate 3 | |
76 | ||
77 | # Size of the video frame : WxH | |
78 | # W : width, H : height | |
79 | # The following abbreviation are defined : sqcif, qcif, cif, 4cif | |
80 | #VideoSize 352x240 | |
81 | ||
82 | # transmit only intra frames (useful for low bitrates) | |
83 | VideoIntraOnly | |
84 | ||
85 | # If non intra only, an intra frame is transmitted every VideoGopSize | |
86 | # frames Video synchronization can only begin at an I frames. | |
87 | #VideoGopSize 12 | |
88 | ||
89 | </Stream> | |
90 | ||
91 | # second mpeg stream with high frame rate | |
92 | ||
93 | <Stream test2.mpg> | |
94 | Format mpeg1video | |
95 | VideoBitRate 128 | |
96 | VideoFrameRate 25 | |
97 | #VideoSize 352x240 | |
98 | VideoGopSize 25 | |
99 | </Stream> | |
100 | ||
101 | ################################################################## | |
102 | # Another stream : used to download data to another server which | |
103 | # duplicates this one | |
104 | ||
105 | <Stream master> | |
106 | ||
107 | Format master | |
108 | ||
109 | </Stream> | |
110 | ||
111 | ################################################################## | |
112 | # Another stream : Real with audio only at 32 kbits | |
113 | ||
114 | <Stream test.ra> | |
115 | ||
116 | Format ra | |
117 | AudioBitRate 32 | |
118 | ||
119 | </Stream> | |
120 | ||
121 | ################################################################## | |
122 | # Another stream : Real with audio and video at 64 kbits | |
123 | ||
124 | <Stream test.rm> | |
125 | ||
126 | Format rm | |
127 | ||
128 | AudioBitRate 32 | |
129 | VideoBitRate 20 | |
130 | VideoFrameRate 2 | |
131 | VideoIntraOnly | |
132 | ||
133 | </Stream> | |
134 | ||
135 | ################################################################## | |
136 | # Another stream : Mpeg audio layer 2 at 64 kbits. | |
137 | ||
138 | <Stream test.mp2> | |
139 | ||
140 | Format mp2 | |
141 | AudioBitRate 64 | |
142 | AudioSampleRate 44100 | |
143 | ||
144 | </Stream> | |
145 | ||
146 | <Stream test1.mp2> | |
147 | ||
148 | Format mp2 | |
149 | AudioBitRate 32 | |
150 | AudioSampleRate 16000 | |
151 | ||
152 | </Stream> | |
153 | ||
154 | ################################################################## | |
155 | # Another stream : Multipart JPEG | |
156 | ||
157 | <Stream test.mjpg> | |
158 | ||
159 | Format mpjpeg | |
160 | ||
161 | VideoFrameRate 2 | |
162 | VideoIntraOnly | |
163 | ||
164 | </Stream> | |
165 | ||
166 | ################################################################## | |
167 | # Another stream : Multipart JPEG | |
168 | ||
169 | <Stream test.jpg> | |
170 | ||
171 | Format jpeg | |
172 | ||
173 | # the parameters are choose here to take the same output as the | |
174 | # Multipart JPEG one. | |
175 | VideoFrameRate 2 | |
176 | VideoIntraOnly | |
177 | ||
178 | </Stream> | |
179 | ||
180 | ################################################################## | |
181 | # Another stream : Flash | |
182 | ||
183 | <Stream test.swf> | |
184 | ||
185 | Format swf | |
186 | ||
187 | VideoFrameRate 2 | |
188 | VideoIntraOnly | |
189 | ||
190 | </Stream> | |
191 | ||
192 | ||
193 | ################################################################## | |
194 | # Another stream : ASF compatible | |
195 | ||
196 | <Stream test.asf> | |
197 | ||
198 | Format asf | |
199 | ||
200 | AudioBitRate 64 | |
201 | AudioSampleRate 44100 | |
202 | VideoFrameRate 2 | |
203 | VideoIntraOnly | |
204 | ||
205 | </Stream> | |
206 | ||
207 | ################################################################## | |
208 | # Another stream : server status | |
209 | ||
210 | <Stream stat.html> | |
211 | ||
212 | Format status | |
213 | ||
214 | </Stream> |