Creating Videos with Remote Video Files Using FTP Batch Provisioning

Product
Video Cloud
Applies to Roles
Publisher, Developer
Version
Brightcove 5
Edition
Pro, Enterprise

FTP batch provisioning and remote assets are features that are available only for Video Cloud Pro and Enterprise customers. If you are interested in upgrading your Video Cloud account, please contact Brightcove for more information.

This topic describes how to create videos in your Video Cloud account using remote assets together with the Video Cloud FTP batch provisioning system. Read Creating Videos with Remote Video Files for an overview.

As an alternative to using FTP batch provisioning, you can create videos with remote assets using:

After you create a video using the remote assets approach, you can edit and manage your videos using the Video Cloud Studio, FTP batch provisioning, or the Video Cloud Media API.

Before you begin

In the procedure described in this topic, you use the Video Cloud FTP batch provisioning system to create videos. In order to create videos with remote assets, you need to have your Video Cloud account configured to enable FTP batch provisioning. In addition, some additional account configuration is required, beyond the standard FTP batch provisioning setup. Please contact Brightcove customer support to confirm that your account has been configured to support remote assets before uploading an XML manifest that uses remote assets.

You should also familiarize yourself with the Video Cloud FTP batch provisioning process.

Accessing remote assets

All of your remote asset files must be available at a public URL, without any requirements for authentication or access control. If your remote assets are hosted by a CDN, the URL of the remote assets should be the URL of the assets in the CDN and not the URL on the origin server.

Creating a video with remote assets

You create videos with remote video files by describing them in a batch provisioning manifest and then uploading the batch provisioning manifest to the Video Cloud FTP servers. This process is described in Using FTP Batch Provisioning. For each video you want to create using a remote asset, include a remote-asset element. The remote-asset element takes the place of the asset element in the batch provisioning manifest. When Video Cloud processes your manifest, each remote-asset element is translated into a separate video in your account.

The remote asset tag is an optional child element of the publisher-upload-manifest element and is structured as follows:

<remote-asset refid="asset1"
      display-name="My Video"
      type="VIDEO_FULL"
      remote-url="http://storage.remote.com/mylocation/movie.flv"
      size="188812"
      video-duration="500000"
      video-codec="SORENSON"/>

There must be a remote-asset element for each file from the remote location.

Remote asset element attributes

The remote-asset element uses these attributes:

attribute required? description
refid yes A unique identifier for the asset, so that title elements can reference it from within the manifest file.
display-name yes A name for the file. Not more than 100 characters.
type yes The Video Cloud file type. This field must be exactly one of the following strings:
  • VIDEO_FULL - a Flash Video encoded full length video
  • FLV_BUMPER - A Flash Video encoded bumper video (15 second clip)
  • THUMBNAIL - an image file used as a thumbnail in listings
  • VIDEO_STILL - a still image from the video
  • BACKGROUND - a background image to use in video players, etc.
  • LOGO - a publisher logo image
  • LOGO_OVERLAY - An image used for branding over video.
  • OTHER_IMAGE - miscellaneous image type
remote-url yes The complete path to the file hosted on the remote server. If the file is served using progressive download, then you must include the file name and extension for the file. You can also use a URL that re-directs to a URL that includes the file name and extension. If the file is served using Flash streaming, use the remote-stream-name attribute to provide the stream name. See Accessing remote assets.
remote-stream-name required for streaming assets; optional for progressive download A stream name for Flash streaming appended to the value of the remote-url attribute. See Accessing remote assets.
size yes The size of the file in bytes (not kilobytes nor megabytes, just bytes). Note that while the size attribute is optional for assets you upload, it is required for remote assets.
frame-height no The height of the image in pixels.
frame-width no The width of the image in pixels.
encoding-rate Required for multiple renditions For multi-bitrate streaming renditions, the encoding rate in bits per second. For example, 150 kbps is specified as 150000.
If you do not supply a value for the encoding rate, the encodingRate property for the video will be returned as 0.
video-duration Required for video assets only The length of the remote video asset in milliseconds. This must be a whole number with no decimal places. For live streams, set this to -1.
video-codec Required for video assets only This field must be exactly one of the following strings:
  • H264
  • ON2
  • SORENSON
controller-type Required for live streams only Depending on your CDN, one of the following values:
  • AKAMAI_STREAMING
  • AKAMAI_LIVE
  • AKAMAI_HD
  • AKAMAI_HD_LIVE (for live with DVR)
  • LIMELIGHT_LIVE
  • LIVE_STREAMING
See Setting the controller-type for more information.

Streaming remote assets

If your remote assets are served by streaming, rather than progressive download, you need to be sure to specify both the remote-url and the remote-stream-name attributes. For example, if your file's full streaming URL is rtmp://flv.example.com/flash/streams/myDir/streamName.flv, set the remote-url attribute to the connect URL, like this:

remote-url="rtmp://flv.example.com/flash/"

and set the remote-stream-name attribute to the stream name, like this:

remote-stream-name="streams/myDir/streamName"

omitting the .flv file suffix.

Note: If you create a video using a streaming remote video file, you cannot use the Video Cloud image capture tool to create still images from the video.

Setting the controller-type

In the remote-asset element, you may need to set the controller-type attribute, depending on how you are delivering content and what CDN you are using. Here are the possible values for controller-type:

controller-type value description
AKAMAI_STREAMING Akamai CDN, FMS, not live, without TTL
AKAMAI_LIVE Akamai CDN, live, without DVR
AKAMAI_HD Akamai HD
AKAMAI_HD_LIVE live with DVR (whether your account's main CDN is Akamai or not)
LIMELIGHT_LIVE Limelight CDN, live
LIVE_STREAMING Level 3 CDN and some other CDNs, live. Check with Brightcove Customer Support for the proper value for your CDN.

 

Tags
FTP Batch Provisioning, remote assets