Upload video from URL
Upload video from URL
Upload a video to FastPix by providing a publicly accessible URL. FastPix downloads, processes, and prepares the video for adaptive streaming.
1. Authorization
This token is generated by combining your FastPix Token ID and Secret Key in the format: Token ID:Secret Key, then encoding it in base64.
2. Payload request
1"tok-keyword">curl "tok-flag">--request "tok-keyword">POST \
2 "tok-flag">--url https://api.fastpix.com/v1/on-demand \
3 "tok-flag">--header "tok-string">'accept: application/json' \
4 "tok-flag">--header "tok-string">'authorization: Basic {BASE64_TOKENID:SECRET}' \
5 "tok-flag">--header "tok-string">'content-type: application/json' \
6 "tok-flag">--data '
7{
8 "metadata": {
9 "key1": "value1"
10 },
11 "accessPolicy": "public",
12 "optimizeAudio": false,
13 "maxResolution": "1080p",
14 "inputs": [
15 {
16 "type": "video",
17 "url": "https://static.fastpix.com/sample.mp4"
18 }
19 ]
20}'