Created
January 23, 2020 00:43
-
-
Save bdwilson/a4a57794208acd55123cfa6d345a34ac to your computer and use it in GitHub Desktop.
ffserver.conf for wyze v2 Octocam
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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. | |
HTTPPort 8090 | |
# Address on which the server is bound. Only useful if you have | |
# several network interfaces. | |
HTTPBindAddress 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 50000 | |
# Access log file (uses standard Apache log file format) | |
# '-' is the standard output. | |
CustomLog - | |
################################################################## | |
# 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 camera.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/camera.ffm | |
FileMaxSize 5M | |
# 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 | |
</Feed> | |
<Stream camera.mjpeg> | |
Feed camera.ffm | |
Format mpjpeg | |
VideoFrameRate 6 | |
VideoSize 640x360 | |
VideoBitRate 2048 | |
VideoIntraOnly | |
NoAudio | |
Strict -1 | |
</Stream> | |
<Stream static-camera.jpg> | |
Feed camera.ffm | |
Format jpeg | |
VideoFrameRate 2 | |
VideoIntraOnly | |
VideoSize 1920x1080 | |
NoAudio | |
NoDefaults | |
Strict -1 | |
</Stream> | |
<Stream stat.html> | |
Format status | |
# Only allow local people to get the status | |
ACL allow localhost | |
ACL allow 192.168.0.0 192.168.255.255 | |
</Stream> | |
[07:42][wilson@homer:/etc]$ | |
[07:43][wilson@homer:/etc]$ cat ffserver.conf | |
# 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. | |
HTTPPort 8090 | |
# Address on which the server is bound. Only useful if you have | |
# several network interfaces. | |
HTTPBindAddress 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 50000 | |
# Access log file (uses standard Apache log file format) | |
# '-' is the standard output. | |
CustomLog - | |
################################################################## | |
# 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 camera.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/camera.ffm | |
FileMaxSize 5M | |
# 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 | |
</Feed> | |
<Stream camera.mjpeg> | |
Feed camera.ffm | |
Format mpjpeg | |
VideoFrameRate 6 | |
VideoSize 640x360 | |
VideoBitRate 2048 | |
VideoIntraOnly | |
NoAudio | |
Strict -1 | |
</Stream> | |
<Stream static-camera.jpg> | |
Feed camera.ffm | |
Format jpeg | |
VideoFrameRate 2 | |
VideoIntraOnly | |
VideoSize 1920x1080 | |
NoAudio | |
NoDefaults | |
Strict -1 | |
</Stream> | |
<Stream stat.html> | |
Format status | |
# Only allow local people to get the status | |
ACL allow localhost | |
ACL allow 192.168.0.0 192.168.255.255 | |
</Stream> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment