📄 readme
字号:
Using the video server======================The video server needs a running ordinary web server, in order to publisharchived streams and preview images.It needs one TCP port for receiving the streams from clients and one portfor providing info feeds about the current live and archived streams andfor serving the live streams to users.If no authentication options are given, no authentication is requiredfrom the clients.Running "./movino-daemon -h" gives a short summary of the available commandline options. They are: -i port Sets the port for receiving stream data from clients. (Default 30710) -o port Sets the port for serving all content, both info xml feeds and video streams. (Default 24536) -n hostname Sets the which hostname should be used for accessing the server. It is used for creating the URLs to the live video streams. -d dir Sets the directory where the server stores the archived video files, previews and archive stream metadata. -u url Sets the URL prefix to the archive directory. The server assumes that web clients can access the files within the archive directory by appending the file name within the archive directory to this URL. -p file Loads a list of usernames and passwords from the given file. An example of this kind of file is given in passwords-example. -a url Sets the server to use a drupal site with the movino drupal module for authentication. The URL given is the precise URL to the authentication service. -f format Chooses which format the server encodes to. Currently, the only supported alternatives are ogg, flv and mpeg. (Default ogg) -l file Writes to a log file instead of to stdout. -m g,ps,s Limit the number of concurrent streams. g denotes the maximum global number of client video streams, ps denotes the maximum number of clients per video stream, s denotes the maximum number of sources. Setting a value to 0 menas no limit. (Default 0,0,0) -b address Bind the content serving http server to this adress. (Default all addresses) -s secretfile Load a shared secret from the given file. This is used for authentication of commands over the http interface. The authentication is based on HMAC-MD5, and therefore the secret file should optimally be 64 bytes large.HTTP interface==============The server provides information on the current live streams on theURL http://<server>:<port>/live.xml by default, and information onthe archived streams on /archived.xml. The URLs of the actual videostreams are mentioned in these XML feeds.By uncommenting the line mentioning MESSAGE_NAME in main.cpp, theserver also accepts messages to the clients on the URL /message (orwhatever MESSAGE_NAME is set to). The message is sent by normal formencoded data, either as GET or POST. The field id must be present,specifying which client stream to send the message to. (This matchesthe id element in the live stream XML feed.) The field msg containsthe actual message. An example of a message query string:http://server:24536/message?id=1234567890abcdef&msg=Hello+World%21To restrict the access to this messaging service (e.g. to restrictits usage to a web interface), a secret key file can be specified.The key file is used as a key to a HMAC-MD5, and therefore optimallyshould be 64 bytes long. The same secret key file should be availableto the video server and to the party creating the queries, and thesecret key file can be any random data. If this file is specified, thequery also needs to contain a timestamp field. This simply containsthe unix timestamp value for the time when the query was sent/generated.If this differs more than 10 seconds from the timestamp when this isverified, the query is discarded.When the query has been constructed, the HMAC-MD5 of the query stringis calculated using the secret key. This hash is appended to the querystring.An reference example query for a secret key file consisting of 64zero bytes would be:http://server:24536/message?id=1234567890abcdef&msg=Hello+World%21×tamp=1208027684&hash=baf21dd8c9b0ecbc9bad1dc863a74fc5That is, the HMAC-MD5 of id=1234567890abcdef&msg=Hello+World%21×tamp=1208027684is baf21dd8c9b0ecbc9bad1dc863a74fc5, using the given secret keyof 64 zero bytes.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -