~ubuntu-branches/ubuntu/jaunty/xvidcap/jaunty-proposed

« back to all changes in this revision

Viewing changes to ffmpeg/doc/ffserver.conf

  • Committer: Bazaar Package Importer
  • Author(s): John Dong
  • Date: 2008-02-25 15:47:12 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080225154712-qvr11ekcea4c9ry8
Tags: 1.1.6-0.1ubuntu1
* Merge from debian-multimedia (LP: #120003), Ubuntu Changes:
 - For ffmpeg-related build-deps, remove cvs from package names.
 - Standards-Version 3.7.3
 - Maintainer Spec

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
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
 
2
# port from your standard HTTP web server if it is running on the same
3
3
# computer.
4
4
Port 8090
5
5
 
13
13
MaxClients 1000
14
14
 
15
15
# This the maximum amount of kbit/sec that you are prepared to
16
 
# consume when streaming to clients
 
16
# consume when streaming to clients.
17
17
MaxBandwidth 1000
18
18
 
19
 
# Access Log file (uses standard Apache log file format)
20
 
# '-' is the standard output
 
19
# Access log file (uses standard Apache log file format)
 
20
# '-' is the standard output.
21
21
CustomLog -
22
22
 
23
 
# Suppress that if you want to launch ffserver as a daemon
 
23
# Suppress that if you want to launch ffserver as a daemon.
24
24
NoDaemon
25
25
 
26
26
 
34
34
 
35
35
# You must use 'ffmpeg' to send a live feed to ffserver. In this
36
36
# example, you can type:
37
 
 
37
#
38
38
# ffmpeg http://localhost:8090/feed1.ffm
39
39
 
40
40
# ffserver can also do time shifting. It means that it can stream any
41
41
# previously recorded live stream. The request should contain:
42
42
# "http://xxxx?date=[YYYY-MM-DDT][[HH:]MM:]SS[.m...]".You must specify
43
43
# a path where the feed is stored on disk. You also specify the
44
 
# maximum size of the feed (100M bytes here). Default:
 
44
# maximum size of the feed, where zero means unlimited. Default:
45
45
# File=/tmp/feed_name.ffm FileMaxSize=5M
46
46
File /tmp/feed1.ffm
47
47
FileMaxSize 200K
48
48
 
49
49
# You could specify
50
50
# ReadOnlyFile /saved/specialvideo.ffm
51
 
# This marks the file as readonly and it will not be deleted or updated
52
 
 
53
 
# Specify launch in order to start ffmpeg automatically
54
 
#Launch
55
 
 
56
 
# Only allow connections from localhost to the feed
 
51
# This marks the file as readonly and it will not be deleted or updated.
 
52
 
 
53
# Specify launch in order to start ffmpeg automatically.
 
54
# First ffmpeg must be defined with an appropriate path if needed,
 
55
# after that options can follow, but avoid adding the http:// field
 
56
#Launch ffmpeg
 
57
 
 
58
# Only allow connections from localhost to the feed.
57
59
ACL allow 127.0.0.1
58
60
 
59
61
</Feed>
71
73
Feed feed1.ffm
72
74
 
73
75
# Format of the stream : you can choose among:
74
 
# mpeg       : MPEG1 multiplexed video and audio
75
 
# mpegvideo  : only MPEG1 video
76
 
# mp2        : MPEG2 audio (use AudioCodec to select layer 2 and 3 codec)
 
76
# mpeg       : MPEG-1 multiplexed video and audio
 
77
# mpegvideo  : only MPEG-1 video
 
78
# mp2        : MPEG-2 audio (use AudioCodec to select layer 2 and 3 codec)
77
79
# ogg        : Ogg format (Vorbis audio codec)
78
 
# rm         : Real Networks compatible stream. Multiplexed audio and video.
79
 
# ra         : Real Networks compatible stream. Audio only.
 
80
# rm         : RealNetworks-compatible stream. Multiplexed audio and video.
 
81
# ra         : RealNetworks-compatible stream. Audio only.
80
82
# mpjpeg     : Multipart JPEG (works with Netscape without any plugin)
81
83
# jpeg       : Generate a single JPEG image.
82
84
# asf        : ASF compatible streaming (Windows Media Player format).
83
 
# swf        : Macromedia flash(tm) compatible stream
84
 
# avi        : AVI format (open divx video, mpeg audio sound)
 
85
# swf        : Macromedia Flash compatible stream
 
86
# avi        : AVI format (MPEG-4 video, MPEG audio sound)
85
87
# master     : special ffmpeg stream used to duplicate a server
86
88
Format mpeg
87
89
 
88
90
# Bitrate for the audio stream. Codecs usually support only a few
89
 
# different bitrates. 
 
91
# different bitrates.
90
92
AudioBitRate 32
91
93
 
92
 
# Number of audio channels : 1 = mono, 2 = stereo
 
94
# Number of audio channels: 1 = mono, 2 = stereo
93
95
AudioChannels 1
94
96
 
95
97
# Sampling frequency for audio. When using low bitrates, you should
97
99
# depend on the selected audio codec.
98
100
AudioSampleRate 44100
99
101
 
100
 
# Bitrate for the video stream.
 
102
# Bitrate for the video stream
101
103
VideoBitRate 64
102
104
 
 
105
# Ratecontrol buffer size
 
106
VideoBufferSize 40
 
107
 
103
108
# Number of frames per second
104
109
VideoFrameRate 3
105
110
 
106
 
# Size of the video frame : WxH (default: 160x128)
107
 
# The following abbreviation are defined : sqcif, qcif, cif, 4cif
 
111
# Size of the video frame: WxH (default: 160x128)
 
112
# The following abbreviations are defined: sqcif, qcif, cif, 4cif
108
113
VideoSize 160x128
109
114
 
110
 
# transmit only intra frames (useful for low bitrates, but kills frame rate) 
 
115
# Transmit only intra frames (useful for low bitrates, but kills frame rate).
111
116
#VideoIntraOnly
112
117
 
113
 
# If non intra only, an intra frame is transmitted every VideoGopSize
114
 
# frames Video synchronization can only begin at an I frames.
 
118
# If non-intra only, an intra frame is transmitted every VideoGopSize
 
119
# frames. Video synchronization can only begin at an intra frame.
115
120
VideoGopSize 12
116
121
 
117
 
# More MPEG4 parameters
 
122
# More MPEG-4 parameters
118
123
# VideoHighQuality
119
124
# Video4MotionVector
120
125
 
121
 
# Choose your codecs: 
 
126
# Choose your codecs:
122
127
#AudioCodec mp2
123
128
#VideoCodec mpeg1video
124
129
 
133
138
 
134
139
# Set this to the number of seconds backwards in time to start. Note that
135
140
# most players will buffer 5-10 seconds of video, and also you need to allow
136
 
# for a key frame to appear in the data stream.
137
 
#PreRoll 15
 
141
# for a keyframe to appear in the data stream.
 
142
#Preroll 15
138
143
 
139
144
# ACL:
140
145
 
148
153
# stream basis. The first match defines the action. If there are no matches,
149
154
# then the default is the inverse of the last ACL statement.
150
155
#
151
 
# Thus 'ACL allow localhost' only allows access from localhost. 
 
156
# Thus 'ACL allow localhost' only allows access from localhost.
152
157
# 'ACL deny 1.0.0.0 1.255.255.255' would deny the whole of network 1 and
153
158
# allow everybody else.
154
159
 
167
172
#VideoFrameRate 2
168
173
#VideoIntraOnly
169
174
#NoAudio
 
175
#Strict -1
170
176
#</Stream>
171
177
 
172
178
 
175
181
#<Stream test.jpg>
176
182
#Feed feed1.ffm
177
183
#Format jpeg
178
 
#VideoFrameRate 2 
 
184
#VideoFrameRate 2
179
185
#VideoIntraOnly
180
186
##VideoSize 352x240
181
187
#NoAudio
 
188
#Strict -1
182
189
#</Stream>
183
190
 
184
191
 
201
208
VideoFrameRate 15
202
209
VideoSize 352x240
203
210
VideoBitRate 256
 
211
VideoBufferSize 40
204
212
VideoGopSize 30
205
213
AudioBitRate 64
206
214
StartSendOnKey
207
215
</Stream>
208
216
 
209
217
 
210
 
# MP3 audio 
 
218
# MP3 audio
211
219
 
212
220
#<Stream test.mp3>
213
221
#Feed feed1.ffm
257
265
 
258
266
 
259
267
##################################################################
260
 
# A stream coming from a file : you only need to set the input
261
 
# filename and optionnally a new format. Supported conversions:
262
 
#    avi -> asf
 
268
# A stream coming from a file: you only need to set the input
 
269
# filename and optionally a new format. Supported conversions:
 
270
#    AVI -> ASF
263
271
 
264
272
#<Stream file.rm>
265
273
#File "/usr/local/httpd/htdocs/tlive.rm"
279
287
##################################################################
280
288
# RTSP examples
281
289
#
282
 
# You can access to this stream with the RTSP URL:
 
290
# You can access this stream with the RTSP URL:
283
291
#   rtsp://localhost:5454/test1-rtsp.mpg
284
292
#
285
 
# A non standard RTSP redirector is also created. Its URL is:
 
293
# A non-standard RTSP redirector is also created. Its URL is:
286
294
#   http://localhost:8090/test1-rtsp.rtsp
287
295
 
288
296
#<Stream test1-rtsp.mpg>
302
310
# 'sdp' extension to the stream name (here
303
311
# http://localhost:8090/test1-sdp.sdp). You should usually give this
304
312
# file to your player to play the stream.
305
 
 
313
#
306
314
# The 'NoLoop' option can be used to avoid looping when the stream is
307
315
# terminated.
308
316
 
324
332
<Stream stat.html>
325
333
Format status
326
334
 
327
 
# Only allow local people to get to the status
 
335
# Only allow local people to get the status
328
336
ACL allow localhost
329
337
ACL allow 192.168.0.0 192.168.255.255
330
338
 
335
343
# Redirect index.html to the appropriate site
336
344
 
337
345
<Redirect index.html>
338
 
URL http://ffmpeg.sourceforge.net/
 
346
URL http://www.ffmpeg.org/
339
347
</Redirect>
340
348
 
341
349