CLI for EVO Media Server
sh
pip install ems-cli
Creates secondary name(s) for group name.
sh
ems-add-group-name-alias --connection-uri="http://127.0.0.1:7777" MyGroup TestGroupAlias
Create secondary name(s) for internal streams.
sh
ems-add-stream-alias --connection-uri="http://127.0.0.1:7777" --expire-period=-300 bunny video1
Create Dynamic Adaptive Streaming over HTTP (DASH) out of an existing H.264/AAC stream.
sh
ems-create-dash-stream --connection-uri="http://127.0.0.1:7777" --group-name=dash testpullStream "../evo-webroot"
Create an HDS (HTTP Dynamic Streaming) stream out of an existing H.264/AAC stream.
sh
ems-create-hds-stream --connection-uri="http://127.0.0.1:7777" --group-name=hds --playlist-type=rolling testpullStream "../evo-webroot"
Create an HTTP Live Stream (HLS) out of an existing H.264/AAC stream.
sh
ems-create-hls-stream --connection-uri="http://127.0.0.1:7777" --bandwidths=128 --group-name=hls --playlist-type=rolling --playlist-length=10 --chunk-length=5 hlstest "/MyWebRoot/"
Creates an RTMP ingest point.
sh
ems-create-ingest-point --connection-uri="http://127.0.0.1:7777" theIngestPoint useMeToViewStream
Create a Microsoft Smooth Stream (MSS) out of an existing H.264/AAC stream.
sh
ems-create-mss-stream --connection-uri="http://127.0.0.1:7777" --group-name=mss testpullStream "../evo-webroot"
Invalidates all group name aliases.
sh
ems-flush-group-name-aliases --connection-uri="http://127.0.0.1:7777"
Invalidates all stream aliases.
sh
ems-flush-stream-aliases --connection-uri="http://127.0.0.1:7777"
Information of the stream by the configId.
sh
ems-get-config-info --connection-uri="http://127.0.0.1:7777" 1
Returns the group name given the alias name.
sh
ems-get-group-name-by-alias --connection-uri="http://127.0.0.1:7777" TestGroupAlias
Detailed set of information about a stream.
sh
ems-get-stream-info-by-id --connection-uri="http://127.0.0.1:7777" 1
Detailed set of information about a stream.
sh
ems-get-stream-info-by-name --connection-uri="http://127.0.0.1:7777" testpullStream
Number of active streams.
sh
ems-get-streams-count --connection-uri="http://127.0.0.1:7777"
Checks a specific stream if it is running or not.
sh
ems-is-stream-running-by-id --connection-uri="http://127.0.0.1:7777" 1
Checks a specific stream if it is running or not.
sh
ems-is-stream-running-by-name --connection-uri="http://127.0.0.1:7777" testStream
List with all push/pull configurations.
sh
ems-list-config --connection-uri="http://127.0.0.1:7777"
A complete list of group name aliases.
sh
ems-list-group-name-aliases --connection-uri="http://127.0.0.1:7777"
All currently active HTTP streaming sessions.
sh
ems-list-http-streaming-sessions --connection-uri="http://127.0.0.1:7777"
The currently available Ingest Points.
sh
ems-list-ingest-points --connection-uri="http://127.0.0.1:7777"
A complete list of aliases.
sh
ems-list-stream-aliases --connection-uri="http://127.0.0.1:7777"
sh
ems-list-streams --connection-uri="http://127.0.0.1:7777"
A list of IDs for every active stream.
sh
ems-list-streams-ids --connection-uri="http://127.0.0.1:7777"
Pull in a stream from an external source.
sh
ems-pull-stream --connection-uri="http://127.0.0.1:7777" --local-stream-name=testpullStream "rtmp://s2pchzxmtymn2k.cloudfront.net/cfx/st/mp4:sintel.mp4"
Push a local stream to an external destination.
sh
ems-push-stream --connection-uri="http://127.0.0.1:7777" --local-stream-name=testpullstream --target-stream-name=testpushStream "rtmp://DestinationAddress/live"
Records any inbound stream.
sh
ems-record --connection-uri="http://127.0.0.1:7777" --type=mp4 --overwrite=1 testpullstream "../media/testRecord"
Stop the stream and remove the corresponding configuration entry.
sh
ems-remove-config-by-id --connection-uri="http://127.0.0.1:7777" 55
Stop the stream and remove the corresponding configuration entry.
sh
ems-remove-config-by-group-name --connection-uri="http://127.0.0.1:7777" hls
Remove an alias of a group.
sh
ems-remove-group-name-alias --connection-uri="http://127.0.0.1:7777" TestGroupAlias
Remove an RTMP ingest point.
sh
ems-remove-ingest-point --connection-uri="http://127.0.0.1:7777" theIngestPoint
Remove an alias of a stream.
sh
ems-remove-stream-alias --connection-uri="http://127.0.0.1:7777" video1
Terminate a stream.
sh
ems-shutdown-stream-by-id --connection-uri="http://127.0.0.1:7777" 55
Terminate a stream.
sh
ems-shutdown-stream-by-name --connection-uri="http://127.0.0.1:7777" testpullstream
Change the compression characteristics of an audio/video stream.
sh
ems-transcode --connection-uri="http://127.0.0.1:7777" --group_name=group --video-bitrates=200k "rtmp://s2pchzxmtymn2k.cloudfront.net/cfx/st/mp4:sintel.mp4" stream1