# Video Upload

Upload video to project. Limitation is 500mb

POST

/api/projects/{project_id}/videos

KEY TYPE DESCRIPTION
title string If not provided it will use file name
video file Video file to upload
poster file optional Poster image file. If you do not provide any,
it will be automatically created from video
description string optional Video description

Response:

{
  "message": "Video added.",
  "video": {
    "id": 57,
    "hash": "9wb3v7My",
    "title": "bbb_sunflower_1080p_30fps_normal",
    "description": "",
    "name": "bbb-sunflower-1080p-30fps-normal",
    "size": 276134947,
    "length": 634.533333,
    "iso8601_duration": "PT10M34S",
    "width": 1920,
    "height": 1080,
    "video": "https://api.mov.mediaoutcast.test/storage/pmrP5kAO/pmrP5kAO/2024/1/9/9wb3v7My/index.m3u8",
    "uploading": false,
    "uploaded_at": "2024-01-09T13:03:13.000000Z",
    "transcoding_progress": 0,
    "transcoding_at": null,
    "transcoding_eta": 0,
    "completed": false,
    "completed_at": null,
    "created_at": "2024-01-09T13:03:13.000000Z",
    "updated_at": "2024-01-09T13:03:14.000000Z",
    "published": false,
    "published_at": null,
    "published_url": "https://static.mediaoutcast.test/storage/pmrP5kAO/pmrP5kAO/2024/1/9/9wb3v7My/index.m3u8",
    "category": null,
    "countries": [],
    "player": null,
    "resolutions": [
      {
        "id": 3,
        "name": "1080p",
        "width": 1920,
        "height": 1080
      },
      {
        "id": 4,
        "name": "720p",
        "width": 1280,
        "height": 720
      },
      {
        "id": 5,
        "name": "480p",
        "width": 854,
        "height": 480
      }
    ],
    "tags": [],
    "image_urls": {
      "360p": "https://api.mov.mediaoutcast.test/storage/pmrP5kAO/pmrP5kAO/2024/1/9/9wb3v7My/posters/360p.jpg?1704805394",
      "720p": "https://api.mov.mediaoutcast.test/storage/pmrP5kAO/pmrP5kAO/2024/1/9/9wb3v7My/posters/720p.jpg?1704805394",
      "1080p": "https://api.mov.mediaoutcast.test/storage/pmrP5kAO/pmrP5kAO/2024/1/9/9wb3v7My/posters/1080p.jpg?1704805394"
    },
    "image_update_at": null,
    "project_json": "https://static.mediaoutcast.test/projects/pmrP5kAO.json",
    "video_json": "https://static.mediaoutcast.test/videos/9wb3v7My/video.json",
    "storage_size": 0
  },
  "web_socket_broadcaster": "pusher",
  "web_socket_key": "e35893989a0fe4e0c1ae",
  "web_socket_cluster": "eu"
}