Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Port on which the server is listening. You must select a different
- # port from your standard HTTP web server if it is running on the same
- # computer.
- Port 9001
- #RTSPPort 9000
- # Address on which the server is bound. Only useful if you have
- # several network interfaces.
- BindAddress 0.0.0.0
- # Number of simultaneous HTTP connections that can be handled. It has
- # to be defined *before* the MaxClients parameter, since it defines the
- # MaxClients maximum limit.
- MaxHTTPConnections 2000
- # Number of simultaneous requests that can be handled. Since FFServer
- # is very fast, it is more likely that you will want to leave this high
- # and use MaxBandwidth, below.
- MaxClients 1000
- # This the maximum amount of kbit/sec that you are prepared to
- # consume when streaming to clients.
- MaxBandwidth 100000
- # Access log file (uses standard Apache log file format)
- # '-' is the standard output.
- CustomLog -
- # Suppress that if you want to launch ffserver as a daemon.
- NoDaemon
- ##################################################################
- # Definition of the live feeds. Each live feed contains one video
- # and/or audio sequence coming from an ffmpeg encoder or another
- # ffserver. This sequence may be encoded simultaneously with several
- # codecs at several resolutions.
- <Feed feed2.ffm>
- # You must use 'ffmpeg' to send a live feed to ffserver. In this
- # example, you can type:
- #
- # ffmpeg http://localhost:8090/feed1.ffm
- # ffserver can also do time shifting. It means that it can stream any
- # previously recorded live stream. The request should contain:
- # "http://xxxx?date=[YYYY-MM-DDT][[HH:]MM:]SS[.m...]".You must specify
- # a path where the feed is stored on disk. You also specify the
- # maximum size of the feed, where zero means unlimited. Default:
- # File=/tmp/feed_name.ffm FileMaxSize=5M
- #File /tmp/feed1.ffm
- #FileMaxSize 100M
- # You could specify
- # ReadOnlyFile /saved/specialvideo.ffm
- # This marks the file as readonly and it will not be deleted or updated.
- # Specify launch in order to start ffmpeg automatically.
- # First ffmpeg must be defined with an appropriate path if needed,
- # after that options can follow, but avoid adding the http:// field
- #Launch ffmpeg
- # Only allow connections from localhost to the feed.
- ACL allow 127.0.0.1 94.237.88.69
- </Feed>
- <Stream studio.m3u8>
- Feed feed2.ffm
- Format segment
- VideoCodec libx264
- VideoFrameRate 30
- VideoSize 544x288
- VideoBitRate 300
- VideoBufferSize 200
- VideoGopSize 30
- NoAudio
- AVOptionVideo profile:v baseline
- # AVOptionVideo movflags frag_keyframe+empty_moov
- AVOptionVideo map 0
- AVOptionVideo me_range 16
- AVOptionVideo qdiff 4
- AVOptionVideo qmin 3
- AVOptionVideo qmax 30
- AVOptionVideo crf 23
- AVOptionVideo pix_fmt yuv420p
- AVOptionVideo bsf:v h264_mp4annexb
- AVOptionVideo segment_format mpegts /tmp/stream%05d.ts
- AVOptionVideo segment_list studio.m3u8
- #AVOptionVideo segment_list_flags +live
- AVOptionVideo segment_wrap 500
- AVOptionVideo segment_time 10 out%03d.ts
- AVOptionVideo flags -global_header
- #VideoQMin 3
- #VideoQMax 31
- StartSendOnKey
- </Stream>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement