Advertisement
Guest User

Untitled

a guest
Apr 14th, 2013
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.11 KB | None | 0 0
  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. Port 9001
  5. #RTSPPort 9000
  6. # Address on which the server is bound. Only useful if you have
  7. # several network interfaces.
  8. BindAddress 0.0.0.0
  9.  
  10. # Number of simultaneous HTTP connections that can be handled. It has
  11. # to be defined *before* the MaxClients parameter, since it defines the
  12. # MaxClients maximum limit.
  13. MaxHTTPConnections 2000
  14.  
  15. # Number of simultaneous requests that can be handled. Since FFServer
  16. # is very fast, it is more likely that you will want to leave this high
  17. # and use MaxBandwidth, below.
  18. MaxClients 1000
  19.  
  20. # This the maximum amount of kbit/sec that you are prepared to
  21. # consume when streaming to clients.
  22. MaxBandwidth 100000
  23.  
  24. # Access log file (uses standard Apache log file format)
  25. # '-' is the standard output.
  26. CustomLog -
  27.  
  28. # Suppress that if you want to launch ffserver as a daemon.
  29. NoDaemon
  30.  
  31. ##################################################################
  32. # Definition of the live feeds. Each live feed contains one video
  33. # and/or audio sequence coming from an ffmpeg encoder or another
  34. # ffserver. This sequence may be encoded simultaneously with several
  35. # codecs at several resolutions.
  36.  
  37. <Feed feed2.ffm>
  38.  
  39. # You must use 'ffmpeg' to send a live feed to ffserver. In this
  40. # example, you can type:
  41. #
  42. # ffmpeg http://localhost:8090/feed1.ffm
  43.  
  44. # ffserver can also do time shifting. It means that it can stream any
  45. # previously recorded live stream. The request should contain:
  46. # "http://xxxx?date=[YYYY-MM-DDT][[HH:]MM:]SS[.m...]".You must specify
  47. # a path where the feed is stored on disk. You also specify the
  48. # maximum size of the feed, where zero means unlimited. Default:
  49. # File=/tmp/feed_name.ffm FileMaxSize=5M
  50. #File /tmp/feed1.ffm
  51. #FileMaxSize 100M
  52.  
  53. # You could specify
  54. # ReadOnlyFile /saved/specialvideo.ffm
  55. # This marks the file as readonly and it will not be deleted or updated.
  56.  
  57. # Specify launch in order to start ffmpeg automatically.
  58. # First ffmpeg must be defined with an appropriate path if needed,
  59. # after that options can follow, but avoid adding the http:// field
  60. #Launch ffmpeg
  61.  
  62. # Only allow connections from localhost to the feed.
  63. ACL allow 127.0.0.1 94.237.88.69
  64.  
  65. </Feed>
  66.  
  67. <Stream studio.m3u8>
  68. Feed feed2.ffm
  69. Format segment
  70. VideoCodec libx264
  71. VideoFrameRate 30
  72. VideoSize 544x288
  73. VideoBitRate 300
  74. VideoBufferSize 200
  75. VideoGopSize 30
  76. NoAudio
  77. AVOptionVideo profile:v baseline
  78. # AVOptionVideo movflags frag_keyframe+empty_moov
  79. AVOptionVideo map 0
  80. AVOptionVideo me_range 16
  81. AVOptionVideo qdiff 4
  82. AVOptionVideo qmin 3
  83. AVOptionVideo qmax 30
  84. AVOptionVideo crf 23
  85. AVOptionVideo pix_fmt yuv420p
  86. AVOptionVideo bsf:v h264_mp4annexb
  87. AVOptionVideo segment_format mpegts /tmp/stream%05d.ts
  88. AVOptionVideo segment_list studio.m3u8
  89. #AVOptionVideo segment_list_flags +live
  90. AVOptionVideo segment_wrap 500
  91. AVOptionVideo segment_time 10 out%03d.ts
  92. AVOptionVideo flags -global_header
  93. #VideoQMin 3
  94. #VideoQMax 31
  95. StartSendOnKey
  96. </Stream>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement