Broadcast Extraction Service (BES) API and usage

BES is a REST webservice with a single method which is called with a GET request like


It responds as appropriate by

  1. Starting a new transcoding process for the requested broadcast,
  2. Reporting status information on an in-progress transcoding, or
  3. Returning a reference to a file created by a completed transcoding process.

For each shard-uuid requested, corresponding to a single TV or Radio broadcast, BES creates two files - a media file <uuid>.flv or <uuid>.mp3, and a lock file <uuid>.lck. On completion of transcoding, the .lck file is deleted. The status returned by BES is therefore determined as follows

  1. If neither file exists, a new transcoding is started and the status STARTING is returned.

  2. If the .lck file exists, status STARTED is returned along with a reference to the unfinished media file if it has been created and an estimate of the completion percentage.

  3. If the media file exists but the .lck file does not exist, the status DONE is returned along with a reference to the media file.

On reload of the web-application, any .lck files are deleted along with their corresponding media files, thus cleaning up any partially completed transcodings.

BESUsage (last edited 2011-01-06 07:07:30 by csr)