Start or stop digital video recording from the command line

Flash Media Interactive Server 3.5 and later supports DVR media players. When a publisher and server-side DVR application exist, DVR media players let users rewind and pause a live stream and resume playback from the paused location. Flash Media Live Encoder supports this functionality by letting you start and stop recording within the encoding environment. To enable DVR functionality, record the live stream to the server as it streams.

To manage recording from the command-line, use the options in the following table. The fmle_uid parameter specifies the encoding session streaming to a Flash Media Server instance. The value of fmle_uid is fms_URL+stream_name. For example, an encoding session that is running on the server fms.myserver.com with the application named live and the stream named livestream has the following fmle_uid: rtmp://fms.myserver.com/live+livestream.

Option

Description

/dvrstart [fmle_uid]

Immediately starts recording of the encoding session specified by the fmle_uid parameter.

The fmle_uid parameter is optional. When fmle_uid is not used, a new encoding session is launched. Recording begins as soon as encoding begins.

When fmle_uid is used, Flash Media Live Encoder issues the start command to the specified session, which starts recording on the Flash Media Server.If an invalid fmle_uid value is used, Flash Media Live Encoder displays all registerd sessions.

/dvrstop fmle_uid

Immediately stops recording of the encoding session specified by the fmle_uid parameter.

If an invalid or no fmle_uid is used, Flash Media Live Encoder displays all registered sessions.

/dvrstate fmle_uid

Returns the state of the encoding session specified by fmle_uid. The state consists of whether recording is on or off and the duration of the recording.

If an invalid or no fmle_uid is used, Flash Media Live Encoder displays all registered sessions.

DVR functionality is applicable only when streaming media to Flash Media Interactive Server 3.5 and later. DVR operations are performed on both primary and backup (if applicable) servers and for all streams in multi-bit rate encoding.