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.
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.
23
# Suppress that if you want to launch ffserver as a daemon
23
# Suppress that if you want to launch ffserver as a daemon.
35
35
# You must use 'ffmpeg' to send a live feed to ffserver. In this
36
36
# example, you can type:
38
38
# ffmpeg http://localhost:8090/feed1.ffm
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
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
53
# Specify launch in order to start ffmpeg automatically
56
# Only allow connections from localhost to the feed
51
# This marks the file as readonly and it will not be deleted or updated.
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
58
# Only allow connections from localhost to the feed.
57
59
ACL allow 127.0.0.1
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
88
90
# Bitrate for the audio stream. Codecs usually support only a few
92
# Number of audio channels : 1 = mono, 2 = stereo
94
# Number of audio channels: 1 = mono, 2 = stereo
95
97
# Sampling frequency for audio. When using low bitrates, you should
97
99
# depend on the selected audio codec.
98
100
AudioSampleRate 44100
100
# Bitrate for the video stream.
102
# Bitrate for the video stream
105
# Ratecontrol buffer size
103
108
# Number of frames per second
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
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).
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.
117
# More MPEG4 parameters
122
# More MPEG-4 parameters
118
123
# VideoHighQuality
119
124
# Video4MotionVector
121
# Choose your codecs:
126
# Choose your codecs:
123
128
#VideoCodec mpeg1video
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.
141
# for a keyframe to appear in the data stream.
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.
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.
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:
268
# A stream coming from a file: you only need to set the input
269
# filename and optionally a new format. Supported conversions:
264
272
#<Stream file.rm>
265
273
#File "/usr/local/httpd/htdocs/tlive.rm"
279
287
##################################################################
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
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
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.
306
314
# The 'NoLoop' option can be used to avoid looping when the stream is