wok-current rev 16524
ffserver: add config file
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat Apr 26 04:12:58 2014 +0200 (2014-04-26) |
parents | 8c5c14df0537 |
children | 5b89f43c1d20 |
files | ffserver/receipt ffserver/stuff/ffserver.conf |
line diff
1.1 --- a/ffserver/receipt Sat Apr 26 02:27:59 2014 +0200 1.2 +++ b/ffserver/receipt Sat Apr 26 04:12:58 2014 +0200 1.3 @@ -16,6 +16,7 @@ 1.4 # Rules to gen a SliTaz package suitable for Tazpkg. 1.5 genpkg_rules() 1.6 { 1.7 - mkdir -p $fs/usr/bin 1.8 + mkdir -p $fs/usr/bin $fs/etc 1.9 + cp ${stuff}/ffserver.conf $fs/etc 1.10 cp -a $install/usr/bin/ffserver $fs/usr/bin 1.11 }
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/ffserver/stuff/ffserver.conf Sat Apr 26 04:12:58 2014 +0200 2.3 @@ -0,0 +1,377 @@ 2.4 +# /etc/ffserver.conf 2.5 +# 2.6 +# Port on which the server is listening. You must select a different 2.7 +# port from your standard HTTP web server if it is running on the same 2.8 +# computer. 2.9 +Port 8090 2.10 + 2.11 +# Address on which the server is bound. Only useful if you have 2.12 +# several network interfaces. 2.13 +BindAddress 0.0.0.0 2.14 + 2.15 +# Number of simultaneous HTTP connections that can be handled. It has 2.16 +# to be defined *before* the MaxClients parameter, since it defines the 2.17 +# MaxClients maximum limit. 2.18 +MaxHTTPConnections 2000 2.19 + 2.20 +# Number of simultaneous requests that can be handled. Since FFServer 2.21 +# is very fast, it is more likely that you will want to leave this high 2.22 +# and use MaxBandwidth, below. 2.23 +MaxClients 1000 2.24 + 2.25 +# This the maximum amount of kbit/sec that you are prepared to 2.26 +# consume when streaming to clients. 2.27 +MaxBandwidth 1000 2.28 + 2.29 +# Access log file (uses standard Apache log file format) 2.30 +# '-' is the standard output. 2.31 +CustomLog - 2.32 + 2.33 +# Suppress that if you want to launch ffserver as a daemon. 2.34 +NoDaemon 2.35 + 2.36 + 2.37 +################################################################## 2.38 +# Definition of the live feeds. Each live feed contains one video 2.39 +# and/or audio sequence coming from an ffmpeg encoder or another 2.40 +# ffserver. This sequence may be encoded simultaneously with several 2.41 +# codecs at several resolutions. 2.42 + 2.43 +<Feed feed1.ffm> 2.44 + 2.45 +# You must use 'ffmpeg' to send a live feed to ffserver. In this 2.46 +# example, you can type: 2.47 +# 2.48 +# ffmpeg http://localhost:8090/feed1.ffm 2.49 + 2.50 +# ffserver can also do time shifting. It means that it can stream any 2.51 +# previously recorded live stream. The request should contain: 2.52 +# "http://xxxx?date=[YYYY-MM-DDT][[HH:]MM:]SS[.m...]".You must specify 2.53 +# a path where the feed is stored on disk. You also specify the 2.54 +# maximum size of the feed, where zero means unlimited. Default: 2.55 +# File=/tmp/feed_name.ffm FileMaxSize=5M 2.56 +File /tmp/feed1.ffm 2.57 +FileMaxSize 200K 2.58 + 2.59 +# You could specify 2.60 +# ReadOnlyFile /saved/specialvideo.ffm 2.61 +# This marks the file as readonly and it will not be deleted or updated. 2.62 + 2.63 +# Specify launch in order to start ffmpeg automatically. 2.64 +# First ffmpeg must be defined with an appropriate path if needed, 2.65 +# after that options can follow, but avoid adding the http:// field 2.66 +#Launch ffmpeg 2.67 + 2.68 +# Only allow connections from localhost to the feed. 2.69 +ACL allow 127.0.0.1 2.70 + 2.71 +</Feed> 2.72 + 2.73 + 2.74 +################################################################## 2.75 +# Now you can define each stream which will be generated from the 2.76 +# original audio and video stream. Each format has a filename (here 2.77 +# 'test1.mpg'). FFServer will send this stream when answering a 2.78 +# request containing this filename. 2.79 + 2.80 +<Stream test1.mpg> 2.81 + 2.82 +# coming from live feed 'feed1' 2.83 +Feed feed1.ffm 2.84 + 2.85 +# Format of the stream : you can choose among: 2.86 +# mpeg : MPEG-1 multiplexed video and audio 2.87 +# mpegvideo : only MPEG-1 video 2.88 +# mp2 : MPEG-2 audio (use AudioCodec to select layer 2 and 3 codec) 2.89 +# ogg : Ogg format (Vorbis audio codec) 2.90 +# rm : RealNetworks-compatible stream. Multiplexed audio and video. 2.91 +# ra : RealNetworks-compatible stream. Audio only. 2.92 +# mpjpeg : Multipart JPEG (works with Netscape without any plugin) 2.93 +# jpeg : Generate a single JPEG image. 2.94 +# asf : ASF compatible streaming (Windows Media Player format). 2.95 +# swf : Macromedia Flash compatible stream 2.96 +# avi : AVI format (MPEG-4 video, MPEG audio sound) 2.97 +Format mpeg 2.98 + 2.99 +# Bitrate for the audio stream. Codecs usually support only a few 2.100 +# different bitrates. 2.101 +AudioBitRate 32 2.102 + 2.103 +# Number of audio channels: 1 = mono, 2 = stereo 2.104 +AudioChannels 1 2.105 + 2.106 +# Sampling frequency for audio. When using low bitrates, you should 2.107 +# lower this frequency to 22050 or 11025. The supported frequencies 2.108 +# depend on the selected audio codec. 2.109 +AudioSampleRate 44100 2.110 + 2.111 +# Bitrate for the video stream 2.112 +VideoBitRate 64 2.113 + 2.114 +# Ratecontrol buffer size 2.115 +VideoBufferSize 40 2.116 + 2.117 +# Number of frames per second 2.118 +VideoFrameRate 3 2.119 + 2.120 +# Size of the video frame: WxH (default: 160x128) 2.121 +# The following abbreviations are defined: sqcif, qcif, cif, 4cif, qqvga, 2.122 +# qvga, vga, svga, xga, uxga, qxga, sxga, qsxga, hsxga, wvga, wxga, wsxga, 2.123 +# wuxga, woxga, wqsxga, wquxga, whsxga, whuxga, cga, ega, hd480, hd720, 2.124 +# hd1080 2.125 +VideoSize 160x128 2.126 + 2.127 +# Transmit only intra frames (useful for low bitrates, but kills frame rate). 2.128 +#VideoIntraOnly 2.129 + 2.130 +# If non-intra only, an intra frame is transmitted every VideoGopSize 2.131 +# frames. Video synchronization can only begin at an intra frame. 2.132 +VideoGopSize 12 2.133 + 2.134 +# More MPEG-4 parameters 2.135 +# VideoHighQuality 2.136 +# Video4MotionVector 2.137 + 2.138 +# Choose your codecs: 2.139 +#AudioCodec mp2 2.140 +#VideoCodec mpeg1video 2.141 + 2.142 +# Suppress audio 2.143 +#NoAudio 2.144 + 2.145 +# Suppress video 2.146 +#NoVideo 2.147 + 2.148 +#VideoQMin 3 2.149 +#VideoQMax 31 2.150 + 2.151 +# Set this to the number of seconds backwards in time to start. Note that 2.152 +# most players will buffer 5-10 seconds of video, and also you need to allow 2.153 +# for a keyframe to appear in the data stream. 2.154 +#Preroll 15 2.155 + 2.156 +# ACL: 2.157 + 2.158 +# You can allow ranges of addresses (or single addresses) 2.159 +#ACL ALLOW <first address> 2.160 + 2.161 +# You can deny ranges of addresses (or single addresses) 2.162 +#ACL DENY <first address> 2.163 + 2.164 +# You can repeat the ACL allow/deny as often as you like. It is on a per 2.165 +# stream basis. The first match defines the action. If there are no matches, 2.166 +# then the default is the inverse of the last ACL statement. 2.167 +# 2.168 +# Thus 'ACL allow localhost' only allows access from localhost. 2.169 +# 'ACL deny 1.0.0.0 1.255.255.255' would deny the whole of network 1 and 2.170 +# allow everybody else. 2.171 + 2.172 +</Stream> 2.173 + 2.174 + 2.175 +################################################################## 2.176 +# Example streams 2.177 + 2.178 + 2.179 +# Multipart JPEG 2.180 + 2.181 +#<Stream test.mjpg> 2.182 +#Feed feed1.ffm 2.183 +#Format mpjpeg 2.184 +#VideoFrameRate 2 2.185 +#VideoIntraOnly 2.186 +#NoAudio 2.187 +#Strict -1 2.188 +#</Stream> 2.189 + 2.190 + 2.191 +# Single JPEG 2.192 + 2.193 +#<Stream test.jpg> 2.194 +#Feed feed1.ffm 2.195 +#Format jpeg 2.196 +#VideoFrameRate 2 2.197 +#VideoIntraOnly 2.198 +##VideoSize 352x240 2.199 +#NoAudio 2.200 +#Strict -1 2.201 +#</Stream> 2.202 + 2.203 + 2.204 +# Flash 2.205 + 2.206 +#<Stream test.swf> 2.207 +#Feed feed1.ffm 2.208 +#Format swf 2.209 +#VideoFrameRate 2 2.210 +#VideoIntraOnly 2.211 +#NoAudio 2.212 +#</Stream> 2.213 + 2.214 + 2.215 +# ASF compatible 2.216 + 2.217 +<Stream test.asf> 2.218 +Feed feed1.ffm 2.219 +Format asf 2.220 +VideoFrameRate 15 2.221 +VideoSize 352x240 2.222 +VideoBitRate 256 2.223 +VideoBufferSize 40 2.224 +VideoGopSize 30 2.225 +AudioBitRate 64 2.226 +StartSendOnKey 2.227 +</Stream> 2.228 + 2.229 + 2.230 +# MP3 audio 2.231 + 2.232 +#<Stream test.mp3> 2.233 +#Feed feed1.ffm 2.234 +#Format mp2 2.235 +#AudioCodec mp3 2.236 +#AudioBitRate 64 2.237 +#AudioChannels 1 2.238 +#AudioSampleRate 44100 2.239 +#NoVideo 2.240 +#</Stream> 2.241 + 2.242 + 2.243 +# Ogg Vorbis audio 2.244 + 2.245 +#<Stream test.ogg> 2.246 +#Feed feed1.ffm 2.247 +#Title "Stream title" 2.248 +#AudioBitRate 64 2.249 +#AudioChannels 2 2.250 +#AudioSampleRate 44100 2.251 +#NoVideo 2.252 +#</Stream> 2.253 + 2.254 + 2.255 +# Real with audio only at 32 kbits 2.256 + 2.257 +#<Stream test.ra> 2.258 +#Feed feed1.ffm 2.259 +#Format rm 2.260 +#AudioBitRate 32 2.261 +#NoVideo 2.262 +#NoAudio 2.263 +#</Stream> 2.264 + 2.265 + 2.266 +# Real with audio and video at 64 kbits 2.267 + 2.268 +#<Stream test.rm> 2.269 +#Feed feed1.ffm 2.270 +#Format rm 2.271 +#AudioBitRate 32 2.272 +#VideoBitRate 128 2.273 +#VideoFrameRate 25 2.274 +#VideoGopSize 25 2.275 +#NoAudio 2.276 +#</Stream> 2.277 + 2.278 + 2.279 +################################################################## 2.280 +# A stream coming from a file: you only need to set the input 2.281 +# filename and optionally a new format. Supported conversions: 2.282 +# AVI -> ASF 2.283 + 2.284 +#<Stream file.rm> 2.285 +#File "/usr/local/httpd/htdocs/tlive.rm" 2.286 +#NoAudio 2.287 +#</Stream> 2.288 + 2.289 +#<Stream file.asf> 2.290 +#File "/usr/local/httpd/htdocs/test.asf" 2.291 +#NoAudio 2.292 +#Author "Me" 2.293 +#Copyright "Super MegaCorp" 2.294 +#Title "Test stream from disk" 2.295 +#Comment "Test comment" 2.296 +#</Stream> 2.297 + 2.298 + 2.299 +################################################################## 2.300 +# RTSP examples 2.301 +# 2.302 +# You can access this stream with the RTSP URL: 2.303 +# rtsp://localhost:5454/test1-rtsp.mpg 2.304 +# 2.305 +# A non-standard RTSP redirector is also created. Its URL is: 2.306 +# http://localhost:8090/test1-rtsp.rtsp 2.307 + 2.308 +#<Stream test1-rtsp.mpg> 2.309 +#Format rtp 2.310 +#File "/usr/local/httpd/htdocs/test1.mpg" 2.311 +#</Stream> 2.312 + 2.313 + 2.314 +# Transcode an incoming live feed to another live feed, 2.315 +# using libx264 and video presets 2.316 + 2.317 +#<Stream live.h264> 2.318 +#Format rtp 2.319 +#Feed feed1.ffm 2.320 +#VideoCodec libx264 2.321 +#VideoFrameRate 24 2.322 +#VideoBitRate 100 2.323 +#VideoSize 480x272 2.324 +#AVPresetVideo default 2.325 +#AVPresetVideo baseline 2.326 +#AVOptionVideo flags +global_header 2.327 +# 2.328 +#AudioCodec libfaac 2.329 +#AudioBitRate 32 2.330 +#AudioChannels 2 2.331 +#AudioSampleRate 22050 2.332 +#AVOptionAudio flags +global_header 2.333 +#</Stream> 2.334 + 2.335 +################################################################## 2.336 +# SDP/multicast examples 2.337 +# 2.338 +# If you want to send your stream in multicast, you must set the 2.339 +# multicast address with MulticastAddress. The port and the TTL can 2.340 +# also be set. 2.341 +# 2.342 +# An SDP file is automatically generated by ffserver by adding the 2.343 +# 'sdp' extension to the stream name (here 2.344 +# http://localhost:8090/test1-sdp.sdp). You should usually give this 2.345 +# file to your player to play the stream. 2.346 +# 2.347 +# The 'NoLoop' option can be used to avoid looping when the stream is 2.348 +# terminated. 2.349 + 2.350 +#<Stream test1-sdp.mpg> 2.351 +#Format rtp 2.352 +#File "/usr/local/httpd/htdocs/test1.mpg" 2.353 +#MulticastAddress 224.124.0.1 2.354 +#MulticastPort 5000 2.355 +#MulticastTTL 16 2.356 +#NoLoop 2.357 +#</Stream> 2.358 + 2.359 + 2.360 +################################################################## 2.361 +# Special streams 2.362 + 2.363 +# Server status 2.364 + 2.365 +<Stream stat.html> 2.366 +Format status 2.367 + 2.368 +# Only allow local people to get the status 2.369 +ACL allow localhost 2.370 +ACL allow 192.168.0.0 192.168.255.255 2.371 + 2.372 +#FaviconURL http://pond1.gladstonefamily.net:8080/favicon.ico 2.373 +</Stream> 2.374 + 2.375 + 2.376 +# Redirect index.html to the appropriate site 2.377 + 2.378 +<Redirect index.html> 2.379 +URL http://www.ffmpeg.org/ 2.380 +</Redirect>