Upload video directly (with subtitles)
Upload video directly (with subtitles)
Upload video directly (with subtitles)
Upload a video file directly to FastPix using multipart form-data and attach multiple subtitle tracks during media creation.
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/uploads \
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 "corsOrigin": "*",
9 "time": null,
10 "pushMediaSettings": {
11 "accessPolicy": "public",
12 "inputs": [
13 {
14 "type": "subtitle",
15 "url": "https://storage.fastpix.net/media/test/srt_tracks/add_tracks/subtitle_German.srt",
16 "languageCode": "de-DE",
17 "languageName": "german"
18 },
19 {
20 "type": "subtitle",
21 "url": "https://storage.fastpix.net/media/test/srt_tracks/add_tracks/subtitle_Hindi.srt",
22 "languageCode": "hi-IN",
23 "languageName": "hindi"
24 }
25 ],
26 "maxResolution": "1080p",
27 "mediaQuality": "standard"
28 }
29}'