> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mottostreaming.com/llms.txt
> Use this file to discover all available pages before exploring further.

# VOD

> Learn how to upload Video-On-Demand (VOD) content to Motto.

## Introduction

Once a Motto live-stream ends, it automatically becomes a Video-On-Demand (VOD) stream. This means that your users can watch the stream after it has ended at their leisure.

However, you may also want to upload VOD content that was not streamed live. This guide will show you how to do that.

## Get Started

<AccordionGroup>
  <Accordion title="Via the Studio">
    #### Uploading

    When using the [Studio](https://studio.mottostreaming.com), VOD creation is a part of the process of creating a new
    [event](/guides/cms/events) or [creative work](/guides/cms/creative-works). When doing so, you will be asked
    to create one or more "streams", after which you can select "Video Upload". If you are uploading a large file
    (like a full sports match), this may take a while, and it is important to keep your browser window open during the upload.

    <img src="https://mintcdn.com/motto/cBpRj-PyqIlSlCJu/images/upload-creation.png?fit=max&auto=format&n=cBpRj-PyqIlSlCJu&q=85&s=7a8bd0012adebf7d8e84f07362c7151a" width="1858" height="826" data-path="images/upload-creation.png" />

    You can associate more than one upload to a single event or creative work,
    which may be desirable when you want to upload e.g. multiple camera angles for the viewer to choose from.

    #### Processing

    Once your file is uploaded, our systems will take some time to process your file(s). This may take a while, depending on the size of the file.

    #### Publishing

    Once your video file is fully processed, you can press the "Save" button in the event/creative work creation sidebar.

    You can then navigate to the Studio's [Video Manager](/glossary/video-manager) and see your video appear there. However, it is not yet available to be watched by your viewers.
    You will first need to publish the video, which can be done by setting the visibility to "published" in the Video Settings tab in the Video Manager.
  </Accordion>

  <Accordion title="Via the API">
    If you prefer using the Studio API to interact with the Motto platform, you can follow the following steps to achieve
    the same result as described in the "Via the Studio" section.

    1. Create an [asset upload session](/reference/studio-api/streaming/uploads/v1/create-upload) (e.g. mp4 file)
    2. Upload your file to the `signed_url` provided in the response from step 1.
    3. [Create a VOD object](/reference/studio-api/streaming/vods/v1/create-vod) with the `reserved_asset_id` from step 1.
    4. [Start processing](/reference/studio-api/streaming/vods/v1/process-vod) the VOD object from step 3.
    5. [Retrieve the video](/reference/studio-api/streaming/videos/v1/get-video) using the `video_id` from step 4.
    6. [Publish the playlist](/reference/studio-api/streaming/playlists/v1/update-playlist) by setting the `visibility` to `published` on the video's `playlist_id` from step 5.

    Your stream is now live and available to be watched by end users! However, unlike in the Studio guide above, we have not
    yet associated your video to a Motto [event](/guides/cms/events). This is helpful if you:

    * want to contextualize your video by associating metadata (like the teams playing in your match, or the competition it belongs to).
    * want to use the Motto OTT platform or its component library for easy integration into your own OTT platform integration.

    You can read more about [creating an event](/guides/cms/events). From there, simply update the `video_ids` array
    on your newly created event with the `video_id` you retrieved in step 5 above.
  </Accordion>
</AccordionGroup>

## Next Steps

From here, you may want to look into [creating highlights](/guides/streaming/highlights/introduction) from your VOD.
